0
0
Intro to Computingfundamentals~10 mins

Pseudocode for planning in Intro to Computing - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the pseudocode to start planning by defining the first step.

Intro to Computing
START
DEFINE [1] AS the first step
END
Drag options to blanks, or click blank then click option'
Agoal
Bvariable
Cfunction
Dloop
Attempts:
3 left
💡 Hint
Common Mistakes
Using programming terms like variable or function instead of a planning step.
Skipping the definition of the goal.
2fill in blank
medium

Complete the pseudocode to represent a decision point in planning.

Intro to Computing
IF condition [1]
  TAKE action
ELSE
  TAKE alternative action
END IF
Drag options to blanks, or click blank then click option'
Aloop
Bstart
CTHEN
DELSE
Attempts:
3 left
💡 Hint
Common Mistakes
Using ELSE instead of THEN after the condition.
Omitting the keyword after the condition.
3fill in blank
hard

Fix the error in the pseudocode to correctly represent a loop for repeated actions.

Intro to Computing
FOR i FROM 1 TO 5 [1]
  PRINT i
END FOR
Drag options to blanks, or click blank then click option'
AWHILE
BDO
CREPEAT
DLOOP
Attempts:
3 left
💡 Hint
Common Mistakes
Using LOOP or REPEAT without DO.
Using WHILE incorrectly in a FOR loop.
4fill in blank
hard

Fill both blanks to complete the pseudocode for checking a condition and taking action.

Intro to Computing
IF [1] THEN
  [2] action
END IF
Drag options to blanks, or click blank then click option'
Acondition
Bperform
Crepeat
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'repeat' instead of 'perform' for the action.
Using 'start' instead of 'condition' for the check.
5fill in blank
hard

Fill all three blanks to create a pseudocode dictionary comprehension for planning steps with a condition.

Intro to Computing
steps = { [1]: [2] for [3] in plan if [2] != None }
Drag options to blanks, or click blank then click option'
Astep_name
Baction
Cstep
Dcondition
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up keys and values in the dictionary.
Using 'condition' as the loop variable.