C#.NET Programming Solved MCQs

1.

The compiled version of a VC#.NET program will be in_______________.

A. Machine code
B. IL code
C. Byte code
D. None of these
Answer» A. Machine code
2.

The purpose of JIT compiler is to convert____________.

A. VC#.NET source code IL code
B. IL code to byte code
C. IL code to managed native code
D. None of these
Answer» B. IL code to byte code
3.

The Garbage Collection solves_____________.

A. Memory leakage problem
B. DLL hell problem
C. Both a & b
D. None of these
Answer» A. Memory leakage problem
4.

The code that requires the CLR at runtime for the execution is known as the ________.

A. IL code
B. Managed code
C. Binary code
D. One of these
Answer» B. Managed code
5.

Which one of the following JIT compilers produce highly optimized code?

A. Econo JIT
B. Standard JIT
C. Pre JIT
D. None of these
Answer» B. Standard JIT
6.

The VC#.NET language________________.

A. Solves the memory leakage problems.
B. Solves the DLL hell problems.
C. Has very good correspondence with the IL language.
D. All the above.
Answer» B. Solves the DLL hell problems.
7.

Home page in VS.NET is also known as__________.

A. Default page
B. Start page
C. First page
D. Welcome page
Answer» B. Start page
8.

The ______________ enables to move through the code very quickly.

A. Class view window
B. Solution explorer window
C. Code window
D. none of these
Answer» C. Code window
9.

In VC#.NET project files are grouped into a _____________.

A. Workspace
B. Namespace
C. Solution
D. Package
Answer» C. Solution
10.

Which one of the following statements about code debugging is correct?

A. Debugger helps us to step through our code, one line at a time.
B. Breakpoints can be set by pressing F9 function key.
C. Breakpoints can be set by left-clicking in the left margin area at the line where we want to set the breakpoint.
D. a, b and c are correct.
Answer» A. Debugger helps us to step through our code, one line at a time.
11.

The arrays involved in a jagged array_____________.

A. Should be of same size.
B. May be of different sizes.
C. Are not known as subarrays.
D. None of these.
Answer» B. May be of different sizes.
12.

The parameters of a method __________.

A. Help us to pass information to a method.
B. Help us to get information from a method.
C. Help us to pass information to and from a method.
D. None of these.
Answer» C. Help us to pass information to and from a method.
13.

The ref type parameters are____________.

A. “Input only” parameters.
B. “Input / Output” parameters.
C. “Output only” parameters.
D. None of these.
Answer» B. “Input / Output” parameters.
14.

The out type parameters can be used_______________.

A. Only to pass back a result to the calling functions.
B. Only to send information to the called function.
C. To pass data to the called method and receive information from the called method.
D. None of these.
Answer» A. Only to pass back a result to the calling functions.
15.

In case of the Params type parameter____________.

A. Only output can be sent.
B. The number of arguments is variable.
C. Both input and output can be handled.
D. None of these.
Answer» B. The number of arguments is variable.
16.

An instance class member is referred by using the format____________.

A. Object name. Class member name.
B. Class name. Class member name.
C. Object name. Class member name or class name. class member name.
D. None of these.
Answer» A. Object name. Class member name.
17.

Overloaded constructors will have________.

A. Different names
B. Different parameter lists
C. Different return types
D. none of these.
Answer» B. Different parameter lists
18.

A static constructor_____________.

A. Is executed when the class is loaded.
B. Can be accessed through an object name.
C. Can be executed any number of times.
D. Can have its own destructor.
Answer» A. Is executed when the class is loaded.
19.

A property________________.

A. Should have a get method.
B. Should have a put method.
C. Should have both get and put methods.
D. Should have either a get method or put method.
Answer» A. Should have a get method.
20.

An indexer________________.

A. Enables us to access a property through index.
B. Can have user-defined name.
C. Is identified by its name.
D. Cannot be overloaded.
Answer» A. Enables us to access a property through index.
21.

A namespace can contain___________.

A. Classes
B. Namespaces
C. Classes and namespaces
D. None of these.
Answer» A. Classes
22.

The alias should have

A. Improve the readability of the code.
B. Avoid name clashes.
C. Saves you typing out very long strings.
D. All the above.
Answer» D. All the above.
23.

In the case of a component,

A. Reusability is possible.
B. Code will be in IL format.
C. The extension is dll.
D. All the above.
Answer» D. All the above.
24.

In case of components and namespaces,

A. Several classes may be present in a component.
B. Classes contained in different source files may be part of same namespace.
C. Classes contained in a source file may be from different namespaces.
D. All the above.
Answer» C. Classes contained in a source file may be from different namespaces.
25.

In the case of access modifiers___________.

A. Private and protected access modifiers can be specified for a class.
B. Public access modifier can be specified for a class.
C. The scope of the internal access modifier is the namespace.
D. None of these.
Answer» D. None of these.
Tags
Question and answers in C#.NET Programming, C#.NET Programming multiple choice questions and answers, C#.NET Programming Important MCQs, Solved MCQs for C#.NET Programming, C#.NET Programming MCQs with answers PDF download

We need your help!

We're developing a website for study materials for students.
We would love to hear your answers to some of the questions.

Take Survey