CSC 1 Questions
CSC 1 Questions
8. Polymorphism allows:
a) One method to behave differently in different classes
b) Multiple inheritance chains in one class
c) Defining private variables in a class
d) Combining two unrelated objects
Control Flow
11. Which logical operator ensures all conditions must be true?
a) OR (||)
b) NOT (!)
c) AND (&&)
d) EQUALS (=)
Functions
13. Functions are useful because:
a) They increase code repetition
b) They perform repetitive tasks in an organized way
c) They eliminate the need for variables
d) They restrict parameter inputs