Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

C++ Programming Structures, Exams of Biology

The different programming structures in C++ such as sequence, selection, and loop structures. It defines terms such as structured and unstructured programs, and explains the use of boolean expressions and end-structure statements. It also discusses different types of selection structures such as dual-alternative and single-alternative ifs. useful for students studying C++ programming and software development.

Typology: Exams

2022/2023

Available from 10/14/2023

arnezieme9
arnezieme9 🇺🇸

5

(1)

1.9K documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
C++ Chapter 3 Liberty University Online
Academy
spahgetti code - Correct answer snarled, unstructured program logic
unstructured program - Correct answer programs that do not follow the rules of
structured logic
structured program - Correct answer programs that follow the rules of structured logic
structure - Correct answer the basic unit of programming logic; each structure is either a
sequence, selection, or loop
sequence structure - Correct answer a program structure that contains steps that
execute in order. a sequence can contain any number of tasks but there is no chance
for it to branch off and skip any of the tasks
selection structure - Correct answer a program structure that tests a condition and takes
one of two courses of action depending on the result. then no matter which path is
followed, the paths join and the next task executes
decision structure - Correct answer a program structure in which a condition is tested
and depending on the result, on of two courses of action is taken. then no matter which
path is followed,they join and the next task is executed
boolean expression - Correct answer in programming, an expression that evaluates to
True or False.
end-structure statement - Correct answer designates the end of a pseudocode structure
if-then-else statement - Correct answer another name for a dual-alternative selection
dual-alternative ifs (or dual-alternative selections) - Correct answer a selection structure
that defines one action to be taken when the test condition is true and another action to
be taken when it is false
single-alternative ifs (or single-alternative selection) - Correct answer a selection
structure in which action is required for only one branch of the decision, also called an
if-then statement
pf2

Partial preview of the text

Download C++ Programming Structures and more Exams Biology in PDF only on Docsity!

C++ Chapter 3 Liberty University Online

Academy

spahgetti code - Correct answer snarled, unstructured program logic unstructured program - Correct answer programs that do not follow the rules of structured logic structured program - Correct answer programs that follow the rules of structured logic structure - Correct answer the basic unit of programming logic; each structure is either a sequence, selection, or loop sequence structure - Correct answer a program structure that contains steps that execute in order. a sequence can contain any number of tasks but there is no chance for it to branch off and skip any of the tasks selection structure - Correct answer a program structure that tests a condition and takes one of two courses of action depending on the result. then no matter which path is followed, the paths join and the next task executes decision structure - Correct answer a program structure in which a condition is tested and depending on the result, on of two courses of action is taken. then no matter which path is followed,they join and the next task is executed boolean expression - Correct answer in programming, an expression that evaluates to True or False. end-structure statement - Correct answer designates the end of a pseudocode structure if-then-else statement - Correct answer another name for a dual-alternative selection dual-alternative ifs (or dual-alternative selections) - Correct answer a selection structure that defines one action to be taken when the test condition is true and another action to be taken when it is false single-alternative ifs (or single-alternative selection) - Correct answer a selection structure in which action is required for only one branch of the decision, also called an if-then statement

Null case or Null branch - Correct answer is the branch of a decision in which no action is taken loop structure - Correct answer A statement that executes a set of statements repeatedly based on a true condition. loop body - Correct answer The statements inside a loop. while loop - Correct answer A control flow statement that allows code to be executed repeatedly. repetition - Correct answer another name for a loop structure iteration - Correct answer the act of repeating while...do loop - Correct answer is an alternate name for a while loop stacking structure - Correct answer to attach program structures end to end nesting structures - Correct answer the act of placing a structure within another structure block - Correct answer a group of statements that will execute as a single unit priming input or priming read - Correct answer the statement that reads the first input data record prior to starting a structured loop goto-less programming - Correct answer a name to describe structured programming, because structured programmers do not use a "go to" statement