header1.html

Tuesday 24 September 2013

MCQs on WinForms in .NET


After good response to C# 4.0 MCQs,I planned to write this post for advanced controls in WinForms.

1.____________ class represents a collection of TreeNode objects.
A.TreeNodes
B.TreeView
C.Collection
D.TreeNodeCollection
Click for answer 

D.TreeNodeCollection
2.The Windows Forms__________control displays a hierarchy of nodes, like the way files and folders are displayed in the left pane of the Windows Explorer feature in Windows operating systems.
A.ContextMenuStrip
B.TreeView
C.Splitter
D.ToolStrip
Click for answer 

B.TreeView
3.______ class represents a node of a TreeView.
A.Node
B.TreeNodeCollection
C.TreeNode
D.None of above
Click for answer 

C.TreeNode
4.Windows Forms _________ controls are used to resize docked controls at run time.
A.Timer
B.Splitter
C.ContextMenuStrip
D.None of above
Click for answer 

B.Splitter
5.________ class represents a control consisting of a movable bar that divides a container's display area into two resizable panels.
A.Splitter
B.Container
C.ContextMenuStrip
D.SplitContainer
Click for answer 

D.SplitContainer
6.The Windows Forms __________ is a component that raises an event at regular intervals.
A.Splitter
B.delegate
C.Timer
D.None of these
Click for answer 

C.Timer
7.The __________ control provides a shortcut menu that you associate with a control.
A.ContextMenuStrip
B.ToolStrip
C.ToolStripTextBox
Click for answer 

A.ContextMenuStrip
8.ContextMenuStrip replaces _______.
A.ContextMenu
B.MenuStrip
C.ToolStrip
D.Menu
Click for answer 

A.ContextMenu