WorksheetsJava Values and datatypes
Total questions: 20
Worksheet time: 10mins
Java character set consists of
Letters
Digits
Operators
Delimiters
All of the above
_________ is a standard encoding system used in JAVA which contains hexa decimal digits ranging from 0x0000 to 0xFFFF
ISO
IEC
UNICODE
ASCII
________________ is an American standard coding system that is represented in 7 binary bits.
ISO
IEC
UNICODE
ASCII
Non Graphic characters which are used as commands to direct the cursor while printing is known as _________________
Operators
Escape Sequence
Delimiters
Digits
\n is used for ______
New line feed
Horizontal tab
Vertical tab
Backspace
The escape sequence character for horizontal tab which gives 8 spaces between words when used ________
\n
\v
\b
\t
We use ________ to display " in the output message
\n
\"
\t
\\
____________ is the functional and fundamental unit of a computer program
ASCII code
UNICODE
Escape sequence
Token
____________ are the constants in Java program
Literals
keywords
identifiers
operators
There are _________ types of literals in Java
4
5
6
7
A variable is a named _______________ which contains a value.
constant
memory location
structure
escape sequence
_________ data type is used to store 'True' or 'False' value
boolean
int
float
char
__________ data type is used to store decimal value
int
float
double
both float and double
Initialization takes place in two different ways namely
Static and constant
Dynamic and constant
Static and dynamic
None of the above
Java assumes fractional numbers to be of ____________ data type
double
float
int
long
Implicit type conversion is also known as ______
forced conversion
type casting
coercion
none of the above
Converting several data types into one single one is called ___________
concatenation
assignment
variable declaration
type conversion
Explicit type conversion is known as ___________
Coercion
forced conversion
type casting
both second and third option
size of double data type is ______________
8 bits
32 bits
16 bits
64 bits
Size of boolean data type is
8 bits
1 bit
16 bits
32 bits
