Computer Science - Object Oriented Programming Using C++

21.
Which of the following is a valid condition for an if statement? (The condition should be both syntactically and logically valid.)
(age) > 65
(age > 0 and < 10)
(sales > 500 && < 800)
(sales > 100 && sales <= 1000)
(sales > 100 || sales <= 1000)
Answer: Option
Explanation:
No answer description is available. Let's discuss.

22.
A pattern for creating an object is called a(n) _____
class
attributes
private
public
Answer: Option
Explanation:
No answer description is available. Let's discuss.

23.
An asterisk placed after a data type means .
array to
pointer to
address to
located to
Answer: Option
Explanation:
No answer description is available. Let's discuss.

24.
An object is a(n) _____ of a class
owner
function
definition
instance
Answer: Option
Explanation:
No answer description is available. Let's discuss.

25.
Which of the following statements creates and initializes a pointer named salesPtr?
salesPtr = NULL;
*salesPtr = "";
float &salesPtr = NULL;
float *salesPtr = "";
float *salesPtr = NULL;
Answer: Option
Explanation:
No answer description is available. Let's discuss.