Saturday, February 13, 2021

VB.NET New MCQ Question Answer Part-4

 

Question: 1. DataSet can be used to connect to Crystal Report

Option A. True
Option B. False

Question: 2. dim arr(10) as string,
the max index of the array is
Option A. 9
Option B. 10
Option C. Can be >10 also
Option D. None of the above

Question: 3. Use a _________ statement to make Visual Basic object the default object for a set of enclosed Visual Basic statements.
Option A. With
Option B. Using
Option C. Import
Option D. Inherit

Question: 4. If Option Explicit is on then Dim i as Integer="10" will produce an error
Option A. True
Option B. False

Question: 5. Dim a() as Integer-{1,2,3,4}is a valid statement
Option A. True
Option B. False

Question: 6. ___________ is used to pass copies of a variable while __________ is used to pass address of a variable.
Option A. Byval, Byref
Option B. Byref, Byval
Option C. Any one of the above
Option D. None of the above

Question: 7. A function can have multiple return statements
Option A. True
Option B. False

Question: 8. Function abc() As String
Return 10
End Function
Option A. Will produce compilation error
Option B. Will produce runtime error
Option C. The function will execute normally
Option D. None of the above

Question: 9. On error goto lbl is a
Option A. Structured error
Option B. Unstructured error

Question: 10. To get details about an error use
Option A. Err.Message
Option B. Err.Desc
Option C. Err.Description
Option D. Err.Number

Question: 11. Finally is fired only when error occurs
Option A. True
Option B. False

Question: 12. Get method is used to
Option A. Assign a value to an user control
Option B. Read value from an user control
Option C. Both of the above
Option D. None of the above

Question: 13. Set method is used to
Option A. Assign a value to an user control
Option B. Read value from an user control
Option C. Both of the above

Question: 14. The correct sequence of Form Loading is
Option A. Load
Option B. Initialize, Load, Activate
Option C. Initialize, Activate, Load
Option D. Activate, Initialize Load

Question: 15. InputBox by default returns ________ values
Option A. Integer
Option B. Byte
Option C. Double
Option D. String

Question: 16. To add controls at runtime use
Option A. Controls.New
Option B. Controls.AddNew
Option C. Controls.Add
Option D. Controls.AddItem

Question: 17. To call a buttons click event use
Option A. Button1.Click
Option B. Button1.PerformClick
Option C. Button1.Clicked
Option D. None of the above

Question: 18. To vertically arrange all forms in an MDI form use
Option A. Me.Layout(MdiLayout.TileVertical)
Option B. Me.MdiLayout(MdiLayout.TileVertical)
Option C. Me.LayoutMdi(MdiLayout.TileVertical)
Option D. Nothing is required because default is Vertical

Question: 19. While handling keystrokes if e.Handled=True is set then Visual Basic
Option A. Will handle the key
Option B. Will not handle the key
Option C. Will send the key to Garbage collector
Option D. None of the above

Question: 20. Dim S as Integer=10
Text1=S
Msgbox(Text1.Text)
Option A. Will return error
Option B. Will return 10
Option C. Will return 0
Option D. Will return Null

Answer Sheet

1A
2B
3A
4B
5A
6A
7B
8A
9B
10C
11B
12A
13B
14B
15D
16C
17B
18C
19B
20A

0 comments:

Post a Comment