Unit-1
I. Each Question Carries 1 Mark.
1) Java is ______________language
a) Platform independent b) high level language c) Object oriented language d) low level language
2) Java is _________based language
a) Compiler &interpreter b) compiler c) Interpreter d) None
3) _____________is not a data type
a) Byte b) short c) integer d) long
4) Float variable occupies_________ bytes in java
a) 8 b) 2 c) 4 d) 6
5) The operator precedence in java
a) /, +, - b) +, -, / c) +, -, / d) None
6) The main method should not be declared as
a) Public static void main([] string args) b) Public static void main( string []args)
c) Public static void main( string args[]) d) None
7) ___is a key word in java
a) All b) Static c) Import d) Super
8) _________not a keyword in java
a) Caught b) Try c) Catch d) Throw
9) Memory de-allocation in java is done is using
a) Garbage collection b) free c) Delete d) None
10) In switch statement a case should always followed by a __________ Statement
a) Continue b) BREAK c) ;; d) None
11) Java is developed by _______
a) Microsoft b) sun micro systems c) Borland’s d) semen’s
12) JVM stands for __________
a) Java vision mechanism b) java virtual machine c) Java vertical model d) java virtual model
13) Which operator is used to perform bit wise inversion in java?
a)! b) ~ c) & d) |
14) A compiler translates a java code to________
a) A java program b) a byte code c) A class code d) a text code
15) JVM is an________for Byte code?
a) Interpreter b) Compiler c) Both a and b d) None
16) Java frees you from having to worry about many of the most common causes Of programming errors.
a) Robust b) Abstraction c) Multithreading d) None
17) Write Once-Run AnyWhere, Any Time, Forever.
a) Architecture Neutral b) Interpreted c) Multithreaded d) None
18) Which Mechanism binds together code and the data?
a) Encapsulation b) Polymorphism c) Inheritance d) None
19) What keywords allows main( ) to be called without having instantiate a particular Instance of a class?
a) Static b) Final c) Abstract d) None
20) The smallest integer type is.
a) Byte b) Short c) Int d) None
21) Java uses ______to represent characters?
a) Unicode b) Byte Code c) Decimal Code d) None
22) Conversion of int to byte called.
a) Narrowing Conversion b) Widening Conversion c) Typecasting d) None
23) : are called as _______________
a) Terinary operators b) immediate operators c) both d) None
24) A Bitwise operator allows you to perform ______ manipulation on data.
a) Bit b) arithmetical c) None
25) Which is not a feature of Java
a) Simple b) Robust c) Secure d) None
I. Answer – 1 Mark.
1. B 2. A 3. C 4. C 5. A 6. C 7. A
8. A 9. A 10. B 11. B 12. B 13. B 14.B
15.C 16. D 17. D 18. A 19. A 20. A 21. A
22. A 23. A 24. C 25. D