Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

Format flags may be combined using the _____
A:
bitwise OR operator(|)
B:
logical OR operator (||)
C:
bitwise AND operator (&)
D:
logical AND operator (&&)
Answer: A
No answer description is available. Let's discuss.
Which of the following formulas can be used to generate random integers between 1 and 10?
A:
1 + rand() % (10 - 1 + 1)
B:
1 + (10 - 1 + 1) % rand()
C:
10 + rand() % (10 - 1 + 1)
D:
10 + rand() % (10 + 1)
Answer: A
No answer description is available. Let's discuss.
The code class Descendant : virtual public Ancestor indicates that
A:
the members of Ancestor will be included more than once in Descendant
B:
the members of Ancestor will be included only once in Descendant
C:
the members of Descendant will be included more than once in Ancestor
D:
the members of Descendant will be included only once in Ancestor
Answer: B
No answer description is available. Let's discuss.
The data type listed at the beginning of a value-returning function's header indicates the type of data the function will _____
A:
return
B:
pass
C:
receive
D:
Answer: A
No answer description is available. Let's discuss.
The function printDataMembers() is mot likely a(n) ________
A:
inspector functions
B:
mutator functions
C:
auxiliary functions
D:
manager functions
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz