CSIS 212 Week 6 Quiz
CSIS 212-B01 LUO
1. Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose randomNumbers is a SecureRandom object.
2. Overloaded methods always have the same _________.
3. Which of the following statements is false?
4. Method calls cannot be distinguished by ________.
5. A static method can ________.
6. Which of the following methods are overloaded with respect to one another?
7. An overloaded method is one that ________.
8. Identifiers in Java have ________ and ________ scopes?
9. The identifiers in an enumeration ________.
10. Which of these statements best defines scope?
11. Variables should be declared as fields only if ________.
12. Stacks are known as ________ data structures.
13. Declaring main as static allows the JVM to invoke main ________.
14. Any field declared with keyword ________ is constant.
15. In a class containing methods with the same name, the methods are distinguished by ________.
16. Which of the following can be an argument to a method?
17. A Java class can have which of the following methods?
18. Which statement creates a random value from the sequence 2, 5, 8, 11 and 14. Suppose randomNumbers is a SecureRandom object.
19. Math static method random generates a random double value in the range from 0.0
20. If more method calls occur than can have their activation records stored on the program execution stack, an error known as a ________ occurs.
Institution & Term/Date | |
Term/Date | Liberty University |
-
$9.99