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

1) Only member functions can be virtual.
2) Destructors are automatically virtual.
3) A the binding of virtual function is done at runtime if called using an object.
4) Upcasting causes no problems:
5) Downcasting causes the slicing problem.


1) T
2) F
3) T
4) F
5) F

Computer Science & Information Technology

You might also like to view...

ToUpper(string) is

a) a way of converting a string to all upper cases. b) a way to make the first letter of every word in a string a capital letter. c) a way of making one string more important than the rest. d) a syntax error.

Computer Science & Information Technology

Which of the following is not a true statement regarding the function of a switch?

A. It determines the path used based on the destination IP address. B. It sends broadcast frames out all connected ports. C. Each port on a switch represents a separate collision domain. D. Switches have the ability to operate in full-duplex mode.

Computer Science & Information Technology

When using ____, a full path name requires that two backslashes be used to separate individual directory and filenames.

A. #include B. #define C. atoi D. tolower

Computer Science & Information Technology

Which of the following is FALSE about shapes?

A) The can be moved on a slide. B) They can be inserted with the Design tab. C) They can be sized similar to a picture. D) They include lines, boxes, and banners.

Computer Science & Information Technology