1.2 - Selection

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/4

5 Terms

1
New cards

What are the three basic programming constructs?

  • Sequence

  • Selection

  • Iteration


2
New cards

What are selection statements used for?

They are used to select which statement will be executed next, depending on some condition

3
New cards

Using what, are conditions formulated?

They are formulated using relational operators.

4
New cards

Provide three examples of relational operators.

  • > greater than

  • < less than

  • >= greater than or equal to

  • <= less than or equal to

  • = equal

  • <> not equal


5
New cards

What is the relational operator for not equal in pseudocode?

<>