12 questions|30 marks
This test will assess your understanding of Data Types & Variables
Select the primitive data type in Java that is 64-bit integer and is used when you need a range of values wider than those provided by int
These primitive data types arranged in ascending order of their size will be
int res = 'A'; What is the value of res?
Memory capacity (storage size) of short and float data types in bytes are
Which of the following statements correctly assigns boolean literal true to a variable of boolean data type?
Identify these literals - 0.5, 'A', false, "A"
Name of a variable can be an identifier or a keyword
What is meant by uninitialized variables?
Variables can be initialized by
Scope of a local variable is the code block within which it is declared
Incase of nested scope
Which is the correct declaration of the constant PI of type double?