• CALL US: +91-8561868421
  • Address: Plont No 67 OM Shiv Colony Jhotwara Jaipur-12

C# Quiz

(Total Question : 30)

Q.1

Which of the following statements is correct about Managed Code?

Q.2

Which of the following utilities can be used to compile managed assemblies into processor-specific native code?

Q.3

Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language?

Q.4

Which of the following .NET components can be used to remove unused references from the managed heap?

Q.5

Which of the following statements correctly define .NET Framework?

Q.6

Which of the following is an 8-byte Integer?

Q.7

Which of the following is NOT an Integer?

Q.8

Which of the following statements is correct?

Q.9

Which of the following does not store a sign?

Q.10

What is the size of a Decimal?

Q.11

Which of the following is NOT an Arithmetic operator in C#.NET?

Q.12

Which of the following is NOT a Bitwise operator in C#.NET?

Q.13

Which of the following is the correct output for the C#.NET code snippet given below? Console.WriteLine(13 / 2 + \" \" + 13 % 2);

Q.14

Suppose n is a variable of the type Byte and we wish to put OFF its fourth bit (from right) without disturbing any other bits. Which of the following statements will do this correctly?

Q.15

Which of the following is NOT an Assignment operator in C#.NET?

Q.16

How many values is a function capable of returning?

Q.17

Which of the following statements is correct?

Q.18

Which of the following statements is correct?

Q.19

Which of the following statements is correct about constructors?

Q.20

How many times can a constructor be called during lifetime of the object?

Q.21

s it possible to invoke Garbage Collector explicitly?

Q.22

Which of the following statements is correct?

Q.23

Which of the following statements are correct about static functions?

Q.24

Which of the following statements are correct about the C#.NET code snippet given below?
int[] a = {11, 3, 5, 9, 4};
1. The array elements are created on the stack.
2. Refernce a is created on the stack.
3. The array elements are created on the heap.
4. On declaring the array a new array class is created which is derived from System.Array Class.
5. Whether the array elements are stored in the stack or heap depends upon the size of the array.

Q.25

Which one of the following statements is correct?

Q.26

Which of the following statement is correct about a String in C#.NET?

Q.27

Which of the following statements about a String is correct?

Q.28

The space required for structure variables is allocated on stack.

Q.29

Creating empty structures is allowed in C#.NET.

Q.30

Creating empty structures is allowed in C#.NET.