Correct Answer
verified
Multiple Choice
A) 2
B) 4
C) 5
D) 6
E) 7
Correct Answer
verified
Multiple Choice
A) causes a syntax error
B) causes an Exception to be thrown
C) casts x as an int based on x's position in the alphabet (for instance, if x is 'a' then it uses 0 and if x is 'z' then it uses 25)
D) casts x as an int based on x's ASCII value (for instance, if x is 'a' then it uses 97 and if x is 'z' then it uses 122)
E) casts x as an int based on the digit that is stored in x (for instance, if x is '3' it uses 3) but throws an exception if x does not store a digit
Correct Answer
verified
Multiple Choice
A) output 7
B) output 18
C) output nothing
D) cause an ArrayOutOfBoundsException to be thrown
E) cause a syntax error
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) 9, 4, 12, 2, 6, 8, 18
B) 4, 9, 12, 2, 6, 8, 18
C) 2, 4, 12, 9, 6, 8, 18
D) 2, 4, 6, 8, 9, 12, 18
E) 2, 4, 9, 12, 6, 8, 18
Correct Answer
verified
Multiple Choice
A) keyPressed, keyReleased
B) keyPressed, keyReleased, keyTyped
C) keyPressed, keyReleased, keyTyped, keyDown, keyUp
D) keyDown, keyUp, keyTyped
E) none of the above
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) a reference variable to the memory that stores all 1000 BankAccount entries
B) 1000 reference variables, each of which point to a single BankAccount entry
C) a single BankAccount entry
D) 1000 BankAccount entries
E) 1000 reference variables and 1000 BankAccount entries
Correct Answer
verified
Essay
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) a shape defined as a collection of x, y points
B) a shape defined as a collection of lines
C) a shape defined as a collection of polylines
D) an array of shapes
E) 2 lines connected by 1 common point
Correct Answer
verified
True/False
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) a
B) a and b
C) a and d
D) a, b and d
E) a, b, c and d
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) a race is held to see which team can finish a computer program first
B) two or more processes that start at the same time finish at different times
C) two or more processes race to create an error
D) two or more processes that share the same data continue running under wrong assumptions after one of the processes changes the data
E) none of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) for (j=1; j<values.length; j++) values[j]++;
B) for (j=0; j<values.length; j++) values[j]++;
C) for (j=0; j<=values.length; j++) values[j]++;
D) for (j=0; j<values.length-1; j++) values[j]++;
E) for (j=1; j<values.length-1; j++) values[j]++;
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Showing 1 - 20 of 70
Related Exams