The _________ , also known as the address operator, B
returns the memory address of a variable.
a. asterisk ( * )
b. ampersand ( & )
c. percent sign (%)
d. exclamation point ( ! )
e. None of these
With pointer variables, you can __________ manipulate C
data stored in other variables.
a. never
b. seldom
c. indirectly
d. All of these
e. None of these
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
, (CSCI 2010 Midterm Ch 9, 11, 13 Review,: 2026 Questions and Answers)
The statement int *ptr; has the same meaning as D
a. int ptr;
b. *int ptr;
c. int ptr*;
d. int* ptr;
e. None of these
When you work with a dereferenced pointer, you are C
actually working with:
a. a variable whose memory has been deallocated
b. a copy of the value pointed to by the pointer
variable
c. the actual value of the variable whose address is
stored in the pointer variable
d. All of these
e. None of these
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
, (CSCI 2010 Midterm Ch 9, 11, 13 Review,: 2026 Questions and Answers)
These can be used as pointers. A
a. Array names
b. Numeric constants
c. Punctuation marks
d. All of these
e. None of these
The contents of pointer variables may be changed C
with mathematical statements that perform:
a. all mathematical operations that are legal in C++
b. multiplication and division
c. addition and subtraction
d. b and c
e. None of these
A pointer may be initialized with A
a. the address of an existing object
b. the value of an integer variable
c. the value of a floating point variable
d. all of these
e. None of these
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
, (CSCI 2010 Midterm Ch 9, 11, 13 Review,: 2026 Questions and Answers)
What does the following statement do?double D
*num2;
a. Declares a double variable named num2.
b. Declares and initializes an pointer variable named
num2.
c. Initializes a variable named *num2.
d. Declares a pointer variable named num2.
e. None of these
When the less than ( < ) operator is used between two C
pointer variables, the expression is testing whether
a. the value pointed to by the first is less than the value
pointed to by the second
b. the value pointed to by the first is greater than the
value pointed to by the second
c. the address of the first variable comes before the
address of the second variable in the computer's
memory
d. the first variable was declared before the second
variable
e. None of these
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM