✦ InfitechX
Java Fundamentals Quiz Test
📄
20
Questions
⏱
15 min
Time Limit
⭐
4
Marks / Q
−
1
Negative
✅
70%
Pass Mark
🔁
3
Attempts
‣ Read each question carefully before answering.
‣ Use the palette to navigate and bookmark questions.
‣ Wrong answers carry negative marks. Skipped = zero.
‣ The quiz auto-submits when the timer reaches zero.
‣ Stay in fullscreen mode throughout the quiz. Exiting fullscreen is detected and will result in auto-submission.
3 attempt(s) allowed per session
✦ InfitechX
Java Fundamentals Quiz Test
20 Qs
Q 1
1 / 20
0s
What is the default value of a boolean variable in Java?
true
false
null
0
Q 2
2 / 20
0s
Which company originally developed Java programming language?
Microsoft
Apple
Sun Microsystems
IBM
Q 3
3 / 20
0s
Which method serves as the entry point for execution in a Java program?
start()
main()
run()
execute()
Q 4
4 / 20
0s
Which keyword is used to terminate a loop immediately?
stop
exit
break
return
Q 5
5 / 20
0s
Which keyword is used to achieve inheritance in Java?
inherit
extends
implements
super
Q 6
6 / 20
0s
Which of the following statements is used for decision-making in Java?
loop
if
switch
Both B and C
Q 7
7 / 20
0s
Which of the following is not considered a primitive data type in Java?
int
float
String
char
Q 8
8 / 20
0s
Which keyword is used to skip the current iteration of a loop?
continue
skip
pass
break
Q 9
9 / 20
0s
Which of the following is a valid variable declaration in Java?
int 1num;
int num;
int num = ;
int;
Q 10
10 / 20
0s
Which component is responsible for converting Java bytecode into machine code?
Compiler
JDK
JVM
JRE
Q 11
11 / 20
0s
Why is Java considered a platform-independent language?
It does not require compilation.
It uses machine code directly.
It runs on the Java Virtual Machine (JVM).
It is only used on Windows.
Q 12
12 / 20
0s
Which keyword is used to create an object in Java?
create
make
object
new
Q 13
13 / 20
0s
What is Java primarily known as in the world of programming?
A database management system
A high-level, object-oriented programming language
A web browser
An operating system
Q 14
14 / 20
0s
Which operator is used to perform addition in Java?
+
/
%
Q 15
15 / 20
0s
Which symbol is used to terminate a statement in Java?
.
:
;
,
Q 16
16 / 20
0s
Which type of comment is used for multiple lines in Java?
// comment
/* comment */
## comment
Q 17
17 / 20
0s
What is the size of the int data type in Java?
2 bytes
4 bytes
8 bytes
Platform-dependent
Q 18
18 / 20
0s
Java is considered which type of language based on type checking?
Weakly typed
Strongly typed
Dynamically typed
Loosely typed
Q 19
19 / 20
0s
Which keyword is used to declare a constant variable in Java?
const
static
final
fixed
Q 20
20 / 20
0s
Which keyword is used in Java to declare a class?
define
class
object
structure
Time Left
15 : 00 : 00
Question Palette
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Answered
Bookmarked
Not Visited
Finish Test?
You cannot change responses after submission.
⏱ Time's Up!
Your time is up. The quiz will be submitted.
⚠ Fullscreen Mode Exited
Quiz Complete!
Java Fundamentals Quiz Test
Your Score
Correct
Wrong
Skipped
Total Q
Time Taken


