Font size
WorksheetsIntroduction to .NET Core
Total questions: 20
Worksheet time: 7mins
CLR stands for ___________________
Common Language Runtime
Common Linguistic Runtime
Common Language Realtime
None of the above
When a program is compiled the code is converted into _________
Executable code
Objective code
MSIL
None
Is MSIL is platform dependant?
Yes
No
Identify the incorrect signature of Main() method.
void Main()
static void Main(string[] str)
static void Main(String[] args)
public static void Main()
Which of the following are the values types?
Int32
bool
double
class
Which of the following are the reference types?
Class
Delegate
String
All of the above
Struct in C# is _________________
Value type
Reference Type
Pointer
None of the above
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
Who will identify the compilation errors in a aprogram?
CLR
Compiler
JIT
None of the above
Is Microsoft .NET a Open source framework
No
Yes
Which method converts the string representation of an integral to its Int32 representation?
parseInt()
ToInt()
parse()
None of the above
Which of the following is not a property of a string?
Strings are mutable
Strings are reference types
Strings have a default value null
Strings are immutable
In a visual studio project, can we have more than one entry point?
Yes
No
Which of the following are the reference types?
int
Delegate
String
Array
Is enum a reference type?
Yes
No
According to CTS all the types in .NET are derived from _________
System.Object
System.ValueType
System.Console
None of the above
The Read() method of Console class does __________
Reads collection of characters from the standard input stream
Reads a character from the standard input stream
Reads a character from the standard input stream till encounters a new like escape sequences
None of the above
The Read() method of Console class
returns collection of characters as string
returns a character
returns the ASCII value of a read character
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
Does the .NET framework provide language compilers?
Yes
No
