Preview

04 - How do programs work?

 1. Look through this presentation and select 'Yes' when you have done so.

  False

  True

 2. Which of the following is an example of a program?

  A video game

  A computer screen

  A whole computer

  A mouse

 3. Programs, which are a series of instructions, generally contain three main constructs. They are:

  Prints, Mints and Sints

  Programs, Instructions and Algorithms

  Sequence,Selection and Repetition (Loops)

  Computers, Mice and Keyboards

 4. Which of the following is an example of SEQUENCE?

  A program that has ten steps (instructions) that are in order

  A program that has no steps or instructions in it at all

  A program that has a single IF statement it to control the flow of the program

  A program that can close itself

 5. Which of the following is an example of the use of SELECTION in a program?

  The use of PRINT commands in programs

  The use of IF ELSEstatements in a program

  The use of REPEAT commands in a program

  The use of ordered steps in a program

 6. Which of the following is an example of the use of REPETITION in a program?

  The use of loops in a program that repeat sections of code

  The use of ordered steps in a program

  The use of PRINT commands in programs

  The use of IF ELSEstatements in a program

 7. In school, students need to enter their username and password correctly to log in. How is selection used here?

  The user follows a single step instruction to enter some information

  The user is repeatedly shown a login screen until it crashes

  IF the username and password are correct, the user is given access, ELSE, no access

  The user is given an ordered instruction to follow and must do so

 8. When creating a program, it is important that the instructions are ________ and in the right order.

  difficult/hard to follow

  correct/accurate

  long/complicated

  incorrect/lengthy

 9. Designing __________ involves making steps and rules.

  letters

  words

  programs and algorithms

  drawings

 10. A program like a computer game has been created by a programmer and coded in a language. The code contains the instructions and algorithms.

  TRUE

  FALSE