5. Range of byte data type in java is

JAVA LANGUAGE
MULITPLE CHOICE
QUESTION SET-1
1. The year in which java
developed?
1990
1991
1993
1996
www.prolearninghub.com
2. Java is a ------?
Markup language
Object oriented
language
Structured language
None of these
www.prolearninghub.com
3. In its early days java is known
as?
Oct
Oak
J language
None of above
www.prolearninghub.com
4. Java doesn't support:
Multithreading
Reflection
Operator Overloading
Garbage Collection
www.prolearninghub.com
5. Range of byte data type in java
is ----32768 to 32767
-2147483648 to
2147483647
-128 to 127
None of the mentioned
www.prolearninghub.com
6. performing more than one task
at a time is called?
Multiprogramming
Multithreading
Multitasking
Multiprocessing
www.prolearninghub.com
7. Java doesn’t support
Multiprogramming
Operator overloading
Inheritance
Garbage collection
www.prolearninghub.com
8. JDK stands for-------.
Java Data Kit
Java Definition Kit
Java Development Kit
Java Design Kit
www.prolearninghub.com
9. All the classes in java are -----.
Private
Public
Final
Protected
www.prolearninghub.com
10. Abbreviation of AWT is
Abstract Window
Toolkit
Application with types
A Web Toolkit
Absolutely Wonderful
Kit
www.prolearninghub.com
11. After compilation source code
is converted into ?
Output
Byte code
Error
None of above
www.prolearninghub.com
12. procedure of converting typed
code to machine code?
Compilation
Inheritance
Polymorphism
None
www.prolearninghub.com
13. In java, if a variable has no
value before using, ---------.
It will contain a rubbish
value
It will initialized with
zero
Compiler will give an
error
None of above
www.prolearninghub.com
14. Which among the following is
the essential 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
inheritance
encapsulation
none of above
www.prolearninghub.com
16. ------- consist a data and
methods?
Variable
Class
Vectors
None of these
www.prolearninghub.com
18. -------is software that
interprets Java byte code.
Compiler
Interpreter
Java Virtual Machine
none of above
www.prolearninghub.com
19. Which of the following
command is fit to run a Java
application in ByteCode.class?
java ByteCode
javac ByteCode.java
java ByteCode.class
javac ByteCode
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. Which command typed to
interpret java code:
Java
Javac
Javap
None of the above
www.prolearninghub.com
22. Identify the list which has only
java 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 means :
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?
2
3
4
5
www.prolearninghub.com
26. Local variable declare:
Inside the method
Both side
Outside the method
None of above
www.prolearninghub.com
27. Instance variable declare:
Inside the method
Outside the method
Inside the class but
outside the method
Outside the class
www.prolearninghub.com
28. Scope of 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 ----- bytes.
8
16
4
2
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:
‘\u0000’
‘/u0000’
‘u0000’
‘\0000’
www.prolearninghub.com
34. Which package contains
String?
Java.util
Java.rmi
Java.lang
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.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 within a class
but outside any method.
Instance variables are
variables defined inside
methods, constructors or
blocks.
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
String
Special character
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.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?
1.7e-308
1.7e+308
3.4e-038
3.4e-050
www.prolearninghub.com
49. Default value for Boolean data
type is:
True
False
0
1
www.prolearninghub.com
50. ----- is a reference data type:
int
short
double
array
www.prolearninghub.com