What is the output of the code?
Anonymous Quiz
40%
true
10%
false
7%
true false
32%
The code does not compile
9%
A runtime exception is thrown
2%
None of the mentioned
What is the result of the program?
Anonymous Quiz
3%
10
52%
15
21%
25
11%
Compiler error on line 3
10%
Compiler error on line 8
3%
None of the above
Which statement about the code is true?
Anonymous Quiz
11%
It compiles and prints abc
11%
It compiles and prints abd
23%
It compiles and prints abcd
17%
One line contains a compiler error
14%
Two lines contain a compiler error
13%
Three lines contain a compiler error
10%
It compiles but prints an exception at runtime
What is the result of the program?
Anonymous Quiz
50%
num1 == num2 and num3 == num4
15%
num1 == num2 and num3 != num4
7%
num1 != num2 and num3 == num4
16%
num1 != num2 and num3 != num4
8%
The code does not compile
4%
A runtime exception is thrown
What is the output of the program?
Anonymous Quiz
7%
1-11-2
44%
3.0-11.0-2
12%
1.0-11.0-3
8%
3.0-13.0-3
8%
3.0f-12-2
21%
The code does not compile because one of assignments requires an explicit numeric cast
What is the output of the program?
Anonymous Quiz
12%
Starting up
33%
Starting up Problem
30%
Starting up Problem Shutting down
13%
Starting up Shutting down
8%
The code does not compile
4%
An uncaught exception is thrown
What is the output of the program?
Anonymous Quiz
6%
12
9%
1234
17%
1235
10%
124
39%
1245
12%
The code does not compile
6%
An uncaught exception is thrown