If a and b are objects of type Date, the expression if (a == b) ____.

A. in invalid
B. is valid
C. causes a compile error
D. causes a run time error


Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following are accurate comparisons between call-by-value and const call-by-reference?

a. Both protect against changing the caller’s argument. b. Both are very fast for all sizes of objects. c. Call-by-value copies the argument whereas const call-by-reference does not d. Call by value uses more memory than const call-by-reference in making the copy.

Computer Science & Information Technology

The only way to create an e-mail hyperlink is to click Hyperlink in the Links group, select E-mail Address, and then type the e-mail address

Indicate whether the statement is true or false

Computer Science & Information Technology

Compiling is the process of writing instructions in a language that the computer can respond to and that other programmers can understand.

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

Computer Science & Information Technology

A fastening point is an anchor within a marquee.

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

Computer Science & Information Technology