Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : java - JAVA VALUE AND TYPES
JAVA VALUE AND TYPES
00:00:00
English
Hindi
Question No# :
01
out of 21
Which datatype store true/false type value
कौन सा डेटाटाइप हाँ/नहीं प्रकार का डेटा संग्रहीत करता है
A.
Varient
Varient
B.
Integer
Integer
C.
Boolean
Boolean
D.
String
String
Question No# :
02
out of 21
Which among the following is a valid float literal?
Which among the following is a valid float literal?
A.
12.36f
12.36f
B.
12.36F
12.36F
C.
12.36
12.36
D.
Both a and b
Both a and b
Question No# :
03
out of 21
Which among the following encoding system can represent 65536 characters?
Which among the following encoding system can represent 65536 characters?
A.
ASCII
ASCII
B.
Unicode
Unicode
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No# :
04
out of 21
Which of the following is the default value of long data type?
Which of the following is the default value of long data type?
A.
0
0
B.
0.0
0.0
C.
0L
0L
D.
0.0f
0.0f
Question No# :
05
out of 21
Assigning value to a variable during declaration is called.
Assigning value to a variable during declaration is called.
A.
Declaration
Declaration
B.
Assignment
Assignment
C.
Initialisation
Initialisation
D.
None of these
None of these
Question No# :
06
out of 21
If the data that is to take part in a calculation in a method is fixed, which form of input is necessary?
If the data that is to take part in a calculation in a method is fixed, which form of input is necessary?
A.
Initialisation
Initialisation
B.
Parameterised input
Parameterised input
C.
Scanner input
Scanner input
D.
None of these
None of these
Question No# :
07
out of 21
Which among the following is a valid method of initialising?
Which among the following is a valid method of initialising?
A.
boolean f=true;
boolean f=true;
B.
boolean f=True;
boolean f=True;
C.
boolean f=’true’;
boolean f=’true’;
D.
None of these
None of these
Question No# :
08
out of 21
Which are the data types used in Java?
Which are the data types used in Java?
A.
Primitive data type
Primitive data type
B.
Composite data type
Composite data type
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No# :
09
out of 21
What is the largest possible value that can be stored in short data type?
What is the largest possible value that can be stored in short data type?
A.
215-1
215-1
B.
231-1
231-1
C.
27-1
27-1
D.
263-1
263-1
Question No# :
10
out of 21
To store character values, a corresponding numeric value generated in
To store character values, a corresponding numeric value generated in
A.
Decimal Form
Decimal Form
B.
Binary Form
Binary Form
C.
ASCII
ASCII
D.
UNICODE
UNICODE
Question No# :
11
out of 21
What is the name given to a memory location called in Java?
What is the name given to a memory location called in Java?
A.
Variable
Variable
B.
Constant
Constant
C.
Data Type
Data Type
D.
None of these
None of these
Question No# :
12
out of 21
Which among the following is not a primitive data type?
Which among the following is not a primitive data type?
A.
int
int
B.
float
float
C.
String
String
D.
char
char
Question No# :
13
out of 21
Which among the following is a keyword but not a literal?
Which among the following is a keyword but not a literal?
A.
for
for
B.
null
null
C.
true
true
D.
false
false
Question No# :
14
out of 21
Which of the following is the range of values that can be stored in a int variable?
Which of the following is the range of values that can be stored in a int variable?
A.
-128 to 127
-128 to 127
B.
-32768 to 32767
-32768 to 32767
C.
-2^31 to (2^31)-1
-2^31 to (2^31)-1
D.
None of these
None of these
Question No# :
15
out of 21
Which among the following Scanner methods allows us to input a number with a decimal point?
Which among the following Scanner methods allows us to input a number with a decimal point?
A.
nextInt()
nextInt()
B.
nextFloat()
nextFloat()
C.
nextDecimal()
nextDecimal()
D.
nextPoint()
nextPoint()
Question No# :
16
out of 21
If a is of type int and b is of type float what would be the resultant data type of a+b?
If a is of type int and b is of type float what would be the resultant data type of a+b?
A.
int
int
B.
float
float
C.
double
double
D.
short
short
Question No# :
17
out of 21
What are the default values of the primitive data type 'FLOAT' ?
What are the default values of the primitive data type 'FLOAT' ?
A.
0
0
B.
0.0
0.0
C.
0.0f
0.0f
D.
0.0d
0.0d
Question No# :
18
out of 21
Which among the following is not a punctuator?
Which among the following is not a punctuator?
A.
; semicolon
; semicolon
B.
, comma
, comma
C.
: colon
: colon
D.
. dot
. dot
Question No# :
19
out of 21
Which among the following is not a Token?
Which among the following is not a Token?
A.
Keywords
Keywords
B.
Literals
Literals
C.
Identifiers
Identifiers
D.
Data Type
Data Type
Question No# :
20
out of 21
Which among the following is a valid octal integer literal?
Which among the following is a valid octal integer literal?
A.
0178
0178
B.
675
675
C.
0675
0675
D.
0X675
0X675
Question No# :
21
out of 21
Which among the following is used to represent single-line comment?
Which among the following is used to represent single-line comment?
A.
//
//
B.
/*
/*
C.
\
\\
D.
\\
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz