wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C#.net Training Quiz 1

Total questions: 15

Worksheet time: 5mins

Name
Class
Date
1.

Who is

responsible for memory allocation and garbage management ?

a)

CLR

b)

CTS

c)

BCL

d)

None

2.

Which of these languages supported by .net ?

a)

C#

b)

VB

c)

C++

d)

Python

3.

Describes the datatypes that can be used by managed code.

a)

CLR

b)

BCL

c)

CTS

d)

CLS

4.

Applications that do not run under the control of CLR ?

a)

Managed Code

b)

Unmanaged Code

c)

Both A&B

d)

None

5.

The common set of features to be followed to fully interact with other objects written in other language

a)

Namespace

b)

CLR

c)

BCL

d)

CLS

6.

A character value should be enclosed within

a)

double quotes

b)

single quotes

c)

curly braces

d)

None

7.

.Net languages are case sensitive

a)

True

b)

False

8.

We can store negative numbers in signed integer ( int ) datatype

a)

True

b)

False

9.

Smaller data type getting converted to larger data type

a)

Explicit casting

b)

Implicit casting

10.

&& is a ----- operator ?

a)

Arithmetic

b)

Logical

c)

Comparison

d)

Assignment Operator

11.

Output of

string str = "Welcome to dot net";

Console.WriteLine(str[6]);

a)

space

b)

t

c)

m

d)

e

12.

int n = -1;

if (n > 0 && n < 5)

Console.WriteLine("Within the range"+n);

else

Console.WriteLine("Outside the range"+n);

a)

Outside the range -1

b)

Outside the range-1

c)

Within the range-1

d)

within the range -1

13.

string str = "Welcome to dot net";

Console.WriteLine(str.Substring(4));

a)

come to dot net

b)

welcome to dot

c)

ome to dot net

d)

ome to dot ne

14.

string str = "Hello";

Console.WriteLine(str[5]);

a)

Prints o

b)

Argument out of range exception

c)

Index out of range exception

d)

Does not print anything

15.

.Net is platform independet

a)

Yes

b)

No