Exam 3: Ifthenelse Control Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The following pseudocode IF AVG >93> 93 THEN GRADE == "A" (ELSE) ENDIF Represents a

(Multiple Choice)
4.7/5
(27)

If the variable named AVG has a value of 73,what is the value of GRADE after the instructions corresponding to the following pseudocode are executed? IF AVG>93THEN\mathrm { AVG } > 93 \mathrm { THEN } GRADE == "A" ELSE GRADE == "B" ENDIF IF AVG>73\mathrm { AVG } > 73 THEN GRADE == "C" ELSE GRADE == "F" ENDIF

(Multiple Choice)
4.8/5
(31)

If the variable named AVG has a value of 93,what is the value of GRADE after the instructions corresponding to the following pseudocode are executed? IF AVG>93THEN\mathrm { AVG } > 93 \mathrm { THEN } GLSA GRE = "A" GRADE ="" ENDIF IF AVG>73THEN\mathrm { AVG } > 73 \mathrm { THEN } GRADE == " C\mathrm { C } ", ELSE GRADE = "F"' ENDIF

(Multiple Choice)
4.8/5
(30)

A diamond shape symbol on a program flowchart represents a decision to be made.

(True/False)
4.8/5
(37)

If the variable named ANSWER has a value of 1,what will be output after the instructions corresponding to the following pseudocode are executed? IF ANSWER =1THEN= 1 \mathrm { THEN } Write "Hello" (ELSE) ENDIF\mathrm { ENDIF } IF ANSWER =2= 2 THEN Write "Goodbye" ELSE Write "Good day", ENDIF

(Multiple Choice)
4.8/5
(35)

The following pseudocode IF AVG >93> 93 THEN GRADE = "A" ELSE GRADE = "B" ENDIF IF AVG>73\mathrm { AVG } > 73 THEN GRADE == " C\mathrm { C } ", ELSE GRADE = "F " ENDIF Represents a

(Multiple Choice)
4.8/5
(42)

If the variable named AVG has a value of 93,what is the value of GRADE after the instructions corresponding to the following pseudocode are executed? IF AVG>93A V G > 93 THEN GRADE = "A" ELSE IF AVG>83A V G > 83 THEN ELSE GRADE = "B" GRADE = "P", ENDIF ENDIF

(Multiple Choice)
4.9/5
(34)

The keyword ELSE is not needed when writing the pseudcode of a null ELSE.

(True/False)
4.7/5
(41)

Which program flowcharting symbol is used as a collector,emphasizing the single exit point of an IFTHEN control structure?

(Multiple Choice)
4.9/5
(51)

If the variable named GRADE has a value of 95,which of the following statements will cause the line 95 is above average To be output?

(Multiple Choice)
4.9/5
(44)
Showing 21 - 30 of 30
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)