Examlex

Solved

Consider the Following Code Snippet

question 39

Multiple Choice

Consider the following code snippet. Assuming that the user inputs 75 as the age, what is the output?
Int age = 0;
Scanner in = new Scanner(System.in) ;
System.out.print("Please enter your age: ") ;
Age = in.nextInt() ;
If (age < 10)
{
System.out.print("Child ") ;
}
If (age < 30)
{
System.out.print("Young adult ") ;
}
If (age < 70)
{
System.out.print("Old ") ;
}
If (age < 100)
{
System.out.print("Impressively old ") ;
}


Definitions:

Health Maintenance Organizations

A type of health insurance plan that provides comprehensive health services to members for a fixed, prepaid fee, emphasizing preventative care.

Americans With Disabilities Act

U.S. civil rights law that prohibits discrimination against individuals with disabilities in all areas of public life, including jobs, schools, transportation, and all public and private places that are open to the general public.

ADA

The Americans with Disabilities Act, a civil rights law that prohibits discrimination based on disability.

Social Security Act

A 1935 US law establishing a system of federal old-age benefits, and providing for unemployment insurance, disability insurance, and survivors' insurance.

Related Questions