A. Private
B. Static
C. Public
D. None
View Answer
Visual Programming MCQs
Take Your Test Now
Prepare Visual Programming MCQs Given Bellow
We cannot create more than one property in a class in c#.net?
A. Yes
B. No
View Answer
A destructor has exactly the same name as that of the class with a prefixed tilde.
A. (^)
B. (!)
C. (~)
D. None
View Answer
You need to escape special characters to use user input inside a regular expressionwhich.
A. Addslashes()
B. Htmlentities()
C. Preg_quote()
D. Regex_quote()
View Answer
String mystring; creates a(n).
A. Class
B. Constructor
C. Object
D. A and b
View Answer
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
View Answer
Find any errors in the following bankaccount constructor: public int bankaccount() { balance = 0; }.
A. Name
B. Formal parameters
C. Return type
D. No errors
View Answer
Defining two methods with the same name but with different parameters is called.
A. Loading
B. Overloading
C. Multiplexing
D. Duplexing
View Answer
A variable declared inside a method is called a________variable.
A. Static
B. Private
C. Local
D. Serial
View Answer
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
View Answer