Session 8A has these questions
Data types
Which is not a integer data type?
A.
|
int
|
B.
|
long
|
C.
|
short
|
D.
|
double
|
Primitive data types
What is the incorrect statement about primitive data types?
A.
|
Primitive data types can not be directly used in any program. We have to create a user-defined data type and then use it.
|
B.
|
Primitive data types can be used to create non-primitive or user-defined data types.
|
C.
|
Primitive data types are classified into four groups. They are Integers, Floating Points, Characters and Booleans
|
D.
|
Primitive data types are included by default as part of the Java Programming Language
|
Data types2741
Range of byte
is?
A.
|
-128 to +127, including zero
|
B.
|
-128 to +128, including zero
|
C.
|
-127 to +128, including zero
|
D.
|
-127 to +127, including zero
|
Data types2740
Size of short
is?
A.
|
8-bits
|
B.
|
16-bits
|
C.
|
32-bits
|
D.
|
64-bits
|
Strongly Typed Language
What is Strongly Typed Language?
A.
|
Strongly typed language means the type of the variable is decided depending on its value
|
B.
|
Strongly typed language means once a variable is declared as certain type, then the type can not be changed and its value can not be modified.
|
C.
|
Strongly typed language means once a variable is declared as certain type, then the type can not be changed but its value can be changed to some other value of the same data type.
|
D.
|
None of the above
|