WorksheetsC#.net Training Quiz 1
Total questions: 15
Worksheet time: 5mins
Who is
responsible for memory allocation and garbage management ?
CLR
CTS
BCL
None
Which of these languages supported by .net ?
C#
VB
C++
Python
Describes the datatypes that can be used by managed code.
CLR
BCL
CTS
CLS
Applications that do not run under the control of CLR ?
Managed Code
Unmanaged Code
Both A&B
None
The common set of features to be followed to fully interact with other objects written in other language
Namespace
CLR
BCL
CLS
A character value should be enclosed within
double quotes
single quotes
curly braces
None
.Net languages are case sensitive
True
False
We can store negative numbers in signed integer ( int ) datatype
True
False
Smaller data type getting converted to larger data type
Explicit casting
Implicit casting
&& is a ----- operator ?
Arithmetic
Logical
Comparison
Assignment Operator
Output of
string str = "Welcome to dot net";
Console.WriteLine(str[6]);
space
t
m
e
int n = -1;
if (n > 0 && n < 5)
Console.WriteLine("Within the range"+n);
else
Console.WriteLine("Outside the range"+n);
Outside the range -1
Outside the range-1
Within the range-1
within the range -1
string str = "Welcome to dot net";
Console.WriteLine(str.Substring(4));
come to dot net
welcome to dot
ome to dot net
ome to dot ne
string str = "Hello";
Console.WriteLine(str[5]);
Prints o
Argument out of range exception
Index out of range exception
Does not print anything
.Net is platform independet
Yes
No
