Examlex

Solved

Assuming That a User Enters 5 as the Age, What

question 106

Multiple Choice

Assuming that a user enters 5 as the age, what is the output of the following code snippet?
Int age = 0;
Scanner in = new Scanner(System.in) ;
System.out.print("Please enter your age: ") ;
Age = in.nextInt() ;
If (age < 10)
{
System.out.println("Kid") ;
}
If (age < 30)
{
System.out.print("Young") ;
}
If (age < 70)
{
System.out.print("Aged") ;
}
If (age < 100)
{
System.out.print("Old") ;
}


Definitions:

Ileocecal Valve

A valve located between the ileum (last portion of the small intestine) and the cecum (first part of the large intestine) that controls the flow of digested food.

Pyloric Sphincter

A muscular valve regulating the flow of food from the stomach to the duodenum of the small intestine.

Anal Sphincter

A circular muscle that surrounds the anus, controlling the passage of feces out of the body through the anal opening.

Salivary Glands

Glands located in the mouth that produce saliva, aiding in digestion and keeping the mouth moist.

Related Questions