Examlex

Solved

What Is Wrong with the Following Switch Statement

question 13

Multiple Choice

What is wrong with the following switch statement?
Int ans;
Cout <<"Type y for yes on n for no\n";
Cin >> ans;
Switch ans)
{
Case 'y':
Case 'Y': cout << "You said yes\n"; break;
Case 'n':
Case 'N': cout << "You said no\n"; break;
Default: cout <<"invalid answer\n";
}


Definitions:

Self-Report Inventories

Questionnaires in which individuals provide information about themselves, often used in psychological assessments and research.

Draw-A-Person Test

A projective psychological test used to evaluate a child's emotional and social development, intelligence, and neuropsychological functioning.

Machover's

Refers to the Machover Draw-A-Person Test, a projective psychological test used to assess personality and emotional functioning.

Goodenough-Harris

A drawing test used as a measure of intelligence in children, where children are asked to draw a person.

Related Questions