.NET Framework and C# Fundamentals
Test your knowledge of .NET Framework components, C# programming concepts, object-oriented principles, and core programming fundamentals.
Questions
Which of the following is the primary unit of .NET application?
- CTS
- CLR
- Assembly
- MSIL
Which of the following is the component of .NET Framework which makes it a Type-safe environment?
- CLR
- CTS
- MSIL
- Assembly Manifest
Once compiled, the executed and stored code in .NET is called _______.
- assembly code
- native code
- outside code
- immigrated code
A code written like: int a,b,c; a = (b+c); in any language gets converted to which language in .NET?
- Native Language
- Machine Language
- Assembly Language
- MSIL
Which namespace helps you to create the standard Windows applications?
- System.Threading;
- System.Windows.Forms;
- System.Windows;
- System.Forms;
Which of the following namespaces is the root of the .NET framework?
- Collections
- Drawing
- System
- Math
What is the class in System.Console.WriteLine()?
- System
- Console
- WriteLine
- None of the above
Which of the following are two(if exist) main types that are used in .NET Framework?
- Value Type and Reference Type
- Value Type and Non Value Type
- Reference Type and Non Value Type
- None of the above
Which of the following are the two main components of .NET Framework?
- CLR and Class Library
- CTS and CLR
- MSIL and CLR
- Class Library and CTS
What is the predefined or default type to which all the variables or any other component of .NET based program adhere to?
- System
- Object
- Class
- System.Object
With which component of a program is Literal associated?
- Variables
- Values of the Variables
- Methods of the Variables
- None of the above
The operator (=) in a = b is called
- Assignment operator.
- Conditional operator.
- Relational operator.
- Bitwise operator.
Why is the method ReadLine() used for in the System. Console.ReadLine()?
- For getting the input
- For printing the output
- For accessing any particular variable
- None of the above
Which of the following is not the type of operator used in C#?
- Assignment operator
- Conditional operator
- Relational operator
- Bitwise operator
- All of the above
Which of the following is the decision making statements in C#?
- Case statement
- If statement
- Else statement
- If Else statement
What would be the most suitable option to write a program (using conditional constructs) to write the names of months in the year?
- If else statement
- Switch case statement
- Both 1 and 2
- None of the above
Which of the following could be the possible reason to seal a class/method?
- To stop overriding
- To stop its implementation
- To stop inheritance
- None of these
Which of the following is not the type of access specifier in C#?
- Public
- Private
- Static
- Protected
Can we create the objects of abstract class?
- Yes
- No
Can we do the following assignment?num[0] = num2[1]; where both the arrays are integer type?
- Yes
- No
- Yes but some sort of type casting is required
- Impossible
The language uses opcodes instead of binary machine codes is called
- high level language
- machine language
- assembly language
- None of these
Which is the first method to be executed in a program?
- Its very first method
- Its very last method
- Its middle method
- None of the above
COBOL Stands for
- Computer business oriented language
- Coded business operator language
- Computer business operator language
- Common business oriented language
What is the following structure called?
int [] number = new int[5];
- Structure.
- Class.
- Enumeration.
- Array.
Is the following code right with respect to the concept of Interfaces? What's wrong with the code if use it as it is?
- We can't declare Interface like this
- We can't give body to Interface like this
- We can't give body to things like methods in the Interface like this
- None of the above