.NET Programming MCQs with answers Page - 1

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

Q. A variable which is declared inside a method is called a________variable

  • (A) Serial
  • (B) Local
  • (C) Private
  • (D) Static

A

Admin • 799.53K Points
Coach

Q. Which is the String method used to compare two strings with each other ?

  • (A) Compare To()
  • (B) Compare()
  • (C) Copy()
  • (D) ConCat()

A

Admin • 799.53K Points
Coach

Q. Which is not a main component of the Visual Studio IDE?

  • (A) Solution Explorer
  • (B) Tool Box
  • (C) Start Menu
  • (D) Designer Window

A

Admin • 799.53K Points
Coach

Q. What does IDE stand for?

  • (A) Integrated Development Environment
  • (B) Integrated Design Environment
  • (C) Interior Development Environment
  • (D) Interior Design Environment

A

Admin • 799.53K Points
Coach

Q. Visual Studio .NET provides which feature:

  • (A) debugging.
  • (B) application deployment.
  • (C) syntax checking.
  • (D) All of the above..

A

Admin • 799.53K Points
Coach

Q. A GUI:

  • (A) uses buttons, menus, and icons.
  • (B) should be easy for a user to manipulate.
  • (C) stands for Graphic Use Interaction.
  • (D) Both a and b.

A

Admin • 799.53K Points
Coach

Q. Which of the following is NOT an Assignment operator in C#.NET?

  • (A) =
  • (B) /=
  • (C) *=
  • (D) +=

A

Admin • 799.53K Points
Coach

Q. Which of the following are NOT Relational operators in C#.NET?
1.>=
2.!=
3.Not
4.<=
5.<>=

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

A

Admin • 799.53K Points
Coach

Q. Which of the following is the correct output of the C#.NET code snippet given below?

Code:
int[ , , ] a = new int[ 3, 2, 3 ];
Console.WriteLine(a.Length);
  • (A) 20
  • (B) 4
  • (C) 18
  • (D) 10

A

Admin • 799.53K Points
Coach

Q. If s1 and s2 are references to two strings, then which of the following is the correct way to compare the two references?

  • (A) s1 is s2
  • (B) s1 = s2
  • (C) s1.Equals(s2)
  • (D) strcmp(s1, s2)