Java Fundamental Assessment
Java Fundamental Assessment
D
P
Total Questions - 50 Score - (34 / 50) 68%
3
I
1) JRE stands for ?
Q A) Java Development Kit 0M
B) Java Virtual Machine
J C) Java Run-time Environment
D D) None of Above
6)
A) Hello World 1M
B) Know Program
C) Hello World Hello Know Program
D) Hello World Hello Know Program
7)
A) Hello World 0M
B) HelloWorld
C) Compiled Successfully, No Output.
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9535&isMessageDisplayed=1 1/7
5/31/24, 8:08 PM Java Fundamental Assessment
D) Compile-time error
P
9) Find Invalid Java keyword?
A) break 1M
3 B) continue
C) return
I D) exit
Q
10) Find an invalid Java keyword?
J A) instanceof 1M
D B) sizeof
C) strictfp
R
D) None of these
J
14)
A) 9 0M
B) 10
C) 19
D) Compile-time error
15)
A) 0 0M
B) 6
C) Compile-time error
D) Exception
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9535&isMessageDisplayed=1 2/7
5/31/24, 8:08 PM Java Fundamental Assessment
16) The allowed values for the boolean data type are?
A) True 0M
B) False
C) true
D D) null
M 17) Integer zero (0) is not the default value of which data type?
A) double 1M
P B) byte
C) short
3 D) long
22)
class Test{
public static void main(String[] args) {
char ch1 = 97;
char ch2 = -98;
System.out.println(ch1+".."+ch2);
}
}
A) 97..98 0M
B) a..b
C) a..-b
D) None of these
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9535&isMessageDisplayed=1 3/7
5/31/24, 8:08 PM Java Fundamental Assessment
if(1>3)
System.out.println("Know Program");
}
D
}
A) Know Program
M 1M
B) Other Output
P
C) Compiled Successfully, No Output.
D) Compile-time error
3
25)
I
What is the output of the below program?
Q
public class Main
J {
D public static void main(String[] args) {
int a = 25;
if(a < 5)
R
System.out.println("Hi");
J if(a < 20)
System.out.println("Hello");
C else
System.out.println("Know Program");
}
F
}
R A) Hi 0M
B) Hello
C) Know Program
D) Compiled Successfully, No Output.
26) What is the maximum number of ELSE-IF statements that can be present in between starting IF and
ending ELSE statements?
A) 32 1M
B) 64
C) 128
D) None
28) An ELSE or ELSE-IF statement in Java can not exist alone without an IF statement.
A) True 1M
B) False
C) -
D) -
29)
if(a == 7.3)
System.out.print("Hi");
else
System.out.print("Know Program");
}
}
A) Hi 0M
B) Know Program
C) Compiled Successfully, No Output.
D) Compile-time error
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9535&isMessageDisplayed=1 4/7
5/31/24, 8:08 PM Java Fundamental Assessment
30)
if(a = 7.3)
P System.out.print("Hi");
else
3 System.out.print("Know Program");
}
}
I
Q
A) Hi 1M
B) Know Program
J
D C) Compiled Successfully, No Output.
D) Compile-time error
R
J 31)
boolean x = true;
R
boolean y = false;
boolean z = true;
A) Hi 0M
B) Know Program
C) Compiled Successfully, No Output.
D) Compile-time error
32)
boolean x = true;
boolean y = false;
boolean z = true;
A) Hi 0M
B) Know Program
C) Compiled Successfully, No Output.
D) Compile-time error
33)
A) -5 0M
B) 10
C) 9
D) Compiler Error
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9535&isMessageDisplayed=1 5/7
5/31/24, 8:08 PM Java Fundamental Assessment
34) How many minimum number of operands are required to use Comparison operators in Java?
A) 1 1M
B) 2
C) 3
D D) 4
39) Platform independent code file created from Source file is understandable by 1M
A) JRE.
B) JVM
C) Applet
D) Complier
C) All of above
D) None of Above
3 A) char
B) String
I C) int
Q D) single
https://wingz.itvedant.com/index.php/assignment-test-student/exam-view-topic?id=9535&isMessageDisplayed=1 7/7