C++ Answer questions 1, 2 & 4 (4 is on the right of the picture) Consider the fo
ID: 3763685 • Letter: C
Question
C++
Answer questions 1, 2 & 4
(4 is on the right of the picture)
Consider the following declaration: Answer the following questions: What is the value of static_cast (STRAWBERRY)? What is the value, if any, of the following expression? What is the value, if any, of the following expression? What is the value, if any, of the following expression:? What is the output, if any, of the following code? What is wrong with the following program? Define a struct, carType to store the following data about a car: Manufacturer (string), model (string), model type (string), color (string), number of doors (int), miles per gallon in city (int), miles per gallon on highway (int), year when the car was built (int), and the price (double).Explanation / Answer
Answer for 1 is:
A : 4
B : 3
C : 6
D: Correct
E : BANANA, GRAPE, STARWBERRY, MANGO, GUAVA
Answer for 2 is:
error: 'a' was not declared in this scope
error: 'RATE' was not declared in this scope
Answer for 3 is:
struct carType
{
private:
string Manufature;
string model;
string type;
string color;
int numberofdoors;
int miles_city;
int miles_highway;
int year;
double price;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.