Home / Programming Questions / C# MCQs / Page 4

C# MCQs with answers Page - 4

Dear candidates you will find MCQ questions of C# here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

R

Ram Sharma • 178.09K Points
Coach

Q. Which of the following statements are correct about JIT?
1. JIT compiler compiles instructions into machine code at run time. 
2. The code compiler by the JIT compiler runs under CLR. 
3. The instructions compiled
by JIT compilers are written in native code. 
4. The instructions compiled
by JIT compilers are written in Intermediate Language (IL) code. 
5. The method is JIT compiled even if it is not called

(A) 1, 2, 3
(B) 2,4
(C) 3,4,5
(D) 1,2

R

Ram Sharma • 178.09K Points
Coach

Q. Which of the following are parts of the .NET Framework?

Code:
1. The Common Language Runtime (CLR) 
2. The Framework Class Libraries
(FCL) 
3. Microsoft Published Web Services 
4. Applications deployed on IIS
5. Mobile Applications
(A) Only 1, 2, 3
(B) Only 1, 2
(C) Only 1, 2, 4
(D) Only 4,5

R

Ram Sharma • 178.09K Points
Coach

Q. In C#, a subroutine is called a ________.

(A) Function
(B) Metadata
(C) Method
(D) Managed code

R

Ram Sharma • 178.09K Points
Coach

Q. All C# applications begin execution by calling the _____ method.

(A) Class()
(B) Main()
(C) Submain()
(D) Namespace

R

Ram Sharma • 178.09K Points
Coach

Q. A _______ is an identifier that denotes a storage location

(A) Constant
(B) Reference type
(C) Variable
(D) Object

R

Ram Sharma • 178.09K Points
Coach

Q.  _________ are reserved, and cannot be used as identifiers.

(A) Keywords
(B) literal
(C) variables
(D) Identifiers

R

Ram Sharma • 178.09K Points
Coach

Q. Boxing converts a value type on the stack to an ______ on the heap.

(A) Bool type
(B) Instance type
(C) Class type
(D) Object type

R

Ram Sharma • 178.09K Points
Coach

Q. The character pair?: is an __________ available in C#.

(A) Unary operator
(B) Ternary operator
(C) Decision operator
(D) Functional operator

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.