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
JQuery
AngularJs
QUIZ ON : JAVA - VALUE AND TYPES
VALUE AND TYPES
00:00:00
English
Hindi
Question No# :
01
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# :
02
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# :
03
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# :
04
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# :
05
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# :
06
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# :
07
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# :
08
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# :
09
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.
\\
Question No# :
10
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
Previous
1
Next
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