Exam 3: Introduction to Classes, Objects and Strings

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Functions that are not members of a class are called ________ functions.

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

B

The default value for a string is ________.

Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
Verified

D

Which of the following statements is false?

Free
(Multiple Choice)
4.7/5
(41)
Correct Answer:
Verified

A

Which of the following statements is false?

(Multiple Choice)
4.9/5
(43)

You can initialize fundamental-type data members in their declarations. This is known as a(n) ________ initializer and was introduced in C++11.

(Multiple Choice)
4.8/5
(31)

The return type ________ indicates that when a function completes its task, it does not return (i.e., give back) any information to its calling function.

(Multiple Choice)
4.9/5
(31)

Which of the following statements is true?

(Multiple Choice)
4.9/5
(34)

Normally, constructors are ________.

(Multiple Choice)
4.8/5
(39)

Assuming that text is a variable of type string, what will be the contents of text after the statement cin >> text; is executed if the user types Hello World! then presses Enter?

(Multiple Choice)
4.8/5
(30)

C++ Standard Library function getline, from the <string> header, reads characters up to, but not including, a(n)________ (which is discarded), then places the characters in a string.

(Multiple Choice)
4.8/5
(36)

Typically, you cannot call a member function of a class until you create a(n) ________ of that class.

(Multiple Choice)
4.8/5
(40)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(36)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(35)

A member-function call can supply ________ that help the function perform its task.

(Multiple Choice)
4.8/5
(39)

C++ is a(n) ________ programming language because you can define new class types as needed.

(Multiple Choice)
4.7/5
(32)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(32)

A main function can "drive" an object by calling its member functions-without knowing how the class is implemented. In this sense, main is referred to as a(n) ________ program.

(Multiple Choice)
4.7/5
(30)

Which of the following statements about UML class diagrams is false?

(Multiple Choice)
4.9/5
(39)

Which of the following statements is false?

(Multiple Choice)
4.7/5
(21)

A default constructor has how many parameters?

(Multiple Choice)
4.7/5
(35)
Showing 1 - 20 of 33
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)