MCQs -- Visual-Programming
MCQs -- Visual-Programming
b) break
c) exit do
d) exit ()
Answer -
D
6:Which of the following is used to hide the content in textbar…
a) caption
b) hiden
c) password char
d) name
Answer -
C
7: Which of the following is used to represent the items in a hierarchical
manner…
a) progress bar
b) tree view
c) grid view
d) none of these
Answer -
B
8: Which of the following method is used to remove a dialog box in from view…
a) display
b) hide
c) enable
d) disable
Answer -
B
c) Command
d) list
Answer
D
10:Which of the following property is common for many tools…
a) name
b) window status
c) place
d) location
Answer -
A
11: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
Answer -
D
12: 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
Answer -
A
13: Which of the following appears at the top of the screen…
a) menu
b) title
c) debug
d) tool
Answer -
B
14: Which option is true when the user clicks a button …….. is opened…
a) a method
b) an event
c) a property
d) a setting
Answer -
B
a) controls object
b) ADO.NET
c) ASP.NET
d) all of these
Answer -
D
A. Class()
B. Main()
C. Submain()
D. Namespace
Answer
A. Keywords
B. literal
C. variables
D. Identifiers
Answer
A. goto
B. Label
C. Logical
D. Bitwise
Answer
21. C# has _______ operator, useful for making two way decisions.
A. Looping
B. Functional
C. Exponential
D. Conditional
Answer
A. abstraction
B. polymorphism
C. multiple inheritance
D. inheritance
Answer
D. All of above
Answer
24. In the body of a method, C# uses the variable named_____to refer to the
current object whose method is being invoked
A. call
B. this
C. do
D. that
Answer
A. class
B. Constructor
C. Object
D. a and b
Answer
26. An Event is
B. result of a party
Answer
27: Which of the following box given a set of choices to the user
a) Command
b) list
c) Text
d) combo
Answer -
B
29: 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
Answer
B
30. ……………. event occurs when a key is pressed while the form has the focus.
A) Keydown
B) Keypress
C) Keyup
D) KeyEnter
Answer
B
31 In C#.net ……………….. keyword is used to refer to the current object.
A) Current
B) Me
C) This
D) Form
Answer
C
32. Form’s ………………. property is used to specify the initial position on the screen.
A) InitialPosition
B) StartPosition
C) StartScreen
D) InitialScreen
Answer
B
33. ………….. class is built into the .Net Framework to display messages and accept
input from the user.
A) Msgbox
B) MessageBox
C) InputBox
D) DisplayBox
Answer
B
34: 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
Answer
A
35: 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
Answer
36: 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
Answer
A
37: The Windows Forms __________ is a component that raises an event at regular
intervals.
A.Splitter
B.delegate
C.Timer
D.None of these
Answer
C.
38: The __________ control provides a shortcut menu that you associate with a
control.
A.ContextMenuStrip
B.ToolStrip
C.ToolStripTextBox
Answer
A.
39 : Choose which one is converts a type to a string…
a) toSbyte
b) tosingle
c) toString.
d) toInt64
Answer
C
Answer
D
Answer
42: Which of the following method has the same name as its class name…
a) class
b) delete
c) constructor
d) none of these
Answer
43: ………. is used for the changed the colour of the form…
a) can’t change
b) property window
c) source code
d) both b & c
Answer
a) font save
b) font bold
c) font name
d) all of these
Answer
a) F5
b) F8
c) F6
d) F9
Answer
A.Unmanaged
B.Distributed
C.Legacy
D. Managed Code
Answer
A. ASP.NET Applications
B. CLR
D. WinForm Applications
Answer
B
48: Which of the following is the root of the .NET type hierarchy?
A. System.Object
B. System.Type
C. System.Base
D. System.Parent
Answer
A
A.1
B.0
Answer
A
Answer
C
51: _______ is used for finding out about objects, properties and methods.
a. Object browser
Answer
A
a. Text
b. Password char
c. Multiline
d. Enable
Answer
A
53: The ______ is a tool used for both the Input and output purpose.
a. command button
b. text box
c. label
d. combo box
Answer
B
A. Local
B. Private
C. Static.
D. Serial
Answer
A
(A). Text
(B). ContextMenu
(C). Name
(D). ControlName
Answer
C
A. T4 Marks
B. 4 Marks
C. T4_Marks
D. T4.Marks
Answer
A.4 byte
B.8 byte
C.16 byte
D.32 byte
Answer
C
A. Char
B. Long
C. Short
D. Byte
Answer
A. Char
B. Byte
C .Integer
D. Long
Answer
60: Which of the following is the correct default value of a Boolean type?
A. 0
B. 1
C. TRUE
D. FALSE
Answer
D
A.8 Bytes
B.4 Bytes
C.10 Bytes
D.16 Bytes
Answer
D
A. &&
B. ||
C. !
D. Xor
Answer
D
63: A GUI:
Answer
A) debugging.
B) application deployment.
C) syntax checking.
Answer
65: Which type of project can a developer choose in the New Project dialog box?
Answer
D
A) Solution Explorer
B) Tool Box
C) Start Menu
D) Designer Window
Answer
67: Which are the standard prefixes for the Button and Combo box controls
respectively?
68: Which are the standard prefixes for the text box and label controls
respectively?
A) properties.
B) methods.
C) events.
D) All of the above.
Answer
A) Show
B) BackColor
C) Font
D) ForeColor
Answer
A) Hide
B) Visible
C) Enabled
D) Cursor
Answer
A) Button
B) Form
C) Label
D) Timer
Answer
A) Form
B) Button
C) Label
D) Timer
Answer
75: The Date data type does not hold which type of information.
A) Seconds
B) Hours
C) Days
D) Quarters
Answer
A) BorderStyle
B) Font
C) Name
D) Text
Answer
77: Which method of a ListBox will remove all the items at a time?
A) Items.RemoveAt
B) Item.RemoveAt
C) Items.ClearAt
D) Items.Clear
Answer