CMSC 202 Exam 3 ACTUAL UPDATED QUESTIONS AND CORRECT ANSWERS
The ability to associate multiple meanings to one function polymorphism
name using dynamic binding is called _________
An iterator is a generalization of a ________, commonly used pointer
for a container classes.
If no exception is thrown then the _____ _____ is ignored. catch block
A recursive function is one in which the function invokes itself
______
In a _______ ____, two pointer will point to the same object shallow copy
Separate compilation generally works except when using templates
_________
Two primary queue operations are _______ and _______ enqueue, dequeue
In a queue, items are added and removed in a _____ -In, first, first
_____-Out manner
When the ________ is placed in front of a variable name, it ampersand (&)
returns the address of that variable.
A _____ is a linked data structure that follows the First In queue
First Our (FIFO) convention
To save the output of a command to a file the operator >
used is _
A friend function is used to access the _______ and _________ of private, protected
a class.
The next pointer of the ____ node in a singly linked list will last
have a null pointer
To search for a specific pattern in Linux/Unix the grep
command is:
, Consider the following recursive definition, where n is a 7
positive integer.
mult (1) = 1
mult (n) = 2* mult(n - 1) + 1 if n > 1
The value of mult(3) is __
An abstract class must contain at least one ____ _______ pure virtual function
________
________ to a base class may be assigned the address of a pointers
derived class object.
Using virtual functions is also known as __________ the overriding
functions
The flag __ must be used during compilation so we can -g
use gdb on code
An _________ is a value or an object that signals an error exception
Most compilers cannot handle separate compilation templates
when using _________
the ______ member function of the string class returns the peek()
next character to be read by can, but it does not use up
that character
To overload the + operator, you would write the function operator+
named _________
When a structure is passed by _________ to a function, its reference
members are not copied
It is a good idea to make a copy constructor's parameters constant, const
________ by specifying the ___ key word in parameter list
An ________ is like a pointer. It is used to access the iterator
individual data elements in a container
The escape sequence that represent the null terminator is /o
__
The _____ operation allows an item to be removed from a pop()
stack
Using virtual functions is also know as __________ the overriding
functions
The ability to associate multiple meanings to one function polymorphism
name using dynamic binding is called _________
An iterator is a generalization of a ________, commonly used pointer
for a container classes.
If no exception is thrown then the _____ _____ is ignored. catch block
A recursive function is one in which the function invokes itself
______
In a _______ ____, two pointer will point to the same object shallow copy
Separate compilation generally works except when using templates
_________
Two primary queue operations are _______ and _______ enqueue, dequeue
In a queue, items are added and removed in a _____ -In, first, first
_____-Out manner
When the ________ is placed in front of a variable name, it ampersand (&)
returns the address of that variable.
A _____ is a linked data structure that follows the First In queue
First Our (FIFO) convention
To save the output of a command to a file the operator >
used is _
A friend function is used to access the _______ and _________ of private, protected
a class.
The next pointer of the ____ node in a singly linked list will last
have a null pointer
To search for a specific pattern in Linux/Unix the grep
command is:
, Consider the following recursive definition, where n is a 7
positive integer.
mult (1) = 1
mult (n) = 2* mult(n - 1) + 1 if n > 1
The value of mult(3) is __
An abstract class must contain at least one ____ _______ pure virtual function
________
________ to a base class may be assigned the address of a pointers
derived class object.
Using virtual functions is also known as __________ the overriding
functions
The flag __ must be used during compilation so we can -g
use gdb on code
An _________ is a value or an object that signals an error exception
Most compilers cannot handle separate compilation templates
when using _________
the ______ member function of the string class returns the peek()
next character to be read by can, but it does not use up
that character
To overload the + operator, you would write the function operator+
named _________
When a structure is passed by _________ to a function, its reference
members are not copied
It is a good idea to make a copy constructor's parameters constant, const
________ by specifying the ___ key word in parameter list
An ________ is like a pointer. It is used to access the iterator
individual data elements in a container
The escape sequence that represent the null terminator is /o
__
The _____ operation allows an item to be removed from a pop()
stack
Using virtual functions is also know as __________ the overriding
functions