Examlex

Solved

Assuming That a User Enters 56 for Age, What Is

question 58

Multiple Choice

Assuming that a user enters 56 for 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 < 13)
{
System.out.println("Kid!") ;
}
If (age >= 13 && age < 19)
{
System.out.println("Teen!") ;
}
If (age >= 19 && age < 30)
{
System.out.println("Young!") ;
}
If (age >= 30 && age < 50)
{
System.out.println("Adult!") ;
}
If (age >= 50)
{
System.out.println("Old!") ;
}


Definitions:

Requests

In networking and web context, an appeal or requirement sent from a client to a server to obtain information or perform an action.

Computer's Devices

This term covers all the hardware components of a computer system, including input and output devices, storage, and processing units.

Kernel

The essential component of the operating system that’s responsible for managing the processor and all other components of the computer system. Because it stays in random access memory (RAM) the entire time the computer is powered on, the kernel is called memory resident.

Operating System

The software that manages all the hardware and other software on a computer, acting as an intermediary between users and the computer hardware.

Related Questions