Exam 10: Pointers
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C++40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions37 Questions
Exam 5: Looping38 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays37 Questions
Exam 9: Searching, Sorting, and Algorithm Analysis36 Questions
Exam 10: Pointers50 Questions
Exam 11: More About Classes and Object-Oriented Programming64 Questions
Exam 12: More on C-Strings and the String Class38 Questions
Exam 13: Advanced File and Io Operations38 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions20 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees37 Questions
Select questions type
The delete operator should only be used on pointers that
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
D
To dereference a structure pointer and simultaneously access a member of the structure, the appropriate operator to use is
Free
(Multiple Choice)
5.0/5
(38)
Correct Answer:
C
You may use the type pointer to a structure as the type of a
Free
(Multiple Choice)
4.9/5
(45)
Correct Answer:
D
It is possible for a structure to contain as a member a pointer to its own structure type.
(True/False)
4.9/5
(35)
The expression *s->p; is only meaningful if s is a pointer to a structure and p is a pointer that is a member of that structure.
(True/False)
4.8/5
(33)
If a variable occupies more than one byte of memory, its address is
(Multiple Choice)
4.9/5
(38)
The and operators can respectively be used to increment and decrement a pointer variable.
(Multiple Choice)
4.8/5
(36)
It is legal to subtract a pointer variable from another pointer variable.
(True/False)
4.8/5
(44)
With pointer variables you can access, but you cannot modify, data in other variables.
(True/False)
4.7/5
(34)
The , also known as the address operator, returns the memory address of a variable.
(Multiple Choice)
4.9/5
(43)
The statement Rectangle * boxPtr; defines a variable boxPtr to be a pointer pointing to a type Rectangle.
(True/False)
4.8/5
(30)
If Circle is a structure type, the statement Circle *pcirc;
(Multiple Choice)
5.0/5
(37)
A statement that displays the address of the variable num1 is
(Multiple Choice)
5.0/5
(41)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)