Home > MCQs > IT & Programming > C# MCQs

C# MCQ

You can pass a real assessment without extraordinary preparation. Quizack C# MCQs and C# multiple choice questions and answers are going to save your exponential effort. These MCQs carry a wide range of topics and the best thing is, you will be able to go through these hundreds of questions via online simulative tools.

C# Quick Quiz

Question 1 of 10
  • Will the following code compile? public class CustomClass : IDisposable { }

    Answer & Explanation

    Correct Answer: No

    Note: This Question is unanswered, help us to find answer for this one

  • Applications written in C# require the .NET framework...

    Answer & Explanation

    Correct Answer: to be installed on the machine running the application.

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following is the correct way to specify a decimal

    Answer & Explanation

    Correct Answer: None of these

    Note: This Question is unanswered, help us to find answer for this one

  • Choose the method defined by MemberInfo:

    Answer & Explanation

    Correct Answer: All of the above

    Note: This Question is unanswered, help us to find answer for this one

  • Polymorphism. LET: public class BaseClass { public virtual string DoWork() { return "A"; } } public class DerivedClass : BaseClass { public override string DoWork() { return "B"; } } IF: DerivedClass B = new DerivedClass(); BaseClass A = (BaseClass)B; A.DoWork(); What's the expected output?

    Answer & Explanation

    Correct Answer: B

    Note: This Question is unanswered, help us to find answer for this one

  • What does the following code do? string a = "hello"; string b = null; string c = a + b; Console.WriteLine(c);

    Answer & Explanation

    Correct Answer: It outputs "hello"

    Note: This Question is unanswered, help us to find answer for this one

  • you can use the ____ method to accept user input from the keyboard.

    Answer & Explanation

    Correct Answer: ReadLine()

    Note: This Question is unanswered, help us to find answer for this one

  • In the following array instantiation: string[] names = new string[2]; , how many items can the array hold?

    Answer & Explanation

    Correct Answer: 2

    Note: This Question is unanswered, help us to find answer for this one

  • What happens with the following lines? #region Debug [block of code HERE] #endregion

    Answer & Explanation

    Correct Answer: You can visually expand or collapse the block of code.

    Note: This Question is unanswered, help us to find answer for this one

  • What does if((number <= 10) && (number >= 0)) evaluate to if number is -6?

    Answer & Explanation

    Correct Answer: False

    Note: This Question is unanswered, help us to find answer for this one

  • C# Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.

More Resources
Related Skills Assessments
C++
search
More Resources
Related Skills Assessments
C++