0% found this document useful (0 votes)
10 views

BSC - CS-V Sem II Inter Java

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

BSC - CS-V Sem II Inter Java

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

MVS GOVT.

ARTS AND SCIENCE COLLEGE(A), MAHABUBNAGAR

B.Sc Computer Science V Semester II nd Internal Assessment

Programming in Java

Roll No._______________ Name of the student___________________

Answer the following questions. 1 X 10 =10 Marks

1. Which of the following are not Java keywords? [ ]

a) double b) switch c) then d) instance of

2. What is the full form of JVM? [ ]

a) Java Very Large Machine b)Java Verified Machine

c) Java Very Small Machine d) Java Virtual Machine

3. Which of the following are not Java modifiers? [ ]

a) public b) private c) friendly d) transient

4. Who is known as father of Java Programming Language? [ ]

a) James Gosling b) M.P.Java c) Charless Babbage d) Blais Pascal

5. The \u0021 article referred to as a [ ]

a) Unicode escape sequence b) Octal escape

c) Hexadecimal d) Line feed

6. Evaluate the following Java expression, if x=5,y=5 and z=10 [ ]

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

a) 24 b) 23 c) 20 d) 25

7. Which provides runtime environment for Java byte code to be executed. [ ]

a) JDK b) JVM c) JRE d) JAVAC

8. Which of these operators is used to allocate memory to array variable in Java? [ ]

a) alloc b) malloc c) new malloc d) new

9. Modulus operator (%) can be applied to which of these? [


]

a) integers b) floating – point numbers

c) both A and B d) None of these

10. Which statement transfer execution to different parts of your code based on the
value of an expression? [
]
a) if b) switch c) Nested if d) if – else - if

You might also like