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

  • (A) Serial
  • (B) Local
  • (C) Private
  • (D) Static
πŸ’¬ Discuss
βœ… Correct Answer: (B) Local

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

  • (A) Compare To()
  • (B) Compare()
  • (C) Copy()
  • (D) ConCat()
πŸ’¬ Discuss
βœ… Correct Answer: (B) Compare()

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

  • (A) Solution Explorer
  • (B) Tool Box
  • (C) Start Menu
  • (D) Designer Window
πŸ’¬ Discuss
βœ… Correct Answer: (C) Start Menu

Q. What does IDE stand for?

  • (A) Integrated Development Environment
  • (B) Integrated Design Environment
  • (C) Interior Development Environment
  • (D) Interior Design Environment
πŸ’¬ Discuss
βœ… Correct Answer: (A) Integrated Development Environment

Q. Visual Studio .NET provides which feature:

  • (A) debugging.
  • (B) application deployment.
  • (C) syntax checking.
  • (D) All of the above..
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above..

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.
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both a and b.

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

  • (A) \=
  • (B) /=
  • (C) *=
  • (D) +=
πŸ’¬ Discuss
βœ… Correct Answer: (A) \=

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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 3, 5

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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 18

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)
πŸ’¬ Discuss
βœ… Correct Answer: (C) s1.Equals(s2)

Jump to