Preview

04 - How do programs work?

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

  True

  False

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

  A whole computer

  A video game

  A computer screen

  A mouse

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

  Programs, Instructions and Algorithms

  Prints, Mints and Sints

  Sequence,Selection and Repetition (Loops)

  Computers, Mice and Keyboards

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

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

  A program that can close itself

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

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

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

  The use of IF ELSEstatements in a program

  The use of ordered steps in a program

  The use of PRINT commands in programs

  The use of REPEAT commands in a program

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

  The use of ordered steps in a program

  The use of PRINT commands in programs

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

  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?

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

  The user follows a single step instruction to enter some information

  The user is repeatedly shown a login screen until it crashes

  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.

  long/complicated

  incorrect/lengthy

  difficult/hard to follow

  correct/accurate

 9. Designing __________ involves making steps and rules.

  letters

  programs and algorithms

  words

  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