Font size
WorksheetsC# and DotNet Framework
Total questions: 50
Worksheet time: 26mins
CLR stands for ___________________
Common Language Runtime
Common Linguistic Runtime
Common Language Realtime
None of the above
Is Microsoft .NET a Open source framework
No
Yes
The Visual Studio IDE will automatically create a new folder for each new project.
True
False
file extension of the vb.net file
.proj
.net
.vb
.slm
Who developed Visual Studio?
a) Symantec
b) Ashton-Tate
c) Microsoft
d) Sybase
Which of the following extension is used to represent the project file in Visual Basic?
a) .vbp
b) .vb
c) .cls
d) .vvb
_______ ensures complete interoperability among applications, regardless of the language used to create the application.
CLR
CLS
CTS
FCL
Which of the following is NOT an Assignment operator in C#.NET?
\=
/=
*=
+=
The main function of ______ is to convert the managed code into native code and then execute the code.
CLR
CTS
CLS
FCL
Which method will return the number of elements in an array?
Length
Number
Size
none
The ________ is the execution engine for .NET applications and servers as the interface between .NET applications and the operating system.
Common Language Specifications (CLS)
Common Language Runtime (CLR)
Common Type System (CTS)
Framework Class Library (FCL)
Which HTML tag creates a link to another browser page?
A href
A ref
An href
An ref
Which of the following contains web application settings?
(A) app.config
(C) assembly.config
(B) web.config
(D) machine.config
Which method do you invoke on the DataAdapter control to load your generated
dataset with data?
D. DataBind
A. Load ( )
B. Fill( )
C. DataList
ADO.NET provides a bridge between the front end controls and the back end database.
D. Can not say
C. Can be true or false
A. TRUE
B. FALSE
ADO.NET stands for ?
A. ActiveX Data Object
B. All Data Object
C. Access Data Object
D. ActiveX DataSet Object
C# is a?
A. general-purpose programming language
B. object-oriented programming language
C. modern programming language
D. All of the above
Which of the following not true about C#?
A. It is component oriented
B. It is a unstructured language
C. It is easy to learn
D. It is a part of .Net Framework.
ASP stands for?
A. Active Server Pages
B. Access Server Pages
C. Active Server Platform
D. Active Server Programming
Choose .NET class name from which data type UInt is derived?
A. System.Int16
B. System.UInt32
C. System.UInt64
D. System.UInt16
Number of digits upto which precision value of float data type is valid?
A. Upto 6 digit
B. Upto 7 digit
C. Upto 8 digit
D. Upto 9 digit
Reference is a ___.
A. Copy of class which leads to memory allocation.
B. Copy of class that is not initialized.
C. Pre-defined data type.
D. Copy of class creating by an existing instance.
The … provides the bridge between the data set object and the data source
A) Data bridge
B) Data reader
C) Data object
D) Data Adapter
.........… is a code that consists of CPU and platform-independent set of instructions, which can be easily converted to native code.
A) JIT
B) FCL
C) DLL
D) MSIL
The .........… is responsible for allocating, freeing, and compacting memory.
A) garbage collector
B) type checker
C) code manager
D) memory manager
Which is not a main component of the Visual Studio IDE?
a. Solution Explorer
b. Tool Box
c. Start Menu
d. Designer Window
In C#, ‘using’ is a _________.
a. class
b. directive.
c. function
d. keyword
The ______________ the engine of .NET uses only IL code.
Visual Studio
.Net language
CLR
.Net class library
In C# __________ should always written in lowercase letters.
Delegates
Variables
Keywords
Namespace
C# uses a ___________as a statement-termination character.
Comma
Semicolon
Hash
Colon
Curly braces, group multiple code statements together {} can be called as__________.
Groups
Blocks
Parts
Section
1. The Visual Studio automatically lists information such as function parameters in helpful tooltips. This technology is called ___________________.
Intellisense
inteligence
autosense
atocorrecting
What is the meaning of dot in .Net Framework?
It means OOPS Concept
It means inheritance
It means abstraction
None of the above
When a program is compiled the code is converted into _________
Executable code
Objective code
MSIL
None
Predict the output of the below code.
class Demo
{
static void Main()
{
Console.Write("Welcome to C#")
}
}
Would display, "Welcome to C#"
Compilation error at line number 3
Compilation error at line number 5
Code will compile but won't display anything
According to CTS all the types in .NET are derived from _________
System.Object
System.ValueType
System.Console
None of the above
What is the output of the below statement.
int a=10;
int b=20;
Console.WriteLine("Sum is:"+a+b);
Sum is:30
Sum is:10+20
Sum is:1020
Gives compilation error
Which Data Provider gives the maximum performance when connect to SQL Server?
The SqlClient data provider.
The OLE DB data provider.
The Oracle data provider
All of the above.
Which ADO.NET class provide Disconnected Environment?
DataReader
DataSet
Command
None of the above.
Is MSIL is platform dependant?
Yes
No
Struct in C# is _________________
Value type
Reference Type
Pointer
None of the above
Is enum a reference type?
Yes
No
-------------------- is a special language that programmers used to communicate with a computer
Communication Language
Community language
Programming Language
Syntaxes
------------- property determines whether the controls visible or hidden.
Display
Visible
View
Show
-------------- window is used to write the code for any object
Object Window
Symbol Window
Code Window
Solution Explorer
------------ is the function key used to run a program in Visual studio
F8
F7
F4
F5
--------------- is the window used to display the list of forms and other objects that constitutes the application
Solution Explorer
Object Window
Code Window
Form Window
What is an IDE
Integrated Development Environment
Integrated Device Environment
Integral Development Environment
Integrated Device Electronics
------------- property which changes the name of the Form
Name
Text
Font
Background
