Exam 7: Pointers and Pointer-Based Strings

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

Which of the following best describes the array name n in the declaration int n[10];?

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

C

What does the following statement declare? Int *countPtr, count;

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

B

After the ith iteration of the selection sort:

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

C

Pointers may be assigned which of the following values?

(Multiple Choice)
4.8/5
(38)

*max ) num1, num2, num3 );:

(Multiple Choice)
4.7/5
(32)

To follow the principle of least privilege, the selectionSort function should receive the array to be sorted as:

(Multiple Choice)
4.9/5
(40)

A function that prints a string by using pointer arithmetic such as ++ptr to output each character should have a parameter that is:

(Multiple Choice)
4.8/5
(41)

getline superstring, 30 ); Is equivalent to which of the following?

(Multiple Choice)
4.8/5
(33)

What method should be used to pass an array to a function that does not modify the array and only looks at it using array subscript notation:

(Multiple Choice)
4.8/5
(40)

The & operator can be applied to:

(Multiple Choice)
4.8/5
(27)

A string array is commonly used for:

(Multiple Choice)
4.9/5
(36)

Which of the following can have a pointer as an operand?

(Multiple Choice)
4.8/5
(32)

A function that modifies an array by using pointer arithmetic such as ++ptr to process every value should have a parameter that is:

(Multiple Choice)
4.8/5
(44)

Assuming that t is an array and tPtr is a pointer to that array, which expression refers to the address of element 3 of the array?

(Multiple Choice)
4.8/5
(36)

Sizeof:

(Multiple Choice)
4.8/5
(37)

Which of the following is not true of pointers to functions?

(Multiple Choice)
4.8/5
(42)

When a compiler encounters a function parameter for a single-subscripted array of the form int a[], it converts the parameter to:

(Multiple Choice)
4.9/5
(32)

Which of the following gives the number of elements in the array int r[ 10 ]?

(Multiple Choice)
4.7/5
(43)

A string array:

(Multiple Choice)
4.9/5
(37)

Which of the following is false for pointer-based strings?

(Multiple Choice)
4.8/5
(34)
Showing 1 - 20 of 28
close modal

Filters

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