0% found this document useful (0 votes)
26 views2 pages

Duration: 15mins.: Using System Class Static Void String Int Int

This document contains a 10 question .NET test with multiple choice answers for each question. The questions cover topics like the size of data types in .NET, boxing and unboxing, the meaning of CLS, output of code samples using operators like increment, loops, labels, and goto statements, components of the .NET framework like CLR, CLS, and FCL, and the role of the JIT compiler.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

Duration: 15mins.: Using System Class Static Void String Int Int

This document contains a 10 question .NET test with multiple choice answers for each question. The questions cover topics like the size of data types in .NET, boxing and unboxing, the meaning of CLS, output of code samples using operators like increment, loops, labels, and goto statements, components of the .NET framework like CLR, CLS, and FCL, and the role of the JIT compiler.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

.

NET TEST PAPER


Duration: 15mins.
1. What is the Size of float?

a)4 bytes b)8 bytes c)16 bytes d)2 bytes

2) Boxing is converting from..

a) Value types to reference types b) reference types to value types

c) integers to double d) float to integers

3) What is CLS Stands For?

a) Common Layout Specifications b) Common Language System

c) Common Language Specifications b) Common Layer System

4) What is the output of the following code?

Using System;
class Program
{
static void Main(string[] args)
{
int a = 5;
int b = ++a;
Console.WriteLine(a * b);
Console.ReadLine();
}
}
a) 25 b) 30 c) 36 d) 20

5) What is the output of the following code?

Using System;
class Program
{
static void Main(string[] args)
{

int i;
for (i = 1; i <= 10; i++);
Console.WriteLine(i);
Console.ReadLine();
}
}
a) 1 b) 10 c) 11 d) Compilation Error

6) Explicit type casting means.....

a) Converting from Smaller dataype to bigger datatype

b) Converting from bigger dataype to smaller datatype

c) Converting from integer dataype to float datatye

d) Converting from string dataype to integer datatye

7) what is the correct output of 5/3 and 5%3 in C#.net.

a) 1 0 b) 1.5 0 c)1 2 d) 1.5 2


.NET TEST PAPER
Duration: 15mins.
8) What is the output of the following code?

class Program
{
static void Main(string[] args)
{
int i = 0, j = 0;

label:
i++;
j += i;
if (i < 10)
{
Console.Write(i + " ");
goto label;
}

Console.ReadLine();
}
}
a) prints 1 to 9 b) prints 0 to 9

c) prints 2 to 9 d)Compilation Error at Label:

9)What are the components of .NET Framework?

a) CLR b) CLS c) FCL d) All of the above.

10) What is the JIT compiler do..

a) it converts the MSIL to binary code.

b) it converts the source code to MSIL.

c) it converts the Native code to MSIL

d) it converts the MSIL to Source code.

You might also like