wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C# and DotNet Framework

Total questions: 50

Worksheet time: 26mins

Name
Class
Date
1.

CLR stands for ___________________

a)

Common Language Runtime

b)

Common Linguistic Runtime

c)

Common Language Realtime

d)

None of the above

2.

Is Microsoft .NET a Open source framework

a)

No

b)

Yes

3.
We can't use visual basic.net language keywords in variable name 
a)
True
b)
False
4.

The Visual Studio IDE will automatically create a new folder for each new project.

a)

True

b)

False

5.

file extension of the vb.net file

a)

.proj

b)

.net

c)

.vb

d)

.slm

6.

Who developed Visual Studio?

a)

a) Symantec

b)

b) Ashton-Tate

c)

c) Microsoft

d)

d) Sybase

7.

Which of the following extension is used to represent the project file in Visual Basic?

a)

a) .vbp

b)

b) .vb

c)

c) .cls

d)

d) .vvb

8.

_______ ensures complete interoperability among applications, regardless of the language used to create the application.

a)

CLR

b)

CLS

c)

CTS

d)

FCL

9.

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

a)

\=

b)

/=

c)

*=

d)

+=

10.

The main function of ______ is to convert the managed code into native code and then execute the code.

a)

CLR

b)

CTS

c)

CLS

d)

FCL

11.

Which method will return the number of elements in an array?

a)

Length

b)

Number

c)

Size

d)

none

12.

The ________ is the execution engine for .NET applications and servers as the interface between .NET applications and the operating system.

a)

Common Language Specifications (CLS)

b)

Common Language Runtime (CLR)

c)

Common Type System (CTS)

d)

Framework Class Library (FCL)

13.

Which HTML tag creates a link to another browser page?

a)

A href

b)

A ref

c)

An href

d)

An ref

14.

Which of the following contains web application settings?

a)

(A) app.config

b)

(C) assembly.config

c)

(B) web.config

d)

(D) machine.config

15.

Which method do you invoke on the DataAdapter control to load your generated

dataset with data?

a)

D. DataBind

b)

A. Load ( )

c)

B. Fill( )

d)

C. DataList

16.

ADO.NET provides a bridge between the front end controls and the back end database.

a)

D. Can not say

b)

C. Can be true or false

c)

A. TRUE

d)

B. FALSE

17.

ADO.NET stands for ?

a)

A. ActiveX Data Object

b)

B.  All Data Object

c)

C.  Access Data Object

d)

D.  ActiveX DataSet Object

18.

C# is a?

a)

A.   general-purpose programming language

b)

B.  object-oriented programming language

c)

C.  modern programming language

d)

D.  All of the above

19.

Which of the following not true about C#?

a)

A. It is component oriented

b)

B. It is a unstructured language

c)

C.  It is easy to learn

d)

D.  It is a part of .Net Framework.

20.

 ASP stands for?

a)

A. Active Server Pages

b)

B.  Access Server Pages

c)

C.  Active Server Platform

d)

D.  Active Server Programming

21.

Choose .NET class name from which data type UInt is derived?

a)

A. System.Int16

b)

B. System.UInt32

c)

C.  System.UInt64

d)

D.  System.UInt16

22.

Number of digits upto which precision value of float data type is valid?

a)

A. Upto 6 digit

b)

B. Upto 7 digit

c)

C.  Upto 8 digit

d)

D.  Upto 9 digit

23.

Reference is a ___.

a)

A.   Copy of class which leads to memory allocation.

b)

B.   Copy of class that is not initialized.

c)

C.   Pre-defined data type.

d)

D.  Copy of class creating by an existing instance.

24.

The … provides the bridge between the data set object and the data source

a)

A) Data bridge

b)

B) Data reader

c)

C) Data object

d)

D) Data Adapter

25.

.........… is a code that consists of CPU and platform-independent set of instructions, which can be easily converted to native code.

a)

A) JIT

b)

B) FCL

c)

C) DLL

d)

D) MSIL

26.

The .........… is responsible for allocating, freeing, and compacting memory.

a)

A) garbage collector

b)

B) type checker

c)

C) code manager

d)

D) memory manager

27.

Which is not a main component of the Visual Studio IDE?

a)

a. Solution Explorer

b)

b. Tool Box

c)

c. Start Menu

d)

d. Designer Window

28.

In C#, ‘using’ is a _________.

a)

a. class

b)

b. directive.

c)

c. function

d)

d. keyword

29.

The ______________ the engine of .NET uses only IL code.

a)

Visual Studio

b)

.Net language

c)

CLR

d)

.Net class library

30.

In C# __________ should always written in lowercase letters.

a)

Delegates

b)

Variables

c)

Keywords

d)

Namespace

31.

C# uses a ___________as a statement-termination character.

a)

Comma

b)

Semicolon

c)

Hash

d)

Colon

32.

Curly braces, group multiple code statements together {} can be called as__________.

a)

Groups

b)

Blocks

c)

Parts

d)

Section

33.

1. The Visual Studio automatically lists information such as function parameters in helpful tooltips. This technology is called ___________________.

a)

Intellisense

b)

inteligence

c)

autosense

d)

atocorrecting

34.

What is the meaning of dot in .Net Framework?

a)

It means OOPS Concept

b)

It means inheritance

c)

It means abstraction

d)

None of the above

35.

When a program is compiled the code is converted into _________

a)

Executable code

b)

Objective code

c)

MSIL

d)

None

36.

Predict the output of the below code.

class Demo

{

static void Main()

{

Console.Write("Welcome to C#")

}

}

a)

Would display, "Welcome to C#"

b)

Compilation error at line number 3

c)

Compilation error at line number 5

d)

Code will compile but won't display anything

37.

According to CTS all the types in .NET are derived from _________

a)

System.Object

b)

System.ValueType

c)

System.Console

d)

None of the above

38.

What is the output of the below statement.

int a=10;

int b=20;

Console.WriteLine("Sum is:"+a+b);

a)

Sum is:30

b)

Sum is:10+20

c)

Sum is:1020

d)

Gives compilation error

39.

Which Data Provider gives the maximum performance when connect to SQL Server?

a)

The SqlClient data provider.

b)

The OLE DB data provider.

c)

The Oracle data provider

d)

All of the above.

40.

Which ADO.NET class provide Disconnected Environment?

a)

DataReader

b)

DataSet

c)

Command

d)

None of the above.

41.

Is MSIL is platform dependant?

a)

Yes

b)

No

42.

Struct in C# is _________________

a)

Value type

b)

Reference Type

c)

Pointer

d)

None of the above

43.

Is enum a reference type?

a)

Yes

b)

No

44.

-------------------- is a special language that programmers used to communicate with a computer

a)

Communication Language

b)

Community language

c)

Programming Language

d)

Syntaxes

45.

------------- property determines whether the controls visible or hidden.

a)

Display

b)

Visible

c)

View

d)

Show

46.

-------------- window is used to write the code for any object

a)

Object Window

b)

Symbol Window

c)

Code Window

d)

Solution Explorer

47.

------------ is the function key used to run a program in Visual studio

a)

F8

b)

F7

c)

F4

d)

F5

48.

--------------- is the window used to display the list of forms and other objects that constitutes the application

a)

Solution Explorer

b)

Object Window

c)

Code Window

d)

Form Window

49.

What is an IDE

a)

Integrated Development Environment

b)

Integrated Device Environment

c)

Integral Development Environment

d)

Integrated Device Electronics

50.

------------- property which changes the name of the Form

a)

Name

b)

Text

c)

Font

d)

Background