ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ CORE JAVA QUIZ CORE JAVA MCQ Questions CORE JAVA Questions Answer for Interview
English
Hindi
Question No. -
61
Report Bug
Data members in a class is used to represent the characteristic of an object
Data members in a class is used to represent the characteristic of an object
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
62
Report Bug
The new operator is used to create an object
The new operator is used to create an object
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
63
Report Bug
It’s a rule to have a class-name beginning in capital letter
It’s a rule to have a class-name beginning in capital letter
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
64
Report Bug
A ____ is a template that binds together data and methods together
A ____ is a template that binds together data and methods together
A.
Class
Class
B.
Object
Object
C.
Method
Method
D.
None of these
None of these
Question No. -
65
Report Bug
Which among the following is not a valid error in Java?
Which among the following is not a valid error in Java?
A.
Syntax errors
Syntax errors
B.
Logical errors
Logical errors
C.
Run-time errors
Run-time errors
D.
Technical errors
Technical errors
Question No. -
66
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. -
67
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. -
68
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. -
69
Report Bug
Which among the following is a logical error?
Which among the following is a logical error?
A.
Missing semicolon
Missing semicolon
B.
Mismatched braces in classes and methods
Mismatched braces in classes and methods
C.
Misspelled keywords and identifiers
Misspelled keywords and identifiers
D.
Addition is required but subtraction is performed
Addition is required but subtraction is performed
Question No. -
70
Report Bug
Which among the following represents a syntax error?
Which among the following represents a syntax error?
A.
Dividing an integer by zero.
Dividing an integer by zero.
B.
Accessing an element that is out of bounds of an array.
Accessing an element that is out of bounds of an array.
C.
Trying to store a value which is incompatible to a certain data-type.
Trying to store a value which is incompatible to a certain data-type.
D.
Missing semicolon
Missing semicolon
Question No. -
71
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
Question No. -
72
Report Bug
Scanner class is present in the java.lang package
Scanner class is present in the java.lang package
Scanner class is present in the java.lang package
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
73
Report Bug
Math.abs( ) is used to find the absolute value of a number
Math.abs( ) is used to find the absolute value of a number
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
74
Report Bug
The return type of Math.sqrt( ) function is float.
The return type of Math.sqrt( ) function is float.
The return type of Math.sqrt( ) function is float.
A.
TRUE
सही
B.
FALSE
गलत
Explanation
The return type of Math.sqrt( ) is Double
Question No. -
75
Report Bug
The continue statement in a switch block is used to avoid fall through.
The continue statement in a switch block is used to avoid fall through.
The continue statement in a switch block is used to avoid fall through.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
76
Report Bug
The default statement is essential in a switch block
The default statement is essential in a switch block
The default statement is essential in a switch block
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
77
Report Bug
The for loop is an entry controlled loop
The for loop is an entry controlled loop
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
78
Report Bug
The while loop is an exit controlled loop
The while loop is an exit controlled loop
The while loop is an exit controlled loop
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
79
Report Bug
The do-while loop is generally used when the number of iterations is known
The do-while loop is generally used when the number of iterations is known
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
80
Report Bug
You can have only the for loop as the nested loops
You can have only the for loop as the nested loops
A.
TRUE
सही
B.
FALSE
गलत
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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