C#(Computer Science ) Questions and Answers

Question 1. The following are the expressions of congratulating, except
  1.    Congratulations!
  2.    I congratulate you on your success
  3.    I'm sorry to hear that
  4.    Well done, congrats!
Explanation:-
Answer: Option C. -> I'm sorry to hear that

Question 2. Ben : Yes, I think so (1)Ann : They look so cute (2)Ben : Oh my God! So many puppies, where did you get them? (3)Ann : I got them from the animal shelter
  1.    1-2-3-4
  2.    3-4-1-2
  3.    3-4-2-1
  4.    4-3-21
Explanation:-
Answer: Option C. -> 3-4-2-1

Question 3. If you want to compliment someone because he won a singing contest, what will you say?
  1.    Happy birthday to you
  2.    Congratulation
  3.    Happy for you
  4.    You have a powerful voice, you deserve to be the winner!
Explanation:-
Answer: Option D. -> You have a powerful voice, you deserve to be the winner!

Question 4. What is the correct value to return to the operating system upon the successful completion of a program?
  1.    1
  2.    0
  3.    -1
  4.    program do not return a value
Explanation:-
Answer: Option B. -> 0

Question 5. These are the expressions of responding compliment, except
  1.    I'm happy you like it
  2.    You look dashing!
  3.    It's very kind of you to say that
  4.    Thank you
Explanation:-
Answer: Option B. -> You look dashing!

Question 6. What is the output of this code?var n1;n1 = true;Console
  1.    true
  2.    error
Explanation:-
Answer: Option B. -> error

Question 7. What will be output of the following c program?#include<stdio
  1.    55
  2.    105
  3.    60
  4.    Compilation error
Explanation:-
Answer: Option D. -> Compilation error

Question 8. Fill in the blank to make the variable num a constant
  1.    con
  2.    constant
  3.    const
  4.    constans
Explanation:-
Answer: Option C. -> const

Question 9. Which operator is used to determine the remainder?
  1.    *
  2.    %
  3.    +
  4.    -
Explanation:-
Answer: Option B. -> %

Question 10. Which arithmetic operator in C returns the integer remainder of the result of dividing its first operand by its second?
  1.    %
  2.    /
  3.    \
  4.    *
Explanation:-
Answer: Option A. -> %