Computer Science - Object Oriented Programming Using C++

36.
Two or more arrays whose elements are related by their position (subscript) in the arrays are called _____ arrays
horizontal
paired
parallel
related
vertical
Answer: Option
Explanation:
No answer description is available. Let's discuss.

37.
Assume that a program creates and initializes a Short Integer variable named age and a pointer named agePtr, to which it assigns the address of the age variable. Which of the following statements will assign the number 21 to the age variable?
age = 21;
*age = 21;
agePtr = 21;
*agePtr = 21;
both (a) and (d)
Answer: Option
Explanation:
No answer description is available. Let's discuss.

38.
The statement fwrite ( (char*)&objl, sizeof(objl) );
writes the member functions of objl to fl
writes the data in objl to fl
writes the member functions and me data of obj 1 to fl
writes the address of objl to fl
Answer: Option
Explanation:
No answer description is available. Let's discuss.

39.
The body of a C++ function is surrounded by _____
parentheses
angle brackets
curly brackets
square brackets
Answer: Option
Explanation:
No answer description is available. Let's discuss.

40.
Which of the following type casts will convert an Integer variable named amount to a Double type?
(double) amount
(int to double) amount
int to double(amount)
int (amount) to double
Answer: Option
Explanation:
No answer description is available. Let's discuss.