.NET Programming MCQs with answers Page - 55

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 • 828.03K Points
Coach

Q. What will be the output?

Code:
Console.WriteLine(Math.Max(5, 10));
  • (A) 5
  • (B) 10
  • (C) 15
  • (D) Error

A

Admin • 828.03K Points
Coach

Q. Which HTTP status code means Success?

  • (A) 200
  • (B) 400
  • (C) 401
  • (D) 500

A

Admin • 828.03K Points
Coach

Q. What will be printed?

Code:
bool x = false;
Console.WriteLine(!x);
  • (A) true
  • (B) false
  • (C) 0
  • (D) 1

A

Admin • 828.03K Points
Coach

Q. Which keyword is used to create asynchronous method?

  • (A) await
  • (B) task
  • (C) async
  • (D) thread

A

Admin • 828.03K Points
Coach

Q. What will be the output?

Code:
var list = new List<int>{1,2,3,4};
Console.WriteLine(list.Contains(3));
  • (A) True
  • (B) False
  • (C) 0
  • (D) Error

A

Admin • 828.03K Points
Coach

Q. Which class is used to make HTTP requests in ASP.NET Core?

  • (A) WebRequest
  • (B) HttpClient
  • (C) HttpRequest
  • (D) RestClient

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