Exam 3: Pointers and Array-Based Lists
Exam 1: Software Engineering Principles and C++ Classes42 Questions
Exam 2: Object-Oriented Design OOD and C++35 Questions
Exam 3: Pointers and Array-Based Lists45 Questions
Exam 4: Standard Template Library (STL) I47 Questions
Exam 5: Linked Lists44 Questions
Exam 6: Recursion36 Questions
Exam 7: Stacks44 Questions
Exam 8: Queues48 Questions
Exam 9: Searching and Hashing Algorithms49 Questions
Exam 10: Sorting Algorithms47 Questions
Exam 11: Binary Trees and B-Trees47 Questions
Exam 12: Graphs43 Questions
Exam 13: Standard Template Library (STL) II50 Questions
Select questions type
In an array list the time complexity of the remove function is identical to the time complexity of the ____ function.
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
A
The statement ____ stores the address of x in p.
Free
(Multiple Choice)
4.8/5
(46)
Correct Answer:
A
Pointer variables must be initialized if you want them to point to something.
Free
(True/False)
4.8/5
(38)
Correct Answer:
False
The statement ____ declares list to be an array of five integers.
(Multiple Choice)
4.8/5
(38)
When an integer is added to a pointer variable, the value of the pointer variable is incremented by the integer times the size of the memory to which the pointer is pointing.
(True/False)
4.9/5
(38)
The ampersand, &, is a binary operator that returns the address of its operand.
(True/False)
4.9/5
(36)
You can initialize a pointer variable by setting it to ____.
(Multiple Choice)
4.9/5
(39)
To determine whether the item to be inserted is already in the list, the insert function calls the _____ member function.
(Multiple Choice)
4.8/5
(35)
When a dynamic variable is no longer needed, it can be ____.
(Multiple Choice)
4.7/5
(36)
When * is used as a unary operator, * refers to the object to which the operand of the * (that is, the pointer) points.
(True/False)
4.9/5
(38)
Variables that are created during program execution are called ____ variables.
(Multiple Choice)
4.8/5
(34)
An array created during the execution of a program is called a dynamic array.
(True/False)
4.9/5
(33)
The operator new has two forms: one to allocate a single variable, and another to allocate an array of variables.
(True/False)
4.9/5
(34)
The syntax for accessing a class (struct) member using the operator -> is ____.
(Multiple Choice)
4.9/5
(37)
In the line of code int* p,q, p and q are both pointer variables of type int.
(True/False)
4.9/5
(44)
The correct syntax for the destructor of the class tempClass is ____.
(Multiple Choice)
4.8/5
(40)
Showing 1 - 20 of 45
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)