Saturday, February 13, 2021

VB.NET MCQ Question Answer Part - 5

Question: 1. PasswordChar property of a TextBox can accept " " (space) as the password char

Option A. True
Option B. False

Question: 2. If Scrollbars property of a TextBox is set to Hortizontal and the WordWrap property is also set to true. Which one will get precedence
Option A. Scrollbars
Option B. WordWrap
Option C. No precedence both will work

Question: 3. A single LinkLabel can support multiple links
Option A. True
Option B. False

Question: 4. To add items stored in an array to a ListView use
Option A. List1.Add(name of the array)
Option B. List1.AddItem(name of the array)
Option C. List1.Items.Add(name of the array)
Option D. List1.Items.Addrange(name of the array)

Question: 5. This property of TrackBar is not present
Option A. TickStyle.Both
Option B. TickStyle.None
Option C. TickStyle.TopLeft
Option D. TickStyle.BottomLeft

Question: 6. Default event handler of Splitter is
Option A. Splitter.Click
Option B. Splitter.Clicked
Option C. Splitter.Drag
Option D. None of the above

Question: 7. A form can have only ______ Main Menu and _________ Context Menu
Option A. 1,1
Option B. 1,Multiple
Option C. Multiple,1
Option D. 1,2

Question: 8. The Apply button automatically appears of the Font Dialog Box is opened
Option A. True
Option B. False

Question: 9. A user wants that custom colors are visible when the Color Dialog Box is first Opened. What should he do?
Option A. Set AllowFullOpen to True
Option B. Set AnyColor to True
Option C. Set Open to True
Option D. Set FullOpen to True

Question: 10. To print use
Option A. PrintDialog1.Print()
Option B. PrintDocument1.Print()
Option C. Printer1.Print()
Option D. None of the above

Question: 11. In TreeView to get the node the mouse is pointing to, use
Option A. GetNode
Option B. Node
Option C. GetNodeAt
Option D. SelectNode

Question: 12. A TreeView can have multiple root nodes
Option A. True
Option B. False

Question: 13. To view Panels of a StatusBar set _________ to true
Option A. Panel
Option B. Panels
Option C. ShowPanel
Option D. ShowPanels

Question: 14. The default Tab of a Tab Control is
Option A. The first tab
Option B. The last tab added
Option C. The last tab modified
Option D. There is no default tab.

Question: 15. If a Class in inherited, its constructor is inherited automatically and it is fired automatically
Option A. True
Option B. False

Question: 16. To override Finalize function the scope of the function must be
Option A. Private
Option B. Public
Option C. Protected
Option D. Static

Question: 17. Class cc
public _________ I as string
end class
Button1_Click
cc.I=100
Option A. Share
Option B. Shared
Option C. Global
Option D. Static

Question: 18. If an user-defined class have a user-defined event then, the class object is declared as
Option A. Dim c as new ClassName
Option B. Dim withEvents c as new ClassName
Option C. Dim c as ClassName
Option D. Dim withEvents c as ClassName

Question: 19. /*1. Class C
2. public mustinherit sub abc()
3. msgbox("Base Class")
4. end sub
5. end Class /* The error is in line no.
Option A. 1
Option B. 2
Option C. 3
Option D. 4

Question: 20. /*1. Class C
2. public notoverridable sub abc()
3. msgbox("Base Class")
4. end sub
5. end Class /* The Error in Line No.
Option A. 2
Option B. 3
Option C. 4
Option D. No Error

Answer Sheet

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

0 comments:

Post a Comment