ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C LANGUAGE - JAVA VALUE AND TYPES MCQ Questions
English
Hindi
Question No. -
01
Report Bug
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
Report Bug
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
Report Bug
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
Report Bug
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
Report Bug
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
Report Bug
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
Report Bug
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
Report Bug
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
Report Bug
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
Report Bug
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
1
2
3
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad