COGNITIVE ASSESSMENT
If someone displays a webpage in a browser and the page indicates Flash Player is needed, what is Flash Player?
A. a plug-in
B. a media compensator
C. a streamer
D. a different browser than the one being used
Answer: A
You might also like to view...
A Java block is a pair of matching ____, plus any declarations or statements within them.
A. asterisks (* and *) B. parentheses (( and )) C. square brackets ([ and ]) D. curly braces ({ and })
Which of the following statements is false?
a. Each identifier has a scope that determines where you can use it in your pro-gram. For that portion of the program, the identifier is said to be “in scope.” b. A local variable’s identifier has local scope. It’s “in scope” only from its defini-tion to the end of the program. It “goes out of scope” when the function returns to its caller. c. A local variable can be used only inside the function that defines it. d. All of the above statements are correct.
It is important to name the object marked ____ in the accompanying figure.
A. 1 B. 2 C. 3 D. All of the above
public static void main(String args[]) { int a, b; try { a = 0; b = 42 / a; System.out.println("This will not be printed."); } ? catch (ArithmeticException e) { System.out.println("Division by zero."); } System.out.println("After catch statement."); } ? The program above includes a try block and a catch clause that processes the ArithmeticException generated by the division-by-zero error. Explain how the try and catch blocks operate, and what the output will be following program execution.
What will be an ideal response?