C# MCQ

Below C# quiz are Multiple Choice Questions (MCQs) type Quiz. These C# MCQ Questions helps you to refresh your C#, you can see the correct option by clicking on it. .
  • 1. Which following statement is true?

    • Congratulation is the feeling of being grateful
    • Congratulation is an arrangement, a promise
    • Congratulation is something that you say or do to greet
    • Congratulation is the act of expressing joy or acknowledgement, as for achievement
  • 2. Objects cannot be created for _________ class.

    • normal
    • student
    • abstract
    • struct
  • 3. Which of the following cannot be a structure member?

    • Another structure
    • Function
    • Array
    • None of the mentioned
  • 4. Which of the following is not logical operator?

    • &
    • &&
    • ||
    • !
  • 5. int main(){ int a = 10, b = 25; a = b++ + a++; b = ++b + ++a; printf("%d %d n", a, b);}

    • 36 64
    • 35 62
    • 36 63
    • 30 28
  • 6. When does the code block following while(x<100) execute?

    • When x is less than one hundred
    • When x is greater than one hundred
    • When x is equal to one hundred
    • while it wishes
  • 7. An ____________ is an object that encapsulates information about an unusual program occurrence

    • Exception
    • try
    • catch
    • finally
  • 8. Is the syntax for the following C statement correct?:scanf("%d", input);

    • True
    • False
  • 9. Fill in the blanks to display the result of the multiplication of x and y.int x = 42;int y = 7;int z = x __ y;Console.WriteLine( __ );

    • *.....z
    • mul........z
    • *......y
    • -.......x