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 computer screen

  A mouse

  A whole computer

  A video game

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

  Programs, Instructions and Algorithms

  Computers, Mice and Keyboards

  Prints, Mints and Sints

  Sequence,Selection and Repetition (Loops)

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

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

  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

 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 PRINT commands in programs

  The use of IF ELSEstatements in a program

  The use of ordered steps in a program

  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?

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

  The user is repeatedly shown a login screen until it crashes

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

  The user follows a single step instruction to enter some information

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

  incorrect/lengthy

  long/complicated

  correct/accurate

  difficult/hard to follow

 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