Exam 10: Pointers
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C Plus Plus40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions40 Questions
Exam 5: Looping40 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays40 Questions
Exam 9: Searching, Sorting, Algorithm Analysis40 Questions
Exam 10: Pointers62 Questions
Exam 11: More About Classes and Object-Oriented Programming70 Questions
Exam 12: More on C-Strings and the String Class40 Questions
Exam 13: Advanced File and Io Operations40 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions22 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 Trees38 Questions
Select questions type
Which of the following statements correctly deletes a dynamically-allocated array pointed to by p?
(Multiple Choice)
4.9/5
(37)
The expression s->m is meaningful only when s is a pointer to a structure and m is a member of the structure.
(True/False)
4.7/5
(39)
A temporary value in a program can be referred to by at most one lvalue reference.
(True/False)
4.7/5
(32)
The set of operations supported by the unique_ptr class include
(Multiple Choice)
4.8/5
(29)
When you work with a dereferenced pointer, you are actually working with
(Multiple Choice)
4.8/5
(35)
Assuming that arr is an array identifier, the statement sum += *arr;
(Multiple Choice)
4.9/5
(38)
When the less than ( < ) operator is used between two pointer variables, the expression is testing whether
(Multiple Choice)
5.0/5
(36)
The ________ and ________ operators can respectively be used to increment and decrement a pointer variable.
(Multiple Choice)
4.9/5
(31)
The statement Rectangle * boxPtr; defines a variable boxPtr to be a pointer pointing to a type Rectangle.
(True/False)
5.0/5
(15)
When the ________ is placed in front of a variable name, it returns the address of that variable.
(Multiple Choice)
4.9/5
(31)
The ________, also known as the address operator, returns the memory address of a variable.
(Multiple Choice)
4.9/5
(40)
If a variable occupies more than one byte of memory, its address is
(Multiple Choice)
4.9/5
(40)
It is possible for a structure to contain as a member a pointer to its own structure type.
(True/False)
4.9/5
(33)
Showing 21 - 40 of 62
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)