QUESTION 1Which is true about methods
-
Methods prevent us from modularizing a program protecting it from fragmentation.
|
Methods allow us to modularize a program.
|
Methods should be avoided and GOTO's used instead
|
Methods make for difficult to read code
|
QUESTION 2Hierachical form of management specified that?
-
The worker and boss must be written by the same programmer
|
The boss does not know what the worker is doing
|
The worker must know what the boss is doing
|
The boss must know what the worker is doing
|
QUESTION 3A static method depends on the contents of many objects?
-
True
False
QUESTION 4 The main method must be declared as public _____ void main?
QUESTION 5 Methods may be declared with multiple parameters. What must match?
-
The number of parameters must be equal to the number of arguments in the calling statement.
|
Objects are objects, you can specify any type you wish.
|
The number of parameters must be equal and of the same type as the number of arguments and types in the calling statement.
|
The number of parameters may but do not have to be equal and of the same type as the number of arguments and types in the calling statement
|