πŸ“Š C#
Q. 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.
πŸ’¬ Discuss
βœ… Correct Answer: (C) NET Framework uses DCOM for making transition between managed and unmanaged code.
πŸ“Š C#
Q. Which of the following benefits do we get on running managed code under CLR?
1. Type safety of the code running under CLR is assured.
2. It is ensured that an application would not access the memory that it is not authorized to access.
3. It launches separate process for every application running under it.
4. The resources are Garbage collected.
  • (A) Only 1 and 2
  • (B) Only 2, 3 and 4
  • (C) Only 1, 3 and 4
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above
πŸ“Š C#
Q. Which of the following jobs are done by Common Language Runtime?
1. It provides core services such as memory management, thread management, and remoting.
2. It enforces strict type safety.
3. It provides Code Access Security.
4. It provides Garbage Collection Services.
  • (A) Only 1 and 2
  • (B) Only 3 and 4
  • (C) Only 1, 3 and 4
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above
πŸ“Š C#
Q. Which of the following statements are correct about a .NET Assembly?
1. It is the smallest deployable unit.
2. Each assembly has only one entry
point - Main(), WinMain() or DLLMain(). 3. An assembly can be a Shared assembly or a Private assembly.
4. An assembly can contain only code
and data.
5. An assembly is always in the form of an EXE file
  • (A) 1,2,3
  • (B) 2,4,5
  • (C) 1,3,5
  • (D) 1,2
πŸ’¬ Discuss
βœ… Correct Answer: (D) 1,2
πŸ“Š C#
Q. Which of the following statements are correct about JIT?
1. JIT compiler compiles instructions into machine code at run time.
2. The code compiler by the JIT compiler runs under CLR.
3. The instructions compiled
by JIT compilers are written in native code.
4. The instructions compiled
by JIT compilers are written in Intermediate Language (IL) code.
5. The method is JIT compiled even if it is not called
  • (A) 1, 2, 3
  • (B) 2,4
  • (C) 3,4,5
  • (D) 1,2
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1, 2, 3
πŸ“Š C#
Q. Which of the following are parts of the .NET Framework?
Code:
1. The Common Language Runtime (CLR) 
2. The Framework Class Libraries
(FCL) 
3. Microsoft Published Web Services 
4. Applications deployed on IIS
5. Mobile Applications
  • (A) Only 1, 2, 3
  • (B) Only 1, 2
  • (C) Only 1, 2, 4
  • (D) Only 4,5
πŸ’¬ Discuss
βœ… Correct Answer: (B) Only 1, 2
πŸ“Š C#
Q. In C#, a subroutine is called a ________.
  • (A) Function
  • (B) Metadata
  • (C) Method
  • (D) Managed code
πŸ’¬ Discuss
βœ… Correct Answer: (C) Method
πŸ“Š C#
Q. All C# applications begin execution by calling the _____ method.
  • (A) Class()
  • (B) Main()
  • (C) Submain()
  • (D) Namespace
πŸ’¬ Discuss
βœ… Correct Answer: (B) Main()
πŸ“Š C#
Q. A _______ is an identifier that denotes a storage location
  • (A) Constant
  • (B) Reference type
  • (C) Variable
  • (D) Object
πŸ’¬ Discuss
βœ… Correct Answer: (C) Variable
πŸ“Š C#
Q. _________ are reserved, and cannot be used as identifiers.
  • (A) Keywords
  • (B) literal
  • (C) variables
  • (D) Identifiers
πŸ’¬ Discuss
βœ… Correct Answer: (A) Keywords