Menu mobile
Home
PYTHON
Python Tutorial
Program Example
Interview Questions
JAVA
Java Tutorial
Program Example
Interview Questions
C Language
C Tutorial
Program Example
Interview Questions
Web Design
HTML
CSS
Java Script
PHP
Assignment
MS Office
HTML
CSS
Java Script
QUIZ ON : JAVA - VALUE AND TYPES
VALUE AND TYPES
00:00:00
English
Hindi
Question No# :
01
out of 22
Which among the following Scanner methods allows us to input a number with a decimal point?
A.
nextInt()
B.
nextFloat()
C.
nextDecimal()
D.
nextPoint()
Question No# :
02
out of 22
Which among the following is a valid method of initialising?
A.
boolean f=true;
B.
boolean f=True;
C.
boolean f=’true’;
D.
None of these
Question No# :
03
out of 22
What is the largest possible value that can be stored in short data type?
A.
215-1
B.
231-1
C.
27-1
D.
263-1
Question No# :
04
out of 22
Which among the following is a valid float literal?
A.
12.36f
B.
12.36F
C.
12.36
D.
Both a and b
Question No# :
05
out of 22
Which among the following is not a primitive data type?
A.
int
B.
float
C.
String
D.
char
Question No# :
06
out of 22
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# :
07
out of 22
Which among the following is a keyword but not a literal?
A.
for
B.
null
C.
true
D.
false
Question No# :
08
out of 22
If a is of type int and b is of type float what would be the resultant data type of a+b?
A.
int
B.
float
C.
double
D.
short
Question No# :
09
out of 22
Which among the following is used to represent single-line comment?
A.
//
B.
/*
C.
\\
D.
Question No# :
10
out of 22
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# :
11
out of 22
If the data that is to take part in a calculation in a method is fixed, which form of input is necessary?
A.
Initialisation
B.
Parameterised input
C.
Scanner input
D.
None of these
Question No# :
12
out of 22
Which among the following encoding system can represent 65536 characters?
A.
ASCII
B.
Unicode
C.
Both a and b
D.
None of these
Question No# :
13
out of 22
What is the name given to a memory location called in Java?
A.
Variable
B.
Constant
C.
Data Type
D.
None of these
Question No# :
14
out of 22
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# :
15
out of 22
Which among the following is not a Token?
A.
Keywords
B.
Literals
C.
Identifiers
D.
Data Type
Question No# :
16
out of 22
Assigning value to a variable during declaration is called.
A.
Declaration
B.
Assignment
C.
Initialisation
D.
None of these
Question No# :
17
out of 22
Which are the data types used in Java?
A.
Primitive data type
B.
Composite data type
C.
Both a and b
D.
None of these
Question No# :
18
out of 22
Which datatype store yes/no type data
कौन सा डेटाटाइप हाँ/नहीं प्रकार का डेटा संग्रहीत करता है
A.
Varient
Varient
B.
Integer
Integer
C.
Boolean
Boolean
D.
String
String
Question No# :
19
out of 22
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# :
20
out of 22
Which among the following is a valid octal integer literal?
A.
0178
B.
675
C.
0675
D.
0X675
Question No# :
21
out of 22
Which among the following is not a punctuator?
A.
; semicolon
B.
, comma
C.
: colon
D.
. dot
Question No# :
22
out of 22
Scanner class is present in the java.lang package
A.
TRUE
B.
FALSE
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 NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Website development Company in Allahabad