What does the code output when run as java Duck Duck Goose?
Anonymous Quiz
15%
Duck Goose
26%
Duck ArrayIndexOutOfBoundsException
8%
Goose
16%
Goose ArrayIndexOutOfBoundsException
22%
Code doesn't compile
13%
None of the above
What is the output of executing the class?
Anonymous Quiz
11%
7-0-2-1-
7%
7-0-1-
13%
0-7-2-1-
28%
7-0-2-4-
6%
0-7-1-
18%
The class does not compile because of line 3
6%
The class does not compile because of line 4
10%
None of the above
Assuming the class compiles, how many variables defined in the class or method are in scope on the line marked // SCOPE on line 14?
Anonymous Quiz
12%
2
12%
3
20%
4
17%
5
8%
6
18%
7
14%
None of the above
What is the output of the program?
Anonymous Quiz
42%
0
22%
Compilation error due to line 1
11%
Compilation error due to line 2
11%
Compilation error due to line 1 and line 2
9%
Runtime exception will be thrown
5%
None of the above
Which of these statements is true about the code?
Anonymous Quiz
19%
The code does not compile because of one of the variables named x
18%
The code does not compile because of one of the variables named y
19%
The code does not compile for another reason
23%
The code compiles, and the var in each lambda refers to the same type
22%
The code compiles, and the var in each lambda refers to a different type