CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
1
Default int ValueWhat is the default value of an int instance variable in Java?
easyNot startedVariablesSolve
2
Inheritance KeywordWhich keyword is used to inherit a class in Java?
easyNot startedClassesSolve
5
Array LengthWhat is the output of this code?
easyNot startedArraysSolve
6
Default ConstructorWhat happens if a class does not have an explicit constructor?
easyNot startedClassesSolve
7
Random RangeWhat expression generates a random integer between 1 and 10 (inclusive)?
easyNot startedMethodsSolve
26
Multiple Prints Same LineWhat is the output of the following code?
easyNot startedPrintingSolve
27
Generic Type ParameterWhat does <T> represent in the class declaration class Box<T> {}?
easyNot startedGenerics, ClassesSolve
28
Instantiating a Generic ClassGiven the generic class below, which line correctly creates a Box that holds a String?
easyNot startedGenerics, ClassesSolve
29
Valid Generic Method SignatureWhich of the following is a correctly declared generic method signature in Java?
easyNot startedGenerics, MethodsSolve
30
Generic Class OutputWhat does this code print?
easyNot startedGenerics, ClassesSolve
37
JavaFX StageIn JavaFX, what does a Stage represent?
easyNot startedJavaFXSolve
38
JavaFX Entry PointWhich method must you override to launch a JavaFX application?
easyNot startedJavaFXSolve
39
Button Click HandlerWhat happens when the user clicks the button in this code?
easyNot startedJavaFXSolve
40
VBox Layout DirectionHow does a VBox arrange its children in JavaFX?
easyNot startedJavaFXSolve
41
TextField InputA user types "Hello" into a TextField.
easyNot startedJavaFXSolve
42
Event Handler PurposeWhat does the setOnAction() method do on a JavaFX Button?
easyNot startedJavaFXSolve
43
Scene in JavaFXWhat is the role of a Scene in a JavaFX application?
easyNot startedJavaFXSolve
44
Reading a Scene GraphWhat does this code display in the window?
easyNot startedJavaFXSolve
45
Window Not AppearingThis JavaFX app compiles and runs but no window appears.
easyNot startedJavaFXSolve
46
Inline CSS StylingWhat does this line of code do?
easyNot startedJavaFXSolve
57
HBox LayoutWhat does this code produce?
easyNot startedJavaFXSolve
58
Prompt TextWhat does setPromptText() do on a TextField?
easyNot startedJavaFXSolve
59
CheckBox StateWhat does this code print when the user checks the box?
easyNot startedJavaFXSolve
60
Padding with InsetsWhat does setPadding() do in this code?
easyNot startedJavaFXSolve
61
StackPane LayersHow does a StackPane arrange its children?
easyNot startedJavaFXSolve
3
Loop OutputWhat is the output of this code?
mediumNot startedLoopsSolve
4
String ComparisonWhat is the output of this code?
mediumNot startedStringsSolve
8
Switch to If ElseWhich if-else statement is equivalent to the given switch statement?
mediumNot startedConditionalsSolve
9
Count Zeros MethodWhat does this method return when called with countZeros({1, 0, 2, 0, 3})?
mediumNot startedArraysSolve
10
Sign Method OutputWhat does this method return when called with getSign(-5)?
mediumNot startedMethodsSolve
11
Array Length vs String LengthWhat is the difference between using .length for arrays and .length() for strings?
mediumNot startedStringsSolve
12
Base Case for PowerWhich is the correct base case for a recursive power function power(base, exponent)?
mediumNot startedMethodsSolve
13
Sphere VolumeA Sphere class has a constructor that takes a radius.
mediumNot startedClassesSolve
14
Count Letter AWhat does this code output?
mediumNot startedLoopsSolve
16
next vs nextLineWhen the input is just hello on one line (nothing after it), what will be printed by this program?
mediumNot startedScannerSolve
17
Random Integer RangeWhich line generates an integer from 30 to 45 inclusive using rng?
mediumNot startedMethodsSolve
18
String ImmutabilityWhat is printed?
mediumNot startedStringsSolve
19
Array AliasingWhat is printed?
mediumNot startedArraysSolve
20
Loop TotalWhat is the final value of sum after the loop finishes?
mediumNot startedLoopsSolve
21
Switch Fall ThroughWhat is printed when x is 2?
mediumNot startedConditionalsSolve
22
Method Overloading PickWhich method is called by printValue(5)?
mediumNot startedMethodsSolve
23
Constructor and FieldsWhat is printed?
mediumNot startedClassesSolve
24
Enhanced For Loop ChangeWhat is printed?
mediumNot startedArraysSolve
25
Integer Division ResultWhat is printed?
mediumNot startedMethodsSolve
31
Bounded Type ParameterWhat does the type constraint <T extends Number> mean when used as a generic type parameter?
mediumNot startedGenerics, ClassesSolve
32
Generic Max MethodWhat does this generic method return when called as max(3, 7)?
mediumNot startedGenerics, MethodsSolve
33
Multiple Type ParametersWhich declaration correctly defines a generic class with two independent type parameters?
mediumNot startedGenerics, ClassesSolve
34
Upper Bounded WildcardWhich statement about a parameter typed as List<?
mediumNot startedGenerics, MethodsSolve
35
Generic Method Type InferenceWhat does this code print?
mediumNot startedGenerics, MethodsSolve
47
Counter Button LogicWhat happens each time the button is clicked?
mediumNot startedJavaFXSolve
48
Node in Two ParentsWhat happens when this code runs?
mediumNot startedJavaFXSolve
49
BorderPane LayoutWhat layout does this code produce?
mediumNot startedJavaFXSolve
50
GridPane Cell PositionWhere does the Button appear in the grid?
mediumNot startedJavaFXSolve
51
Background Thread UI UpdateThis code throws an IllegalStateException at runtime.
mediumNot startedJavaFXSolve
52
Property BindingWhat does this property binding do?
mediumNot startedJavaFXSolve
53
RadioButton ToggleGroupWhat does the ToggleGroup do in this code?
mediumNot startedJavaFXSolve
54
Missing ChildrenThe window appears but is completely blank.
mediumNot startedJavaFXSolve
55
ComboBox SelectionWhat does this code do when the user selects a color from the dropdown?
mediumNot startedJavaFXSolve
56
ObservableList and ListViewAfter the "Add" button is clicked once, then the "Remove" button is clicked once, what does the ListView display?
mediumNot startedJavaFXSolve
62
Scene SwitchingWhat happens when the "Go to Page 2" button is clicked?
mediumNot startedJavaFXSolve
63
VBox AlignmentWhere do the children appear in the window?
mediumNot startedJavaFXSolve
64
Alert DialogWhat does this code do when the button is clicked?
mediumNot startedJavaFXSolve
65
KeyEvent HandlerWhat does this code do?
mediumNot startedJavaFXSolve
66
FXML Controller WiringWhat does the @FXML annotation do in a JavaFX controller class?
mediumNot startedJavaFXSolve
15
Evenly DivisibleWhat does this method return for isEvenlyDivisible(20, 7)?
hardNot startedMethodsSolve
36
Raw Type and ClassCastExceptionThis code compiles (with an unchecked warning suppressed).
hardNot startedGenerics, ClassesSolve