A. Is used to create objects
B. Must have the same name as the class it is declared within
C. B and C
D. None
View Answer
Visual Programming MCQs
A constructor.
An instance method.
A. Represents the behavior of an object
B. Represents the attribute of an object
C. Represents another class
D. A and b
View Answer
The null coalescing operator is
A. ??
B. &&
C. ||
D. None
View Answer
_________ is using the string concatenation operator.
A. (.)
B. (+)
C. (-)
D. None
View Answer
The uniqueid that gets generated at the start of the session is stored in
A. Client computer as a cookie
B. Server machine
C. Passed to and fro on each and every request and response
D. Both a and b are correct
View Answer
_________ is an object that accepts the event and provides an event handler.
A. Subscriber
B. Publisher
C. Both
D. None
View Answer
Convert vs. Parse methods
A. Convert converts the value, parse is for parsing
B. Convert allows null values, parse cannot
C. Both are same
D. None of these
View Answer
Arraylist myarrylist = new arraylist();.
A. Creates a button control
B. Initializes a button control
C. Instantiates button control
D. None
View Answer
An instance variable.
A. Is an object of a class
B. Represents an attribute of an object
C. Is a method of a class
D. A and c
View Answer
Is it possible to have arguments with default values in C# methods?
A. Yes
B. No
View Answer