MCQ2 C#
MCQ2 C#
C# AND .NET
NAME: ……………………………………………………………..
DEPT/YEAR/SEM: MCA/II/III.
ROLL NO : ..…………………………………………………......
a) name
b) window status
c) place
d) location
2 .Which of the following is true about disabled menu item does not appear in the …
a) title bar
b) status bar
c) standard bar
d) menu bar
3. Which of the following arrays can be declared when the user may not know the exact size of the
array at design time…
a) dynamic array
b) dimensional array
c) two-dimensional array
d) none of these
a) menu
b) title
c) debug
d) tool
5. Which option is true when the user clicks a button …….. is opened…
a) a method
b) an event
c) a property
d) a setting
a) controls object
b) ADO.NET
c) ASP.NET
d) all of these
A. Function
B. Metadata
C. Method
D. Managed code
A. Class()
B. Main()
C. Submain()
D. Namespace
A. Keywords
B. literal
C. variables
D. Identifiers
B. Label
C. Logical
D. Bitwise
12. C# has _______ operator, useful for making two way decisions.
A. Looping
B. Functional
C. Exponential
D. Conditional
A. abstraction
B. polymorphism
C. multiple inheritance
D. inheritance
D. All of above
a) private, public
b) protected, public
c) public
d) private
A. class
B. Constructor
C. Object
D. a and b
17. An Event is
B. result of a party
18: Which of the following box given a set of choices to the user
a) Command
b) list
c) Text
d) combo
20: Which of the following is true that access specifier allows a class to expose its member variables
and member functions to other functions and objects?
a) private
b) public
c) internal
d) protected
21. ……………. event occurs when a key is pressed while the form has the focus.
A) Keydown
B) Keypress
C) Keyup
D) KeyEnter
A) Current
B) Me
C) This
D) Form
23. Form’s ………………. property is used to specify the initial position on the screen.
A) InitialPosition
B) StartPosition
C) StartScreen
D) InitialScreen
24. ………….. class is built into the .Net Framework to display messages and accept input from the user.
A) Msgbox
B) MessageBox
C) InputBox
D) DisplayBox
25. We can limit the amount of text entered into TextBox control by setting ……………… property to a
specific number of characters.
A) MaxLength
B) TotalLength
C) TextAmount
D) TextLimit
26. TextBox controls also can be used to accept password if the …………….. property is used to mask
characters.
A) PasswordChar
B) PasswordCharacter
C) MaskChar
D) PasswordControl
27. In order for the scroll bars to actually appear, the text box’s …………….. property must be True.
A) MultiLine
B) MultiText
C) Scrolling
D) MultiVisible
28. The Windows Forms __________ is a component that raises an event at regular intervals.
A.Splitter
B.delegate
C.Timer
D.None of these
29. The __________ control provides a shortcut menu that you associate with a control.
A.ContextMenuStrip
B.ToolStrip
C.ToolStripTextBox