Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

Step by Step Solution

3.46 Rating (146 Votes )

There are 3 Steps involved in it

Step: 1

The detailed answer for the above question is provided below D employee2hourlyWage 10000 C cout stud... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Statistics

Authors: Neil A. Weiss

8th Edition

321691237, 978-0321691231

More Books

Students also viewed these Programming questions