Presentation is loading. Please wait.

Presentation is loading. Please wait.

JAVA MULTIPLE CHOICE QUESTION.

Similar presentations


Presentation on theme: "JAVA MULTIPLE CHOICE QUESTION."— Presentation transcript:

1 JAVA MULTIPLE CHOICE QUESTION

2 Check your Knowledge Press to Start

3 1. Java was first developed in?
1990 1991 1993 1996

4 2. Java is object oriented language?
Yes No

5 3. The old name of java is? Oct Oak J language None of above

6 4. Java does not support: Multithreading Reflection
Operator Overloading Garbage Collection

7 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

8 6. Static functions can be accessed using null reference.
True False

9 7. Java does not support Multiprogramming Operator overloading
Inheritance Garbage collection

10 8. Abbreviation of JDK is:
Java Data Kit Java Definition Kit Java Development Kit Java Design Kit

11 9. We can invoke any number of methods by one instance only
True False

12 10. Abbreviation of AWT is Abstract Window Toolkit A Web Toolkit
Application with types Absolutely Wonderful Kit

13 11. Which of the following is generated when the source code is successfully compiled?
Output Byte code Error None of above

14 12. Process of converting typed code to machine code?
Compilation Inheritance Polymorphism None

15 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

16 14. Which among the following is the compulsory section of java program?
Package Statement Import Statement Documentation section Class declaration section

17 15. Sharing of common information is achieved by the concept of?
polymorphism encapsulation inheritance none of above

18 16. ______ consist a data and methods?
Variable Class Vectors None of these

19 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

20 18. Java Virtual Machine is software that interprets Java byte code.
Yes No

21 19. Java is also known as ____ stage language
One Two Three Four

22 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

23 21. To interprets java code we use:
Javap None of the above

24 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

25 23. Javap mean: java compiler java interpreter java disassemble
java debugger

26 24. Hot java is a: web browser system software IDE None of above

27 25. How many types of variables exist in java?
3 4 5

28 26. Local variable declare:
Inside the method Outside the method Both side None of above

29 27. Instance variable declare:
Inside the method Inside the class but outside the method Outside the method Outside the class

30 28. Static variable is: Local Global Both None

31 29. How many bytes a Boolean has?
1 2 3 4

32 30. Long has 8 bytes. True False

33 31. Float data-type deals with:
Integer Fraction Decimal point None of above

34 32. Int data type has: 2 bytes 3 bytes 4 bytes 5 bytes

35 33. Default value for char data type is:
‘\0000’

36 34. Which package contains String?
Java.util Java.lang Java.rmi None

37 35. Which of the following is true about String?
String is mutable. String is immutable. String is a data type. None of the above.

38 36. What is the default value of byte variable?
0.0 null Not defined

39 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

40 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

41 39. If result= 2+3*5, what is the value and type of ‘result’ variable?
17, bytes 25, bytes 17,int 25, int

42 40. Which of the following is the smallest integer data type ?
Into long byte short

43 41. Which of the following is not a primitive data type?
byte short enum Int

44 42. Which value cannot store character data type.
Digit Special character String Letter

45 43. Range of byte data type is?
-128 to 255 -128 to 256 -128 to 127 -127 to 128

46 44. In order to fetch stream of data from network or file, following data type used?
double char Into byte

47 45. 64 bits are stored by: double Into long float

48 46. What is the default value for “double” data type?
0.0 null 0.0d

49 47. What is the range of data type short in Java?
-128 to 127 to 32767 to None of the mentioned

50 48. Which one of this value contains float data type?

51 49. Default value for Boolean data type is:
True False 1

52 50. ____ is a reference data type:
int short double array

53 The Results


Download ppt "JAVA MULTIPLE CHOICE QUESTION."

Similar presentations


Ads by Google