Documente Academic
Documente Profesional
Documente Cultură
True (*)
False
True (*)
False
Correct Correct
The counter which gets incremented determines the number of loop iterations
is within the parentheses of a while loop.
for
switch (*)
while
Correct Correct
True (*)
False
Correct Correct
Section 6
(Answer all questions in this section)
True (*)
False
Correct Correct
Correct Correct
var1: 0, var2: 0
var1: 0, var2: 1
var1: 1, var2: 0
var1: 1, var2: 1
var1: 2, var2: 0
var1: 2, var2: 1
var1: 0, var2: 0
var1: 0, var2: 1
var1: 1, var2: 0
var1: 1, var2: 1
(*)
var1: 0, var2: 0
var1: 0, var2: 1
var1: 0, var2: 2
var1: 1, var2: 0
var1: 1, var2: 1
var1: 1, var2: 2
var1: 2, var2: 0
var1: 2, var2: 1
var1: 2, var2: 2
var1: 0, var2: 0
var1: 1, var2: 1
var1: 2, var2: 0
Correct Correct
True (*)
False
Section 7
(Answer all questions in this section)
10. All overloaded methods share the same name. Mark for Review
(1) Points
True (*)
False
Correct Correct
Section 7
(Answer all questions in this section)
11. Methods can call other methods in the same class. Mark for
Review
(1) Points
True (*)
False
Correct Correct
True (*)
False
Correct Correct
13. The fields and methods of the Math class cannot be directly
accessed as they are static. Mark for Review
(1) Points
True
False (*)
Correct Correct
True (*)
False
Correct Correct
15. What will happen when you try to access an object reference with
a null value? Mark for Review
(1) Points
NullPointerException. (*)
Correct Correct
Section 7
(Answer all questions in this section)
16. Which two statements are NOT true about constructors? Mark for
Review
(1) Points
Correct Correct
Correct Correct
18. When you write your own constructor, the default constructor is
no longer available. Mark for Review
(1) Points
True (*)
False
Correct Correct
19. In Java, the this keyword can be used to reference the current
object�s fields and methods. Mark for Review
(1) Points
True (*)
False
Correct Correct
String
Class
Student (*)
null
Correct Correct
Section 7
(Answer all questions in this section)
21. Which is stored within the stack memory? Mark for Review
(1) Points
Objects
Strings
Instance variables
3 (*)
Correct Correct
True (*)
False
Correct Correct
24. You have created an Employee class with all required fields and
methods. 10 employees join the company. Should you copy and paste the Employee
class for all 10 employees? Mark for Review
(1) Points
True
False (*)
Correct Correct
25. First, you decide the radius of each circle in the logo. Then
using the same radius you draw 5 circles of same size. All these circles will have
properties like radius and color. All circles share behaviors to calculate
circumference and area. Can you identify which of the following is an object?
Mark for Review
(1) Points
fiveCircles
radius
circle (*)
circumference
Correct Correct
Section 7
(Answer all questions in this section)
True (*)
False
Correct Correct
27. An object reference directs you from one object to another. Mark
for Review
(1) Points
True (*)
False
Correct Correct
Correct Correct
Section 8
(Answer all questions in this section)
You can use an ArrayList list to store Java primitive values (like int). (*)
Correct Correct
30. How could you declare an ArrayList so that it can store true or
false values? Mark for Review
(1) Points
Correct Correct
Section 8
(Answer all questions in this section)
31. The size of an ArrayList can grow as needed. Mark for Review
(1) Points
True (*)
False
Correct Correct
32. Which of the following is not a wrapper class? Mark for Review
(1) Points
String (*)
Byte
Integer
Boolean
Correct Correct
33. If the try block succeeds then no exception has occurred. Mark
for Review
(1) Points
True (*)
False
Correct Correct
The details of the Exception object ex are too general to be useful. (*)
Correct Correct
Section 8
(Answer all questions in this section)
36. An array allows you to create a single identifier that can be
used to organize many items of the same data type. Mark for Review
(1) Points
True (*)
False
Correct Correct
37. Arrays are like variables which must be declared prior to use.
Mark for Review
(1) Points
True (*)
False
Correct Correct
123
12345
01234 (*)
012345
Correct Correct
39. What are two advantages of adding print statements for debugging?
Mark for Review
(1) Points
You can identify the order in which methods have been called. (*)
Correct Correct
A semi-colon is missing.
Correct Correct
Section 8
(Answer all questions in this section)
int x=2
x = ( 3 + 5;
int y;
y++; (*)
y = 3 + * 5;
Correct Correct
Section 9
(Answer all questions in this section)
43. A layout Pane dictates how Nodes must be positioned Mark for
Review
(1) Points
True (*)
False
Correct Correct
44. How would you set the title of the Stage primaryStage? Mark
for Review
(1) Points
primaryStage("New Title!");
primaryStage.title = "New Title!";
Correct Correct
45. The start() method is the entry point for all JavaFX
applications. Mark for Review
(1) Points
True (*)
False
Correct Correct
Section 9
(Answer all questions in this section)
True (*)
False
Correct Correct
Blue
Red
Green
Yellow (*)
Correct Correct
48. Lambda Expressions provide much more effective and cleaner syntax
for working with GUI applications and sorting lists. Mark for Review
(1) Points
True (*)
False
Correct Correct
49. Which method is used to for mouse click events? Mark for Review
(1) Points
setOnMouseReleased()
setOnMouseClicked() (*)
setOnMouseMoved()
setOnMouseDragged()
Correct Correct
50. JavaFX doesn�t provide you with UI elements, shapes and text. So
you must always create your own graphics. Mark for Review
(1) Points
True
False (*)
Correct Correct