.NET Programming MCQs with answers Page - 47

Here, you will find a collection of MCQ questions on .NET Programming. 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. What is the purpose of the Global Assembly Cache (GAC)?

  • (A) Store temporary files
  • (B) Store shared .NET assemblies
  • (C) Store configuration files
  • (D) Store source code

A

Admin • 833.24K Points
Coach

Q. Which keyword ensures a variable is accessed by only one thread at a time?

  • (A) lock
  • (B) sync
  • (C) thread
  • (D) mutex

A

Admin • 833.24K Points
Coach

Q. Which namespace is used for multithreading?

  • (A) System.IO
  • (B) System.Threading
  • (C) System.Collections
  • (D) System.Net

A

Admin • 833.24K Points
Coach

Q. What is deadlock in .NET?

  • (A) High CPU usage
  • (B) Threads waiting indefinitely for resources
  • (C) Memory leak
  • (D) Application crash

A

Admin • 833.24K Points
Coach

Q. Which class is used to create a thread?

  • (A) Task
  • (B) Thread
  • (C) ThreadPool
  • (D) BackgroundWorker

A

Admin • 833.24K Points
Coach

Q. What is Task Parallel Library (TPL)?

  • (A) UI framework
  • (B) Data access tool
  • (C) Parallel programming library
  • (D) Logging system

A

Admin • 833.24K Points
Coach

Q. Which method is used to wait for a Task to complete?

  • (A) Wait()
  • (B) Complete()
  • (C) Join()
  • (D) Stop()

A

Admin • 833.24K Points
Coach

Q. What is async method return type?

  • (A) void only
  • (B) Task or Task<T>
  • (C) Thread
  • (D) IAsyncResult

A

Admin • 833.24K Points
Coach

Q. Which collection is thread-safe?

  • (A) List
  • (B) ArrayList
  • (C) ConcurrentDictionary
  • (D) Dictionary

A

Admin • 833.24K Points
Coach

Q. What is race condition?

  • (A) CPU scheduling issue
  • (B) Threads accessing shared data unsafely
  • (C) Deadlock
  • (D) Memory overflow

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