Microsoft Visual Studio MCQs

Microsoft Visual Studio MCQs

Our team has conducted extensive research to compile a set of Microsoft Visual Studio MCQs. We encourage you to test your Microsoft Visual Studio knowledge by answering these 100+ multiple-choice questions provided below.
Simply scroll down to begin!

1: Which of the following is not a property of the err object ?

A.   Descrption

B.   Number

C.   Code

D.   Source

E.   Helpcontext

2: Which method of the DataReport enables the user to preview the report information ?

A.   PrintReport

B.   Print

C.   PrintForm

D.   Preview

E.   Show

3: Which of the following class is not derived from the CGdiObject class ?

A.   CPen

B.   CBrush

C.   CFont

D.   CBitmap

E.   CRect

4: Which event is used to store developer settings for your control ?

A.   WriteSettings

B.   StoreSettings

C.   StoreProperties

D.   WriteProperties

E.   Save

A.   ScriptingEngine

B.   ScriptEngineBuildVersion

C.   ScriptEngine

D.   a and b.

E.   b and c.

A.   Space

B.   Split

C.   Sqr

D.   String

E.   Strcomp

7: What is the common feature of the classes CArchive, CPoint, CHtmlStream, CCreateContext ?

A.   They are used for graphical drawing.

B.   They are derived from the CDC class.

C.   They are used for database applications.

D.   They are used for internet services.

E.   They are not derived from the CObject class.

8: Which files and folders are automatically created when a new ASP application is built ?

A.   Private, Images, Global.asa

B.   Global.asa, Images, Search.htm

C.   Images, Script, Search.htm, Global.asa, Private

D.   Images, Search.htm, Scriptlibrary, Private

E.   Global.asa, Search.htm, Private, Scriptlibrary, Images

A.   A view is a child of a frame window.

B.   More than one view can share a frame window, as in the case of a splitter window.

C.   A view can be attached to many documents.

D.   A view may be responsible for handling several different types of input, such as keyboard input,

E.   mouse input or input via drag-and-drop, as well as commands from menus, toolbars, or scroll bars.

F.   The view is responsible for displaying and modifying the document's data but not for storing it.

10: Identify the incorrect statement regarding Visual Interdev :

A.   Visual Interdev gives you the ability to debug not only client side but also server side code.

B.   Visual Interdev supports the local mode for development.

C.   Visual Interdev supports the offline mode for development.

D.   One drawback of Visual Interdev is its non-integration with Visual SourceSafe.

E.   Visual Interdev gives you the ability to set breakpoints, to step through code and to see through logic.

11: The programming support feature SOM stands for :

A.   Scripting Object Model.

B.   Static Object Model.

C.   Scripting Object Mechanism.

D.   Static Object Method.

E.   Scriptlet Object Model.

12: Which of the following is the only class derived from CObject ?

A.   CArchive

B.   CPoint

C.   CDC

D.   CPrintInfo

E.   CString

13: What classes of objects does VBScript support ?

A.   Objects provided by the VBScript engine.

B.   Objects provided by the VBScript author.

C.   Objects provided by Internet Explorer.

D.   a and c.

E.   a,b and c.

14: Which of the following is not a tab in the style sheet editor ?

A.   Font

B.   Background

C.   Foreground

D.   Preview

E.   Lists

15: What is the default editor for HTML pages ?

A.   Notepad

B.   FrontPage

C.   HTMLEditor.

D.   The Design Editor.

E.   Source Editor.

16: Which object is responsible for handling transaction processing ?

A.   Connection

B.   Command

C.   Recordset

D.   Database

E.   Parameter

17: Which of the following is not a object provided by the VBScript engine ?

A.   Class

B.   Match

C.   Matches

D.   Form

E.   Dictionary

A.   Time

B.   Hour

C.   Minute

D.   Seconds

E.   b and c

19: What must you do with literal dates in a search criteria for the find method ?

A.   Enclose the date in single quotes.

B.   Enclose the date in double quotes.

C.   Enclose the date in # symbols.

D.   Enclose the date in ! symbols.

E.   No special treatment is required.

20: What does the controls collection contain ?

A.   A list of all controls on a form.

B.   A list of all the controls used by your program.

C.   A list of all text boxes on a form.

D.   A list of all visible controls.

E.   The names of all control arrays on the form.

21: When working with script, which all folders are present in the HTML Outline pane ?

A.   Client Objects and Events, Client Scripts.

B.   Client Objects and Events, Server Objects and Events.

C.   Client Objects and Events, Server Scripts.

D.   Client Objects and Events, Client Scripts, Server Objects and Events.

E.   Client Objects and Events, Client Scripts, Server Objects and Events, Server Scripts.

22: Which of the following loop statements is not available in VBScript ?

A.   Do...Loop

B.   While...Wend

C.   For...Next

D.   For Each...Next

E.   Loop...End Loop

23: Which of the following is not a pane of the Query Designer ?

A.   Diagram pane.

B.   Grid Pane.

C.   SQL Pane.

D.   Results Pane.

E.   Relationship Pane.

24: Which of the following is not a conversion function ?

A.   CCur

B.   CFloat

C.   CDbl

D.   CByte

E.   CBool

25: Which design time control enables you to add transition effects as the user moves from one page to another in your application ?

A.   PageObject

B.   PageNavBar

C.   Page Transitions

D.   RecordSetNavBar

E.   TimeLines

26: Which of the following is not a class derived from the CCommonDialog class ?

A.   CFileDialog

B.   CFontDialog

C.   CSearchDialog

D.   CPrintDialog

E.   CColorDialog

27: How can you construct a frame window ?

A.   Directly constructing it using the Create function

B.   Directly constructing it using the LoadFrame function.

C.   Indirectly constructing it using a document template.

D.   a and c.

E.   a,b and c.

28: What character will you use to give comments in VBScript ?

A.   ' or /

B.   ' or REM

C.   // or '

D.   // or @

E.   / or --

29: Visual Interdev is a :

A.   Programming language.

B.   Object Broker.

C.   Development tool for web-based applications.

D.   Web page designing tool.

E.   Advanced version of Visual Basic.

30: What three methods does the collection object support ?

A.   Let, Get, Set.

B.   Load, Unload, Count.

C.   Add, Remove, Item.

D.   Add, Delete, Index.

E.   Add, Remove, Sort.

31: Which of the following is not a numeric function ?

A.   Exp

B.   Fix

C.   Int

D.   Sqrt

E.   Round

32: When is the terminate event of a form triggered ?

A.   When the user hides the form.

B.   When the form is unloaded.

C.   When the user moves to another form or program.

D.   Never

E.   When all references to the form are deleted.

A.   Connection

B.   Command

C.   Recordset

D.   Database

E.   Parameter

A.   IsArray

B.   LBound

C.   Array

D.   Arr

E.   Split

35: Which of the following is a valid On Error statment ?

A.   On Error resume next.

B.   On Error resume.

C.   On Error goto 0.

D.   a and c.

E.   b and c.

36: Which property of the ProgressBar determines how much of the bar is filled ?

A.   Min

B.   Max

C.   Filled

D.   CurrentValue

E.   Value

37: Which of the following is not a valid VBScript function ?

A.   At

B.   Atn

C.   Abs

D.   Array

E.   Asc

38: Which function can you use to check whether an expression can also be used as a number ?

A.   IsNumber

B.   IsVal

C.   IsNumeric

D.   IsInteger

E.   IsFloat

39: What is the name of the Visual Interdev feature that helps you build the script for your objects and events ?

A.   Query Designer.

B.   Site Designer.

C.   Object Designer.

D.   Script Outline.

E.   Script Builder.

40: What function does WinMain call every time a new instance of the application starts ?

A.   InitInstance

B.   InitApplication

C.   BeginApplication

D.   NewInstance

E.   BeginInstance

41: What does the forms collection contain ?

A.   A list of all forms in a project

B.   A list of all hidden forms.

C.   A list of all currently loaded forms.

D.   A list of all visible forms.

E.   All the child forms of an MDI application.

42: Which event enables you to determine which key was pressed by the user ?

A.   Click

B.   KeyPress

C.   KeyDown

D.   a and b.

E.   b and c.

43: Which of the following is not a view in Visual Interdev ?

A.   Design

B.   Source

C.   Quick

D.   Code

E.   c and d.

44: Name the only property supported by a collection ?

A.   Name

B.   Index

C.   Count

D.   Type

E.   Value

45: What command triggers an event created in a class ?

A.   RaiseEvent

B.   SetEvent

C.   Trigger

D.   TriggerEvent

E.   FireEvent

46: With Visual Interdev, you can create stored procedures in which of the following databases ?

A.   MS SQL Server 6.

B.   Oracle

C.   DB2

D.   a and b.

E.   a,b and c

47: Which class derived from CDC is responsible for calling the Windows functions GetDC at construction time and ReleaseDC at destruction time ?

A.   CClientDC

B.   CMetaFileDC

C.   CPaintDC

D.   CWindowDC

E.   a or b.

48: The classes CHtmlStream, CHttpFilter, CHttpFilterContext, CHttpServer and CHttpServerContext belong to which category of classes ?

A.   OLE Automation Types.

B.   Support classes.

C.   Internet Server API.

D.   File Services.

E.   Window Support.

49: Which of the following is not a subtype of data that a variant in VBScript can contain ?

A.   Null

B.   Byte

C.   Integer

D.   Long

E.   Float

A.   The CArchive class allows you to save a complex network of objects in a permanent binary form (usually disk storage) that persists after those objects are deleted.

B.   Later you can load the objects from persistent storage, reconstituting them in memory.

C.   You must create a CFile object before you can create a CArchive object.

D.   The CArchive class is derived from the base class CObject.

E.   CArchive also supports programming with the MFC Windows Sockets classes CSocket and CSocketFile.