Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

A function's single most important role is to
A:
give a name to a block of code
B:
reduce program size
C:
accept arguments and provide a return value
D:
help organize a program into conceptual units
Answer: D
No answer description is available. Let's discuss.
When variables refer to attributes of an entity (such as name, address, and phone number of a person), those attributes form a _____
A:
file
B:
record
C:
field
D:
program
Answer: B
No answer description is available. Let's discuss.
The logical NOT operator represented by is a
A:
unary operator
B:
binary operator
C:
ternary operator
D:
octal operator
Answer: A
No answer description is available. Let's discuss.
If you want only one memory location to be reserved for a class variable, no matter how many objects are instantiated, you should declare the variable as________
A:
dynamic
B:
unary
C:
static
D:
volatile
Answer: C
No answer description is available. Let's discuss.
Which of the following is NOT included in the header of a function?
A:
the type of variable returned by the function to the function that calls it
B:
the name of the program or function that calls the function
C:
the name of the function
D:
the types and names of any variables that will be passed to the function
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz