MCQ Mojo
access_time
menu
Quiz
Web Stories
CBSE
arrow_drop_down
MCQ Questions for CBSE Class 12 with Answers
MCQ Questions for CBSE Class 11 with Answers
MCQ Questions for CBSE Class 10 with Answers
MCQ Questions for CBSE Class 9 with Answers
MCQ Questions for CBSE Class 8 with Answers
MCQ Questions for CBSE Class 7 with Answers
MCQ Questions for CBSE Class 6 with Answers
MCQ Questions for CBSE Class 5 with Answers
MCQ Questions for CBSE Class 4 with Answers
MCQ Questions for CBSE Class 3 with Answers
MCQ Questions for CBSE Class 2 with Answers
MCQ Questions for CBSE Class 1 with Answers
CBSE
arrow_drop_down
MCQ Questions for CBSE Class 12 with Answers
MCQ Questions for CBSE Class 11 with Answers
MCQ Questions for CBSE Class 10 with Answers
MCQ Questions for CBSE Class 9 with Answers
MCQ Questions for CBSE Class 8 with Answers
MCQ Questions for CBSE Class 7 with Answers
MCQ Questions for CBSE Class 6 with Answers
MCQ Questions for CBSE Class 5 with Answers
MCQ Questions for CBSE Class 4 with Answers
MCQ Questions for CBSE Class 3 with Answers
MCQ Questions for CBSE Class 2 with Answers
MCQ Questions for CBSE Class 1 with Answers
Quiz
Quiz
/
C# Class 11 MCQ Questions With Answers
1.
Fill in the missing parentheses to have x equal 15.int x =__2 + 3__* 3;Console.WriteLine(x);
(....)
{.....}
<....>
|.....|
2.
Fill the gaps. ___Declaring an integer and printing it___ int x = 42;Console.WriteLine(x);
//.........//
/*............*/
<----...................----->
?-------------?
3.
What is the output of this code?var n1;n1 = true;Console.WriteLine(n1);
1
true
error
0
4.
What is the alternative for x = x + 5?
x += 5;
x -= 4;
x = y + 5;
x=+5
5.
What is the output of this code?int x = 16;int y = 5;Console.WriteLine(x/y);
3.2
3
error
4
6.
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
7.
What is the output of this code?int x = 8;// x = 3;Console.WriteLine(x);
3
8
error
24
8.
Fill in the blank to make the variable num a constant._______int num=2;
con
constant
const
constans
9.
Which operator is used to determine the remainder?
*
%
+
-
10.
What is the type of the temp variable?var temp = 14.55;
Double
Boolean
Integer
String
Report Question
Previous
Next
warning
Submit
access_time
Time
Report Question
A bunch of text
Support mcqmojo.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page