MCQ for ICSE

https://java4school.com/icse-mcq-2

Which of the following option leads to the portability and security of Java?

A.Bytecode is executed by JVM
B. The applet makes the Java code secure and portable
C. Use of exception handling
D. Dynamic binding between objects

2.Which of the following is not a Java features?

Dynamic
Architecture Neutral
Use of pointers
Object-oriented

3. The \u0021 article referred to as a

Unicode escape sequence
Octal escape
Hexadecimal
Line feed

4.What does the expression float a = 35 / 0 return?

0
Not a Number
Infinity
Run time exception

5. Evaluate the following Java expression, if x=3, y=5, and z=10:

++z + y - y + z + x++

24
23
20
25

6.  Which of the following for loop declaration is not valid?

for ( int i = 99; i >= 0; i / 9 )
for ( int i = 7; i <= 77; i += 7 )
for ( int i = 20; i >= 2; - -i )
for ( int i = 2; i <= 20; i = 2* i )

7. Which keyword is used for accessing the features of a package?

package
import
extends
export

8. What is the range of short data type in Java?
a) -128 to 127
b) -32768 to 32767
c) -2147483648 to 2147483647
d) None of the mentioned

9. What is the range of byte data type in Java?
a) -128 to 127
b) -32768 to 32767
c) -2147483648 to 2147483647
d) None of the mentioned

10. Which of these can not be used for a variable name in Java?
a) identifier
b) keyword
c) identifier & keyword
d) none of the mentioned

https://java4school.com/icse-mcq-3

https://java4school.com/icse-mcq

http://www.youtube.com/trushnatej

LEAVE A REPLY

Please enter your comment!
Please enter your name here