Exam 5: Understanding Arrays, Strings and Pointers

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

You can determine the size of variables in your system with the ____ operator.

(Multiple Choice)
4.8/5
(36)

A C++ value expressed within double quotation marks is commonly called a ____.

(Multiple Choice)
4.9/5
(40)
Match each term with the correct statement below.
Premises:
identifies each location where a piece of data can be stored
Responses:
hexadecimal
subscript
array
Correct Answer:
Verified
Premises:
Responses:
identifies each location where a piece of data can be stored
hexadecimal
(Matching)
4.9/5
(36)

What problem can you identify in the following program? Char name1[] = "Mary"; Char name2[] = "Diane"; Strcpy(name2, "Margaret Veronica");

(Multiple Choice)
4.8/5
(46)

To compare the contents of two strings you can use the ____.

(Multiple Choice)
4.9/5
(40)
Match each term with the correct statement below.
Premises:
list of individual items that all have the same type
Responses:
subscript
two-dimensional array
element
Correct Answer:
Verified
Premises:
Responses:
list of individual items that all have the same type
subscript
(Matching)
4.8/5
(40)

Which of the following statements produces the same output as cout ? Assume someNumbers is an array of integers.

(Essay)
4.8/5
(36)

The input ____ is a holding area for waiting input.

(Multiple Choice)
4.8/5
(40)

The ____ function reads characters into an array, up to a size limit or until the newline character is encountered, whichever comes first.

(Multiple Choice)
4.9/5
(35)

Which of the following statements has an error?

(Multiple Choice)
4.9/5
(37)

Memory locations beyond an array are ____________________ for the array.

(Short Answer)
4.8/5
(41)
Match each term with the correct statement below.
Premises:
array whose elements are accessed using two subscripts
Responses:
array
hexadecimal
memory address
Correct Answer:
Verified
Premises:
Responses:
array whose elements are accessed using two subscripts
array
(Matching)
4.8/5
(37)

Can you provide values for an array when you declare it? If so, how?

(Essay)
4.8/5
(41)

You can use a variable to declare the size of an array.

(True/False)
4.8/5
(41)
Match each term with the correct statement below.
Premises:
single object in an array
Responses:
hexadecimal
element
flag variable
Correct Answer:
Verified
Premises:
Responses:
single object in an array
hexadecimal
(Matching)
4.8/5
(32)
Showing 41 - 55 of 55
close modal

Filters

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