Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Students at a high school receive letter grades based on the following scale: Score Letter Grade 90 or above A Between 80 and 89 inclusive

Students at a high school receive letter grades based on the following scale:

Score

Letter Grade

90 or above

A

Between 80 and 89 inclusive

B

Between 70 and 79 inclusive

C

Below 70

D

Which of the following code segments will display the correct grade for a given score?

  1. IF(score 90)

{

DISPLAY(A)

}

IF(score 80 AND score 89)

{

DISPLAY(B)

}

IF(score 70 AND score 79)

{

DISPLAY(C)

}

IF(score < 70)

{

DISPLAY(D)

}

  1. IF(score 90)

{

DISPLAY(A)

}

ELSE

{

IF(score 80 AND score 89)

{

DISPLAY(B)

}

ELSE

{

IF(score 70 AND score 79)

{

DISPLAY(C)

}

ELSE

{

DISPLAY(D)

}

}

}

  1. IF(score < 70)

{

DISPLAY(D)

}

IF(score 70 AND score 79)

{

DISPLAY(C)

}

IF(score 80 AND score 89)

{

DISPLAY(B)

}

IF(score 90)

{

DISPLAY(A)

}

  1. I only

  2. II only

  3. III only

  4. I and II only

  5. II and III only

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

What kinds of factors affect the expected return of a stock?

Answered: 1 week ago