Exam 8: Arrays and Strings

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

The header file string contains the function ____________________,which converts a value of type string to a null-terminated character array.

(Short Answer)
4.8/5
(35)

The function ____________________ returns the length of the string s, excluding the null character.

(Short Answer)
4.8/5
(43)

The ____________________ of an array is the address (that is, the memory location) of the first array component.

(Short Answer)
4.9/5
(33)

The one place where C++ allows aggregate operations on arrays is the input and output of C-strings.

(True/False)
4.9/5
(32)

Given the declaration int list[20]; the statement list[12] = list[5] + list[7]; updates the content of the twelfth component of the array list.

(True/False)
4.9/5
(37)

The array index can be any integer less than the array size.

(True/False)
4.9/5
(40)

The statement strlen("Marylin Stewart"); returns ____________________.

(Short Answer)
4.7/5
(37)

A collection of a fixed number of elements (called components) arranged in n dimensions (n>=1) is called a(n) ____.

(Multiple Choice)
4.8/5
(34)

When you pass an array as a parameter, the base address of the actual array is passed to the formal parameter.

(True/False)
4.9/5
(33)

Complete the following statement so that it outputs the array sales. double sales[10]; int index; for (index = 0; index < 10; index++) cout << ____________________ << " ";

(Short Answer)
4.9/5
(40)
Showing 41 - 50 of 50
close modal

Filters

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