Java MCQs Part-01 | By LearnWithVishalGiri | ICSE Computer Application
1. Name the method that accepts a string without any space _________
2. The wrapper class to which the method parseInt() belongs to _____________
a)integer
b)Int
c)int
d)Integer
3. The statement to stop the execution of a construct.
a)System.exit(0)
b)break
c)continue
d)Stop
4. !(2>1 && 5<7)
a)true
b)false
5. The default statement is optional in switch case.
a)True
b)False
6. The shorthand operator is left to right associative.
a)True
b)False
7. Tell the output:
X+ = X++ + ++X + --X +X
a)29
b)28
c)26
d)25
9. Give the output and convert into if else statement.
No comments:
Post a Comment