Examlex

Solved

What Is the Output of the Following Code Snippet

question 105

Multiple Choice

What is the output of the following code snippet?
Int golfScore = 64;
If (golfScore < 60)
{
System.out.println("Astounding!") ;
}
If (golfScore >= 60 && golfScore < 70)
{
System.out.println("Professional!") ;
}
If (golfScore >= 70 && golfScore < 80)
{
System.out.println("Pretty good!") ;
}
If (golfScore >= 80 && golfScore < 90)
{
System.out.println("Not so hot!") ;
}
If (golfScore >= 90)
{
System.out.println("Keep your day job!") ;
}


Definitions:

Epinephrine

A hormone and neurotransmitter also known as adrenaline, involved in the body's fight-or-flight response, increasing heart rate and blood pressure, and expanding air passages of the lungs.

Norepinephrine

A neurotransmitter and hormone involved in the body's fight or flight response, playing a key role in attention and reactions to stress.

Ischemic Heart Disease

A condition in which blood supply to the heart becomes compromised, leading to a myocardial infarction. One of the leading causes of death from diseases of the cardiovascular system in Western societies.

Cortisol

A steroid hormone produced by the adrenal glands, often released in response to stress and low blood-glucose concentration.

Related Questions