Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C# Basics

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

CLR is the .NET equivalent of _________.

a)

Java Virtual Machine

b)

Common Language Runtime

c)

Common Type System

d)

Common Language Specification

2.

The CLR is physically represented by an assembly named _______

a)

mscoree.dll

b)

mcoree.dll

c)

msoree.dll

d)

mscor.dll

3.

The ____ language allows more than one method in a single class

a)

J#

b)

C#

c)

C++

d)

C

4.

In C#, a subroutine is called a ________.

a)

Managed code

b)

Function

c)

Method

d)

Metadata

5.

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

a)

Class()

b)

Main()

c)

Submain()

d)

Namespace

6.

A _______ is an identifier that denotes a storage location

a)

Constant

b)

Reference type

c)

Object

d)

Variable

7.

_________ are reserved, and cannot be used as identifiers.

a)

Keywords

b)

literal

c)

variables

d)

Identifiers

8.

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

9.

The character pair ?: is a________________available in C#.

a)

Unary operator

b)

Ternary operator

c)

Decision operator

d)

Functional operator

10.

In C#, all binary operators are ______.

a)

Center-associative

b)

Right-associative

c)

Left-associative

d)

Top-associative