McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) , Information Technology Engineering (IT) , Master of Computer Applications (MCA) , Programming Languages .
Chapters
1. |
Which of the following statements are TRUE about the .NET CLR?
|
A. | Only 1 and 2 |
B. | Only 1,2 and 4 |
C. | 1,2,3,4 |
D. | Only 4 and 5 |
Answer» C. 1,2,3,4 |
2. |
Which of the following are valid .NET CLR JIT performance counters?
|
A. | 1,5 |
B. | 3,4 |
C. | 1,2 |
D. | 4,5 |
Answer» B. 3,4 |
3. |
Which of the following statements is correct about Managed Code? |
A. | Managed code is the code that is compiled by the JIT compilers. |
B. | Managed code is the code where resources are Garbage Collected. |
C. | Managed code is the code that runs on top of Windows. |
D. | Managed code is the code that is written to target the services of the CLR. |
Answer» D. Managed code is the code that is written to target the services of the CLR. |
4. |
Which of the following are NOT true about .NET Framework?
|
A. | 1,2 |
B. | 2,4 |
C. | 4,5 |
D. | 1,2,4 |
Answer» C. 4,5 |
5. |
Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language? |
A. | NET class libraries |
B. | Common Language Runtime |
C. | Common Language Infrastructure |
D. | Component Object Model |
Answer» A. NET class libraries |
6. |
Which of the following .NET components can be used to remove unused references from the managed heap? |
A. | Common Language Infrastructure |
B. | CLR |
C. | Garbage Collector |
D. | Class Loader |
Answer» C. Garbage Collector |
7. |
Which of the following statements correctly define .NET Framework? |
A. | It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services |
B. | It is an environment for developing, building, deploying and executing only Web Applications. |
C. | It is an environment for developing, building, deploying and executing Distributed Applications. |
D. | It is an environment for developing, building, deploying and executing Web Services. |
Answer» A. It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services |
8. |
Which of the following constitutes the .NET Framework?
|
A. | 1,2 |
B. | 2,3 |
C. | 3,4 |
D. | 2,5 |
Answer» B. 2,3 |
9. |
Which of the following assemblies can be stored in Global Assembly Cache? |
A. | Private Assemblies |
B. | Friend Assemblies |
C. | Shared Assemblies |
D. | Public Assemblies |
Answer» C. Shared Assemblies |
10. |
Code that targets the Common Language Runtime is known as |
A. | Unmanaged |
B. | Distributed |
C. | Legacy |
D. | Managed code |
Answer» D. Managed code |
11. |
Which of the following statements is correct about the .NET Framework? |
A. | NET Framework uses DCOM for achieving language interoperability. |
B. | NET Framework is built on the DCOM technology. |
C. | NET Framework uses DCOM for making transition between managed and unmanaged code. |
D. | NET Framework uses DCOM for creating unmanaged applications. |
Answer» C. NET Framework uses DCOM for making transition between managed and unmanaged code. |
12. |
Which of the following benefits do we get on running managed code under CLR?
|
A. | Only 1 and 2 |
B. | Only 2, 3 and 4 |
C. | Only 1, 3 and 4 |
D. | All of the above |
Answer» D. All of the above |
13. |
Which of the following jobs are done by Common Language Runtime?
|
A. | Only 1 and 2 |
B. | Only 3 and 4 |
C. | Only 1, 3 and 4 |
D. | All of the above |
Answer» D. All of the above |
14. |
Which of the following statements are correct about a .NET Assembly?
|
A. | 1,2,3 |
B. | 2,4,5 |
C. | 1,3,5 |
D. | 1,2 |
Answer» D. 1,2 |
15. |
Which of the following statements are correct about JIT?
|
A. | 1, 2, 3 |
B. | 2,4 |
C. | 3,4,5 |
D. | 1,2 |
Answer» A. 1, 2, 3 |
16. |
Which of the following are parts of the .NET Framework?
|
A. | Only 1, 2, 3 |
B. | Only 1, 2 |
C. | Only 1, 2, 4 |
D. | Only 4,5 |
Answer» B. Only 1, 2 |
17. |
In C#, a subroutine is called a ________. |
A. | Function |
B. | Metadata |
C. | Method |
D. | Managed code |
Answer» C. Method |
18. |
All C# applications begin execution by calling the _____ method. |
A. | Class() |
B. | Main() |
C. | Submain() |
D. | Namespace |
Answer» B. Main() |
19. |
A _______ is an identifier that denotes a storage location |
A. | Constant |
B. | Reference type |
C. | Variable |
D. | Object |
Answer» C. Variable |
20. |
_________ are reserved, and cannot be used as identifiers. |
A. | Keywords |
B. | literal |
C. | variables |
D. | Identifiers |
Answer» A. Keywords |
21. |
Boxing converts a value type on the stack to an ______ on the heap. |
A. | Bool type |
B. | Instance type |
C. | Class type |
D. | Object type |
Answer» D. Object type |
22. |
The character pair?: is an________________available in C#. |
A. | Unary operator |
B. | Ternary operator |
C. | Decision operator |
D. | Functional operator |
Answer» B. Ternary operator |
23. |
In C#, all binary operators are ______. |
A. | Center-associative |
B. | Right-associative |
C. | Left-associative |
D. | Top-associative |
Answer» C. Left-associative |
24. |
An _______ is a symbol that tells the computer to perform certain mathematical or logical manipulations. |
A. | Operator |
B. | Expression |
C. | Condition |
D. | Logic |
Answer» A. Operator |
25. |
A _____ is any valid C# variable ending with a colon. |
A. | goto |
B. | Label |
C. | Logical |
D. | Bitwise |
Answer» B. Label |
26. |
C# has _______ operator, useful for making two way decisions. |
A. | Looping |
B. | Functional |
C. | Exponential |
D. | Conditional |
Answer» D. Conditional |
27. |
________causes the loop to continue with the next iteration after skipping any statements in between. |
A. | Loop |
B. | Exit |
C. | Break |
D. | Continue |
Answer» D. Continue |
28. |
An ____ is a group of contiguous or related data items that share a common name. |
A. | Operator |
B. | Integer |
C. | Exponential |
D. | Array |
Answer» D. Array |
29. |
Arrays in C# are ______ objects |
A. | Reference |
B. | Logical |
C. | Value |
D. | Arithmetic |
Answer» A. Reference |
30. |
Multidimensional arrays are sometimes called _______ Arrays. |
A. | Square |
B. | Triangular |
C. | Rectangular |
D. | Cube |
Answer» C. Rectangular |
31. |
Which of the following define the rules for .Net Languages? |
A. | GAC |
B. | CLS |
C. | CTS |
D. | CLR |
Answer» B. CLS |
32. |
___________ namespace is not defined in the .NET class library. |
A. | System.CodeDom |
B. | System |
C. | System.IO |
D. | System.Text |
Answer» A. System.CodeDom |
33. |
Dot Net Framework consists of : |
A. | Common language runtime |
B. | Set of class libraries |
C. | Common language runtime and set of class libraries |
D. | None of above |
Answer» C. Common language runtime and set of class libraries |
34. |
Which of the following statements are correct about JIT?
|
A. | 1,2,3 |
B. | 2,4 |
C. | 3,4 |
D. | 1,2 |
Answer» A. 1,2,3 |
35. |
Which of the following is the root of the .NET type hierarchy? |
A. | System.Type |
B. | System.Base |
C. | System.Parent |
D. | System.Object |
Answer» D. System.Object |
36. |
Code that targets the Common Language Runtime is known as |
A. | Unmanaged |
B. | Distributed |
C. | Managed Code |
D. | Native Code |
Answer» C. Managed Code |
37. |
Which of the following statements correctly define .NET Framework? |
A. | It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services. |
B. | It is an environment for developing, building, deploying and executing only Web Applications. |
C. | It is an environment for developing, building, deploying and executing Distributed Applications. |
D. | It is an environment for developing, building, deploying and executing Web Services. |
Answer» A. It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services. |
38. |
How many types of compilers availbale under CLR? |
A. | 4 |
B. | 2 |
C. | 1 |
D. | 3 |
Answer» D. 3 |
39. |
Which of the following utilities can be used to compile managed assemblies into processor-specific native code? |
A. | gacutil |
B. | ngen |
C. | sn |
D. | ildasm |
Answer» B. ngen |
40. |
Which of the following statements are correct about data types?
|
A. | 1,3,5 |
B. | 2,4 |
C. | 3,5 |
D. | 1,2,5 |
Answer» D. 1,2,5 |
41. |
Which of the following is NOT an Integer? |
A. | Char |
B. | Byte |
C. | Integer |
D. | Long |
Answer» A. Char |
42. |
What will be the output of the following code snippet when it is executed?
|
A. | 0.1 |
B. | 1.0 |
C. | 1.1 |
D. | 11 |
Answer» A. 0.1 |
43. |
Which of the following is the correct size of a Decimal datatype? |
A. | 8 bytes |
B. | 4 bytes |
C. | 10 bytes |
D. | None of the above |
Answer» D. None of the above |
44. |
Which of the following statements are correct?
|
A. | 2,5 |
B. | 1,5 |
C. | 3,4 |
D. | 2,3 |
Answer» B. 1,5 |
45. |
Which of the following is the correct ways to set a value 3.14 in a variable pi such that it cannot be modified? |
A. | float pi = 3.14F; |
B. | #define pi 3.14F; |
C. | const float pi = 3.14F; |
D. | const float pi; pi = 3.14F; |
Answer» C. const float pi = 3.14F; |
46. |
Which of the following can be used to terminate a while loop and transfer control outside the loop?
|
A. | 1,3 |
B. | 2,4 |
C. | 3,5 |
D. | 4,5 |
Answer» D. 4,5 |
47. |
Which of the following statements are correct about the C#.NET
|
A. | 1,3 |
B. | 2,5 |
C. | 1,4,5, |
D. | 3,4,5 |
Answer» C. 1,4,5, |
48. |
Which of the following is the correct output for the C#.NET code snippet given below? Console.WriteLine(13 / 2 + " " + 13 % 2); |
A. | 6.5 1 |
B. | 6.5 0 |
C. | 6 0 |
D. | 6 1 |
Answer» D. 6 1 |
49. |
Which of the following statements are correct?
|
A. | 1,3,5 |
B. | 2,4 |
C. | 3,5 |
D. | 2,4,5 |
Answer» A. 1,3,5 |
50. |
Which of the following is the correct way to create an object of the class Sample?
|
A. | 1,3 |
B. | 2,4 |
C. | 1,2,3 |
D. | 4,5 |
Answer» A. 1,3 |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.