Session 8A has these questions
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
|
Non Primitive data types
What is the incorrect statement about non-primitive data types or user-defined data types.
A.
|
Non-primitive data types can be created using the primitive data types.
|
B.
|
Non-primitive data types can contain only primitive data types. They can not contain other non-primitive/user-defined data types in them.
|
C.
|
Non-primitive data types can contain both primitive data types and other non-primitive/user-defined data types.
|
D.
|
None of the above
|
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
|