Sunteți pe pagina 1din 7

MCQS of finals C#

1) The __________ function returns a string stored in a variant data type.

a. Chr.
b. Str.
c. Char.
d. None of these

2) The ___________ property is used in VB for maximum form at run time.

a. Caption.
b. Window resize
c. Window status
d. None of these

3) The default property for a text box control is __________

a. Text
b. Enable
c. Multiline
d. Password char

4) The function procedures are ___________ by default.

a. Public
b. Private
c. Protected
d. None of the above

5) __________ is method which moves the focus to the specified control or form.

a. Set focus
b. Lost focus
c. Got focus
d. None of these
6) Private button print = new button();

a. Creates a button control


b. Initializes a button control
c. Instantiates button control
d. a and c

7) identify which is true

a. data view is subset of row and not columns


b. find can be done only on sorted columns
c. sorting can be done on multiple columns
d. none of these

8) different ways a method can be overloaded in C# .NET

a. different parameter data type


b. different order of parameter
c. different number of parameters
d. all of above

9) which of the following is the root of the .NET type hierarchy?

a. System . object
b. System . Base
c. System . Root
d. System . Parent

10) In C# having unreachable code is always an _________

a. Method
b. Function
c. Error
d. Iterative

11) C# does not support _________ constructors.

a. Parameterized
b. Parameter_ less
c. Class
d. Method

12) The formal parameter list is always enclosed in ________

a. Square
b. Semicolon
c. Parenthesis
d. Colon

13) An ________ is a group of contiguous or related data items that share a common name.

a. Operator
b. Integer
c. Exponential
d. Array

14) C# has _________ operator useful for making two way decisions.

a. Looping
b. Functional
c. Exponential
d. Conditional

15) In visual basic _________ is the extension to represent project life

a. . FRM
b. .VBP
c. .CLS
d. .VB

16) __________ method is used to retrieve the stored text from the clipboard

a. Input
b. Get text
c. Add text
d. Set text

17) When the form is first referenced in any manner by program the triggered event is…..

a. Load
b. Activate
c. Initialize
d. None of the above

18) A ________ variable is one that is declared inside a procedures.

a. Global
b. Local
c. External
d. None of the above

19) Which one is not property of form?


a) Text c) Name
b) Background d) None
20) What property we use to change the name of button ?
a) Text c) Name
b) Both a and c d) None
21) Which term is use to perform the operation ?
a) Label c) checkbox
b) Button d) Both a and b
22) Which one is not property of form?
a) Text c) Name
b) Background d) None
23) Which of the following convert a type to string in C#?

a) ToString c) Both a and c


b) ToString32 d) None

24) In C#, having unreachable code is always an_________


a) method c) parameter
b) keyword d) error
25) Which of the following convert a type to string in C#?
a) ToString c) Both a and c
b) ToString32 d) None

26) There is only one base class and one child class related to which?
a) Single level Inheritance c) Multi level Inheritance
b) Multiple level Inheritance d) Both a and b

27) Multiple Inheritance possible in C# via ?


a) Interface c) multiple interface
b) Static class d) Both a and c

28) Combination of basic inheritance ?


a) Hybrid c) Concatenated
b) combine d) Both b and c
29) C# does not support directly
a) Abstraction b) polymorphism
c) Multiple Inheritance d) Inheritance
30) Is this possible to swap two variables without using third variable in c#
a) yes b) no
31) A variable which is declared inside a method is called a variable
a) Local c) static
b) Private d) serial
32) The controls available in the tool box of the ______ are used to create the user interface
of a web-based application.
a) Microsoft visual studio IDE b) Application window
c) Web forms d) None of the above
33) The property ___________________ used to add the image on background of form
34)what type of data can be inserted through textbox?
a) String b) int c) None
35)MessageBox.Show(s1, s2); & MessageBox.Show(s1 + s2); both statements are?
a) Same b) not same
36)Message.Show(“Best of Luck”); is
a) True b) false
37)class Test: Form {}
a) Creates the class Test: Form
b) Creates the class Test that inherits the class Form 
c) Creates the class form that inherits the class Test 
d) a and b 
38)Which one is not property of form?
c) Text c) Name
d) Background d) None
39 )- Which of the following keyword is used for including the namespaces in the
program in C#?
A - imports
B - using
C - exports
D - None of the above.
40)The methods that have the same name, but different parameter
lists and different definitions is called______.
A. Method Overloading
B. Method Overriding
C. Method Overwriting
D. Method Overreading

41) Inheritance is ______ in nature.


A. Commutative
B. Associative
C. Transitive
D. Iterative
42) A variable which is declared inside a method is called a variable
c) Local c) static
d) Private d) serial
43) In visual basic _________ is the extension to represent project life

e. . FRM
f. .VBP
g. .CLS
h. .VB
44) The __________ function returns a string stored in a variant data type.

e. Chr.
f. Str.
g. Char.
h. None of these

45) Which term is use to perform the operation ?


c) Label c) checkbox
d) Button d) Both a and b
46) Which one is not property of form?
e) Text c) Name
f) Background d) None

47) An ________ is a group of contiguous or related data items that share a common name.

e. Operator
f. Integer
g. Exponential
h. Array
48) The default property for a text box control is __________

e. Text
f. Enable
g. Multiline
h. Password char
49) different ways a method can be overloaded in C# .NET

e. different parameter data type


f. different order of parameter
g. different number of parameters
h. all of above

50) which of the following is the root of the .NET type hierarchy?

e. System . object
f. System . Base
g. System . Root
h. System . Parent