12) Which of the following assigns a value to the hourlyWagemember of employee[2]? A) employee[2]->hourlyWage = 50.00;
Question:
12) Which of the following assigns a value to the hourlyWagemember of employee[2]?
A) employee[2]->hourlyWage = 50.00;
B) employee2.hourlyWage = 7.50;
C) hourlyWage[2].employee = 29.75
D) employee[2].hourlyWage = 100.00;
E) None of these
13) Which of the following statements outputs the value of thegpa member of element 1 of the student array?
A) cout << student1.gpa;
B) cout << firstStudent.gpa;
C) cout << student[1].gpa;
D) cout << student1->gpa;
E) None of these
14) Look at the following declaration.
enum Tree { OAK, MAPLE, PINE };
In memory, what value will the MAPLE enumerator be storedas?
A) "MAPLE"
B) 2
C) 'M'
D) 1
E) 1.0
15) Look at the following declaration.
enum Tree { OAK, MAPLE, PINE };
What is the value of the following relational expression?
OAK > PINE
A) true
B) false
C) This is an error. You cannot compare enumerators withrelational operators.