Basic Elements of Java
2
3
5
6
Rate this question:
2
3
5
6
Rate this question:
# Enter Comments Here
""
/* Enter Comments Here*/
** Enter Comments Here **
Rate this question:
Int a b, c;
Int a, b, c;
Int abc;
Int a b c;
Rate this question:
Variables
Prompt lines
Named constants
Expressions
Rate this question:
\r
\n
\l
\b
Rate this question:
Insertion Point 1
Insertion Point 2
Insertion Point 3
Insertion Point 4
Rate this question:
WelcomeHome
Welcome Home
Welcome (on first line) Home (on second line)
Welcome \n Home
Rate this question:
Sum of 5 and 6 = 11
Sum of 5 and 6 = 56
Sum of x and y = 11
None of these
Rate this question:
Sum of 5 and 6 = 11
Sum of x and y = 11
Sum of x and y = x + y
None of these
Rate this question:
The sum = 37
The sum = 13 24
The sum = 13 + 24
The sum = 1324
Rate this question:
Beta = beta + 1; alpha = beta;
Alpha = 1 + beta;
Alpha = alpha + beta;
None of these
Rate this question:
Alpha = 1 + beta;
Alpha = alpha + beta;
Alpha = beta; beta = beta + 1;
None of these
Rate this question:
Only (i) is valid
(i) and (ii) are valid
(ii) and (iii) are valid
(i) and (iii) are valid
Rate this question:
Its content cannot change during program execution.
Its value can be changed during program execution.
It is a memory location.
It is declared using the reserved word final.
Rate this question:
Input
Output
Assignment
Both an input statement and an assignment statement
Rate this question:
10
20
30
None of these
Rate this question:
14
15
16
18
Rate this question:
18.0
18.5
19.0
None of these
Rate this question:
20
20.25
21
22
Rate this question:
9
9.0
9.9
10
Rate this question:
7
8
8.0
10
Rate this question:
13
14
14.8
15
Rate this question:
Unary operands
Binary operands
Operators
Expressions
Rate this question:
0
2
3
4
Rate this question:
0
1
24
25
Rate this question:
10
14
29
31
Rate this question:
X * y + z
X * (y + z)
Y + x * z
None of these
Rate this question:
X * y - z / w
X * y - x * z / w
X * (y - z) / w
X (y - z) / w
Rate this question:
36
36.0
37
This is an illegal Java expression
Rate this question:
0
1/3
3
9
Rate this question:
1
2
3
None of these
Rate this question:
Semantic
Logical
Syntax
Grammatical
Rate this question:
+
#
!=
?
Rate this question:
Char
Char
CHAR
None of these
Rate this question:
Int
Public
Static
Num
Rate this question:
1Stop_and_go
#salaryForTheMonth
_Hello_There
MyNumber!
Rate this question:
Program!
Program_1
1program
Program 1
Rate this question:
Int
Char
Double
Byte
Rate this question:
46,259
46259
462.59
None of these
Rate this question:
2.5E1
2.6
2.561100E1
256.1100E1
Rate this question:
0.4
4
4.0
4.4
Rate this question:
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.