Thursday, May 10, 2018

Upwork Visual Studio Test


Answers:
• Descrption
• Number
• Code
• Source
• Helpcontext
2. Which method of the DataReport enables the user to preview the report information ?
Answers:
• PrintReport
• Print
• PrintForm
• Preview
• Show
3. Which of the following class is not derived from the CGdiObject class ?
Answers:
• CPen
• CBrush
• CFont
• CBitmap
• CRect
4. Which event is used to store developer settings for your control ?
Answers:
• WriteSettings
• StoreSettings
• StoreProperties
• WriteProperties
• Save
5. Which of the following is not a script engine/language related function ?
Answers:
• ScriptingEngine
• ScriptEngineBuildVersion
• ScriptEngine
• a and b.
• b and c.
6. Which of the following is not a string related function ?
Answers:
• Space
• Split
• Sqr
• String
• Strcomp
7. What is the common feature of the classes CArchive, CPoint, CHtmlStream, CCreateContext ?
Answers:
• They are used for graphical drawing.
• They are derived from the CDC class.
• They are used for database applications.
• They are used for internet services.
• They are not derived from the CObject class.
8. Which files and folders are automatically created when a new ASP application is built ?
Answers:
• Private, Images, Global.asa
• Global.asa, Images, Search.htm
• Images, Script, Search.htm, Global.asa, Private
• Images, Search.htm, Scriptlibrary, Private
• Global.asa, Search.htm, Private, Scriptlibrary, Images
9. Following are some statements related to views. Identify the incorrect one :
Answers:
• A view is a child of a frame window.
• More than one view can share a frame window, as in the case of a splitter window.
• A view can be attached to many documents.
• A view may be responsible for handling several different types of input, such as keyboard input, mouse input or input via drag-and-drop, as well as commands from menus, toolbars, or scroll bars.
• 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 :
Answers:
• Visual Interdev gives you the ability to debug not only client side but also server side code.
• Visual Interdev supports the local mode for development.
• Visual Interdev supports the offline mode for development.
• One drawback of Visual Interdev is its non-integration with Visual SourceSafe.
• 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 :
Answers:
• Scripting Object Model.
• Static Object Model.
• Scripting Object Mechanism.
• Static Object Method.
• Scriptlet Object Model.
12. Which of the following is the only class derived from CObject ?
Answers:
• CArchive
• CPoint
• CDC
• CPrintInfo
• CString
13. What classes of objects does VBScript support ?
Answers:
• Objects provided by the VBScript engine.
• Objects provided by the VBScript author.
• Objects provided by Internet Explorer.
• a and c.
• a,b and c.
14. Which of the following is not a tab in the style sheet editor ?
Answers:
• Font
• Background
• Foreground
• Preview
• Lists
15. What is the default editor for HTML pages ?
Answers:
• Notepad.
• FrontPage.
• HTMLEditor.
• The Design Editor.
• Source Editor.
16. Which object is responsible for handling transaction processing ?
Answers:
• Connection
• Command
• Recordset
• Database
• Parameter
17. Which of the following is not a object provided by the VBScript engine ?
Answers:
• Class
• Match
• Matches
• Form
• Dictionary
18. Which of the following is not a time related function ?
Answers:
• Time
• Hour
• Minute
• Seconds
• b and c
19. What must you do with literal dates in a search criteria for the find method ?
Answers:
• Enclose the date in single quotes.
• Enclose the date in double quotes.
• Enclose the date in # symbols.
• Enclose the date in ! symbols.
• No special treatment is required.
20. What does the controls collection contain ?
Answers:
• A list of all controls on a form.
• A list of all the controls used by your program.
• A list of all text boxes on a form.
• A list of all visible controls.
• The names of all control arrays on the form.
21. When working with script, which all folders are present in the HTML Outline pane ?
Answers:
• Client Objects and Events, Client Scripts.
• Client Objects and Events, Server Objects and Events.
• Client Objects and Events, Server Scripts.
• Client Objects and Events, Client Scripts, Server Objects and Events.
• Client Objects and Events, Client Scripts, Server Objects and Events, Server Scripts.
22. Which of the following loop statements is not available in VBScript ?
Answers:
• Do...Loop
• While...Wend
• For...Next
• For Each...Next
• Loop...End Loop
23. Which of the following is not a pane of the Query Designer ?
Answers:
• Diagram pane.
• Grid Pane.
• SQL Pane.
• Results Pane.
• Relationship Pane.
24. Which of the following is not a conversion function ?
Answers:
• CCur
• CFloat
• CDbl
• CByte
• CBool
25. Given the following code

1        Select Case a

2                Case 1
3                        Msgbox "the value of a is 1"

4                Case 2,3
5                        Msgbox "the value of a is either 2 or 3"                

6                Case is > 5
7                        Msgbox "the value of a is greater than 5"                

8        End Case


What would be the error in the above construct ?
Answers:
• There is no error.
• There has to be a case else clause in the end.
• The condition at line 6 is incorrect.
• The condition at line 4 is incorrect.
• The construct should terminate with the End Select clause at line 8.
26. Which design time control enables you to add transition effects as the user moves from one page to another in your application ?
Answers:
• PageObject
• PageNavBar
• Page Transitions
• RecordSetNavBar
• TimeLines
27. Which of the following is not a class derived from the CCommonDialog class ?
Answers:
• CFileDialog
• CFontDialog
• CSearchDialog
• CPrintDialog
• CColorDialog
28. How can you construct a frame window ?
Answers:
• Directly constructing it using the Create function.
• Directly constructing it using the LoadFrame function.
• Indirectly constructing it using a document template.
• a and c.
• a,b and c.
29. What character will you use to give comments in VBScript ?
Answers:
• ' or /
• ' or REM
• // or '
• // or @
• / or --
30. Visual Interdev is a :
Answers:
• Programming language.
• Object Broker.
• Development tool for web-based applications.
• Web page designing tool.
• Advanced version of Visual Basic.
31. What three methods does the collection object support ?
Answers:
• Let, Get, Set.
• Load, Unload, Count.
• Add, Remove, Item.
• Add, Delete, Index.
• Add, Remove, Sort.
32. Which of the following is not a numeric function ?
Answers:
• Exp
• Fix
• Int
• Sqrt
• Round
33. When is the terminate event of a form triggered ?
Answers:
• When the user hides the form.
• When the form is unloaded.
• When the user moves to another form or program.
• Never.
• When all references to the form are deleted.
34. Which object handles the link to a specific database ?
Answers:
• Connection
• Command
• Recordset
• Database
• Parameter
35. Which of the following is not an array related function ?
Answers:
• IsArray
• LBound
• Array
• Arr
• Split
36. Which of the following is a valid On Error statment ?
Answers:
• On Error resume next.
• On Error resume.
• On Error goto 0.
• a and c.
• b and c.
37. Which property of the ProgressBar determines how much of the bar is filled ?
Answers:
• Min
• Max
• Filled
• CurrentValue
• Value
38. Which of the following is not a valid VBScript function ?
Answers:
• At
• Atn
• Abs
• Array
• Asc
39. Which function can you use to check whether an expression can also be used as a number ?
Answers:
• IsNumber
• IsVal
• IsNumeric
• IsInteger
• IsFloat
40. What is the name of the Visual Interdev feature that helps you build the script for your objects and events ?
Answers:
• Query Designer.
• Site Designer.
• Object Designer.
• Script Outline.
• Script Builder.
41. What function does WinMain call every time a new instance of the application starts ?
Answers:
• InitInstance
• InitApplication
• BeginApplication
• NewInstance
• BeginInstance
42. What does the forms collection contain ?
Answers:
• A list of all forms in a project.
• A list of all hidden forms.
• A list of all currently loaded forms.
• A list of all visible forms.
• All the child forms of an MDI application.
43. The following are the steps in the life cycle of a document (and its frame window and view or views) in an MDI application. Arrange them in the correct order :


1)For each new document, the document's OnNewDocument or OnOpenDocument is called.

2)During dynamic creation, the document constructor is called.

3)The framework calls DeleteContents to delete data specific to a document.

4)The document's destructor is called.

5)The user interacts with the document throughout its lifetime. Typically this happens as the user works on document data through the view, selecting and editing the data.
Answers:
• 2,1,5,3,4
• 5,2,1,3,4
• 2,3,5,1,4
• 5,1,2,3,4
• 3,1,2,5,4
44. Which event enables you to determine which key was pressed by the user ?
Answers:
• Click
• KeyPress
• KeyDown
• a and b.
• b and c.
45. Which of the following is not a view in Visual Interdev ?
Answers:
• Design
• Source
• Quick
• Code
• c and d.
46. Name the only property supported by a collection ?
Answers:
• Name
• Index
• Count
• Type
• Value
47. What command triggers an event created in a class ?
Answers:
• RaiseEvent
• SetEvent
• Trigger
• TriggerEvent
• FireEvent
48. With Visual Interdev, you can create stored procedures in which of the following databases ?
Answers:
• MS SQL Server 6.
• Oracle.
• DB2.
• a and b.
• a,b and c.
49. Which class  derived from CDC is responsible for calling the Windows functions GetDC at construction time and ReleaseDC at destruction time ?
Answers:
• CClientDC
• CMetaFileDC
• CPaintDC
• CWindowDC
• a or b.
50. The classes CHtmlStream, CHttpFilter, CHttpFilterContext, CHttpServer and CHttpServerContext belong to which category of classes ?
Answers:
• OLE Automation Types.
• Support classes.
• Internet Server API.
• File Services.
• Window Support.