Answer the following statements true (T) or false (F)

1. Constructors are implemented as Sub methods because they cannot return values.
2. You should not take into consideration that your code will be modified.
3. Variables declared within class methods are called instance variables.
4. The purpose of utility methods is to support the operation of a class’s other methods.
5. A constructor should return either True or False to determine if the object was initialized
properly.


1. True.
2. False. You should always anticipate that your code will be modified.
3. False. Instance variables are variables declared within a class definition, but not within a method
definition. Variables declared within class methods are local variables.
4.True.
5. False. A constructor may not return a value; attempting to do so is a syntax error.

Computer Science & Information Technology

You might also like to view...

Parentheses have higher precedence than the ____.

A. ++operator B. --operator C. *and/operators D. object access operator (.)

Computer Science & Information Technology

Chained exceptions are useful for finding out about ________.

a. exceptions thrown using the chained keyword. b. checked exceptions only. c. an original exception that was caught before the current exception was thrown. d. the current exception’s chain of superclasses.

Computer Science & Information Technology

The Research task pane can be used to translate text in ________ languages

A) 20 B) 5 C) 2 D) 36

Computer Science & Information Technology

Pressing the ____ key deletes one character at a time to the right of the insertion point.

A. CTRL B. BACKSPACE C. SHIFT D. DELETE

Computer Science & Information Technology