Exam 7: User-Defined Simple Data Types, Namespaces, and the string Type

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

The values in the domain of an enumeration type are called ____________________.

(Short Answer)
4.7/5
(32)

An anonymous type can be passed as a parameter to a function.

(True/False)
4.9/5
(35)

Consider the following statements: string str = "ABCDEFD"; String::size_type position; After the statement position = str.find('D'); executes,the value of position is ____.

(Multiple Choice)
4.7/5
(31)

Which of the following statements declares the studentGrade variable?

(Multiple Choice)
4.8/5
(34)

Suppose str = "ABCDEFG".The output of the statement cout << str.length()<< endl; is ____________________.

(Short Answer)
4.8/5
(39)

Given the following code namespace globalType { Void printResult(); } Which of the following statements is needed to access printResult?

(Multiple Choice)
4.9/5
(29)

Considering the statement string str = "Gone with the wind";,the output of the statement cout << str.find("the")<< endl; is ____.

(Multiple Choice)
4.9/5
(43)

Which of the following is a valid C++ statement?

(Multiple Choice)
4.8/5
(36)

No arithmetic operations are allowed on the enumeration type.

(True/False)
4.8/5
(37)

Suppose str = "abcd"; After the statement str[1] = 'A'; The value of str is "____________________".

(Short Answer)
5.0/5
(37)
Showing 41 - 50 of 50
close modal

Filters

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