Exam 3: Ifthenelse Control Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

There is no ANSI-approved standard for pseudocode.

Free
(True/False)
4.9/5
(36)
Correct Answer:
Verified

True

Which program flowcharting symbol is used to indicate a choice between two alternative paths?

Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
Verified

D

The decision point in an IFTHENELSE statement is called an unconditional branch.

Free
(True/False)
4.8/5
(31)
Correct Answer:
Verified

False

The no-function condition is usually called a null ELSE.

(True/False)
4.8/5
(35)

A connector symbol is placed at the entry point of an IFTHENELSE control structure.

(True/False)
4.9/5
(40)

Indentation is used in pseudocode to improve readability.

(True/False)
4.7/5
(38)

If no special alternative action is required when the condition tested in an IFTHENELSE pattern is false,we refer to this as a

(Multiple Choice)
4.8/5
(40)

The following pseudocode IF AVG >93> 93 THEN GRADE == "A" ELSE IF AVG>83A V G > 83 THEN GRADE == "B" ELSE GRADE == "P" ENDIF ENDIF Represents a

(Multiple Choice)
4.8/5
(35)

In a nested IFTHENELSE pattern,all the tests are always made,one after the other.

(True/False)
4.9/5
(36)

Pseudocode may be a more suitable tool than flowcharting when working on complex problems.

(True/False)
4.7/5
(37)

In a nested IFTHENELSE pattern,it is probable that many of the tests will be skipped.

(True/False)
5.0/5
(29)

The value of a character-string constant is usually enclosed in either single or double quotes.

(True/False)
4.9/5
(48)

Which of the following terms is an example of a character-string constant?

(Multiple Choice)
4.8/5
(37)

Pseudocode is a graphic depiction of an algorithm.

(True/False)
4.8/5
(44)

An algorithm can be expressed by the use of an informal language called

(Multiple Choice)
4.8/5
(37)

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 >93> 93 THEN GRADE = "A" ELSE IF AVG>83\mathrm { AVG } > 83 THEN GRADE = "B" ELSE GRADE = "P" ENDIF ENDIF

(Multiple Choice)
4.8/5
(45)

The statements Write A and Write "A" will always produce the same output.

(True/False)
4.9/5
(45)

In a sequential IFTHENELSE pattern,whether tests after the first one are made depends upon the outcome of the preceding tests.

(True/False)
4.8/5
(35)

A nested IFTHENELSE pattern cannot contain a null ELSE.

(True/False)
4.8/5
(38)

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 =1= 1 THEN Write "Hello" ELSE IF ANSWER =2= 2 THEN Write "Goodbye" ELSE Write "Good day" ENDIF ENDIF

(Multiple Choice)
4.8/5
(32)
Showing 1 - 20 of 30
close modal

Filters

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