C# (C Sharp) MCQs with answers Page - 35

Here, you will find a collection of MCQ questions on C# (C Sharp). Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. A computer application for managing databases and pulling together data to generate reports and make decisions is known as a(n)

  • (A) Database System (DS).
  • (B) File Manager (FM).
  • (C) Management System (MS).
  • (D) Database Management System (DBMS).

A

Admin • 833.24K Points
Coach

Q. ADO.NET is the data access component of Microsoft’s .NET framework that enables you to

  • (A) connect your Visual Basic.NET applications to your company’s local area network.
  • (B) connect your Visual Basic.NET applications to databases.
  • (C) connect your PC to the Internet.
  • (D) connect your local area network to the Internet.

A

Admin • 833.24K Points
Coach

Q. Which of the following statements characterizes the relationship between a Visual Basic.NET program and a database record?

  • (A) They are connected.
  • (B) External databases cannot be accessed by Visual Basic.NET.
  • (C) They are connected as long as the program is running.
  • (D) They are not connected.

A

Admin • 833.24K Points
Coach

Q. Choose the namespace in which the interface IEnumerable is declared?

  • (A) System.Collections
  • (B) System.Collections.Generic
  • (C) Both a & b
  • (D) None of the mentioned

A

Admin • 833.24K Points
Coach

Q. Which of the following statements are TRUE about the .NET CLR?
1. It provides a language-neutral development & execution environment.
2. It ensures that an application would not be able to access memory that it is not authorized to access.
3. It provides services to run "managed" applications.
4. The resources are garbage collected.
5. It provides services to run "unmanaged" applications.

  • (A) Only 1 and 2
  • (B) Only 1,2 and 4
  • (C) 1,2,3,4
  • (D) Only 4 and 5

A

Admin • 833.24K Points
Coach

Q. Which of the following are valid .NET CLR JIT performance counters?
1. Total memory used for JIT compilation
2. Average memory used for JIT compilation
3. Number of methods that failed to compile with the standard JIT
4. Percentage of processor time spent performing JIT compilation
5. Percentage of memory currently dedicated for JIT compilation

  • (A) 1,5
  • (B) 3,4
  • (C) 1,2
  • (D) 4,5

A

Admin • 833.24K Points
Coach

Q. Which of the following are NOT true about .NET Framework?
1. It provides a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely.
2. It provides a code-execution environment that minimizes software deployment and versioning conflicts.
3. It provides a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party.
4. It provides different programming models for Windows-based applications and Web-based applications.
5. It provides an event driven programming model for building Windows Device Drivers.

  • (A) 1,2
  • (B) 2,4
  • (C) 4,5
  • (D) 1,2,4

A

Admin • 833.24K Points
Coach

Q. 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.

A

Admin • 833.24K Points
Coach

Q. Which of the following constitutes the .NET Framework?
1. ASP.NET Applications
2. CLR
3. Framework Class Library
4. WinForm Applications
5. Windows Services

  • (A) 1,2
  • (B) 2,3
  • (C) 3,4
  • (D) 2,5

A

Admin • 833.24K Points
Coach

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

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ