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

  Sequence,Selection and Repetition (Loops)

  Computers, Mice and Keyboards

  Programs, Instructions and Algorithms

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

  A program that can close itself

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

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

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

 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 ordered steps in a program

  The use of REPEAT commands in a program

  The use of IF ELSEstatements 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 IF ELSEstatements in a program

  The use of PRINT commands in programs

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

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

  The user is repeatedly shown a login screen until it crashes

  The user follows a single step instruction to enter some information

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

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

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

  incorrect/lengthy

  long/complicated

  difficult/hard to follow

  correct/accurate

 9. Designing __________ involves making steps and rules.

  drawings

  words

  letters

  programs and algorithms

 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.

  FALSE

  TRUE