JAVA MULTIPLE CHOICE QUESTION
Check your Knowledge Press to Start www.prolearninghub.com
1. Java was first developed in? 1990 1991 1993 1996 www.prolearninghub.com
2. Java is object oriented language? Yes No www.prolearninghub.com
3. The old name of java is? Oct Oak J language None of above www.prolearninghub.com
4. Java does not support: Multithreading Reflection Operator Overloading Garbage Collection www.prolearninghub.com
private synchronized int e 5. Which of the following class level (nonlocal) variable declarations will not compile? protected int a transient int b = 3 private synchronized int e volatile int d www.prolearninghub.com
6. Static functions can be accessed using null reference. True False www.prolearninghub.com
7. Java does not support Multiprogramming Operator overloading Inheritance Garbage collection www.prolearninghub.com
8. Abbreviation of JDK is: Java Data Kit Java Definition Kit Java Development Kit Java Design Kit www.prolearninghub.com
9. We can invoke any number of methods by one instance only True False www.prolearninghub.com
10. Abbreviation of AWT is Abstract Window Toolkit A Web Toolkit Application with types Absolutely Wonderful Kit www.prolearninghub.com
11. Which of the following is generated when the source code is successfully compiled? Output Byte code Error None of above www.prolearninghub.com
12. Process of converting typed code to machine code? Compilation Inheritance Polymorphism None www.prolearninghub.com
13. In java, if you do not give a value to a variable before using it, ______ It will contain a garbage value It will initialized with zero Compiler will give an error None of above www.prolearninghub.com
14. Which among the following is the compulsory section of java program? Package Statement Import Statement Documentation section Class declaration section www.prolearninghub.com
15. Sharing of common information is achieved by the concept of? polymorphism encapsulation inheritance none of above www.prolearninghub.com
16. ______ consist a data and methods? Variable Class Vectors None of these www.prolearninghub.com
17. Which JDK command is correct to run a Java application in ByteCode 17. Which JDK command is correct to run a Java application in ByteCode.class? java ByteCode java ByteCode.class javac ByteCode.java javac ByteCode www.prolearninghub.com
18. Java Virtual Machine is software that interprets Java byte code. Yes No www.prolearninghub.com
19. Java is also known as ____ stage language One Two Three Four www.prolearninghub.com
20. In java, if you do not give a value to a variable before using it, ______ It will contain a garbage value It will initialized with zero Compiler will give an error None of above www.prolearninghub.com
21. To interprets java code we use: Javap None of the above www.prolearninghub.com
22. Which one of these lists contains only Java programming language keywords? class, if, void, long, Int, continue goto, instanceof, native, finally, default, throws try, virtual, throw, final, volatile, transient strictfp, constant, super, implements, do www.prolearninghub.com
23. Javap mean: java compiler java interpreter java disassemble java debugger www.prolearninghub.com
24. Hot java is a: web browser system software IDE None of above www.prolearninghub.com
25. How many types of variables exist in java? 3 4 5 www.prolearninghub.com
26. Local variable declare: Inside the method Outside the method Both side None of above www.prolearninghub.com
27. Instance variable declare: Inside the method Inside the class but outside the method Outside the method Outside the class www.prolearninghub.com
28. Static variable is: Local Global Both None www.prolearninghub.com
29. How many bytes a Boolean has? 1 2 3 4 www.prolearninghub.com
30. Long has 8 bytes. True False www.prolearninghub.com
31. Float data-type deals with: Integer Fraction Decimal point None of above www.prolearninghub.com
32. Int data type has: 2 bytes 3 bytes 4 bytes 5 bytes www.prolearninghub.com
33. Default value for char data type is: ‘\0000’ www.prolearninghub.com
34. Which package contains String? Java.util Java.lang Java.rmi None www.prolearninghub.com
35. Which of the following is true about String? String is mutable. String is immutable. String is a data type. None of the above. www.prolearninghub.com
36. What is the default value of byte variable? 0.0 null Not defined www.prolearninghub.com
37. What is instance variable? Instance variables are static variables within a class but outside any method. Instance variables are variables defined inside methods, constructors or blocks. Instance variables are variables within a class but outside any method. None of the above www.prolearninghub.com
38. What kind of variables a class can consist of? class variables, instance variables class variables, local variables, instance variables class variables class variables, local variables www.prolearninghub.com
39. If result= 2+3*5, what is the value and type of ‘result’ variable? 17, bytes 25, bytes 17,int 25, int www.prolearninghub.com
40. Which of the following is the smallest integer data type ? Into long byte short www.prolearninghub.com
41. Which of the following is not a primitive data type? byte short enum Int www.prolearninghub.com
42. Which value cannot store character data type. Digit Special character String Letter www.prolearninghub.com
43. Range of byte data type is? -128 to 255 -128 to 256 -128 to 127 -127 to 128 www.prolearninghub.com
44. In order to fetch stream of data from network or file, following data type used? double char Into byte www.prolearninghub.com
45. 64 bits are stored by: double Into long float www.prolearninghub.com
46. What is the default value for “double” data type? 0.0 null 0.0d www.prolearninghub.com
47. What is the range of data type short in Java? -128 to 127 -32768 to 32767 -2147483648 to 2147483647 None of the mentioned www.prolearninghub.com
48. Which one of this value contains float data type? www.prolearninghub.com
49. Default value for Boolean data type is: True False 1 www.prolearninghub.com
50. ____ is a reference data type: int short double array www.prolearninghub.com
The Results