Object Oriented Programming Using C Plus Plus - Study Mode

[#481] A C++ statement must end in a
Correct Answer

(D) (semicolon)

[#482] Which of the following statements uses the computer's clock to initialize the random number generator?
Correct Answer

(B) srand(time(NULL))

[#483] 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?
Correct Answer

age = 21

[#484] The statement fwrite ( (char*)&objl, sizeof(objl) )
Correct Answer

(B) writes the data in objl to fl

[#485] Which of the following statements allows the user to enter data at the keyboard?
Correct Answer

(B) cin >> currentPay