← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 586 · 40 questions
TalentJR

Developer's tip (In, work, out): Input → processing → output. Input: typing, tapping, a photo, your voice. Output: a result on screen, a sound, a buzz, a pop-up. In code, the processing line works out a new value from the inputs; show() is the output.

NameDateTime takenScore ___ / 40
  1. 1.⚙️ In an app, is speaking a command an input, processing or an output? (a) processing (b) output (c) input
  2. 2.True or false: a pop-up message is processing. (a) True (b) False
  3. 3.True or false: sorting the scores is an output. (a) False (b) True
  4. 4.⚙️ What number does this app show?
    let price = 95; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  5. 5.🔍 Which is the odd one out? (a) speaking a command (b) a beep sound (c) a buzz (vibration) (d) a result on screen
  6. 6.🔍 Which is the odd one out? (a) speaking a command (b) a result on screen (c) tapping a button (d) typing your age
  7. 7.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 20; // typed by the user
    line 2: let qty = 3; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 2 (c) line 4 (d) line 1
  8. 8.Which of these is processing? (a) adding up a bill (b) a buzz (vibration) (c) taking a photo (d) a beep sound
  9. 9.⚙️ What number does this app show?
    let km = 2; // typed by the user
    let metres = km * 1000;
    show(metres);
  10. 10.🔍 Which is the odd one out? (a) sorting the scores (b) typing your age (c) working out a tip (d) adding up a bill
  11. 11.⚙️ What number does this app show?
    let price = 70; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  12. 12.Which of these is an input? (a) a beep sound (b) a pop-up message (c) a buzz (vibration) (d) tapping a button
  13. 13.⚙️ What number does this app show?
    let price = 75; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  14. 14.Which of these is processing? (a) a beep sound (b) a buzz (vibration) (c) working out a tip (d) speaking a command
  15. 15.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 9; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 2 (c) line 1
  16. 16.⚙️ What number does this app show?
    let price = 20; // typed by the user
    let qty = 4; // typed by the user
    let total = price * qty;
    show(total);
  17. 17.True or false: sorting the scores is processing. (a) False (b) True
  18. 18.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 260; // typed by the user
    line 2: let off = 10; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 1 (b) line 2 (c) line 4 (d) line 3
  19. 19.⚙️ In an app, is taking a photo an input, processing or an output? (a) output (b) input (c) processing
  20. 20.🔍 Which is the odd one out? (a) tapping a button (b) typing your age (c) a pop-up message (d) taking a photo
  21. 21.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 90; // typed by the user
    line 2: let qty = 5; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 1 (c) line 2 (d) line 4
  22. 22.⚙️ What number does this app show?
    let bill = 155; // typed by the user
    let friends = 5; // typed by the user
    let share = bill / friends;
    show(share);
  23. 23.⚙️ In an app, is a beep sound an input, processing or an output? (a) processing (b) output (c) input
  24. 24.⚙️ In an app, is a result on screen an input, processing or an output? (a) processing (b) input (c) output
  25. 25.🔍 Which is the odd one out? (a) taking a photo (b) typing your age (c) working out a tip (d) tapping a button
  26. 26.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 390; // typed by the user
    line 2: let friends = 5; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 2 (b) line 1 (c) line 3 (d) line 4
  27. 27.⚙️ In an app, is adding up a bill an input, processing or an output? (a) processing (b) output (c) input
  28. 28.⚙️ What number does this app show?
    let price = 55; // typed by the user
    let qty = 2; // typed by the user
    let total = price * qty;
    show(total);
  29. 29.True or false: speaking a command is an input. (a) False (b) True
  30. 30.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 250; // typed by the user
    line 2: let off = 30; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 1 (b) line 4 (c) line 2 (d) line 3
  31. 31.True or false: sorting the scores is an input. (a) False (b) True
  32. 32.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 370; // typed by the user
    line 2: let friends = 5; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 1 (b) line 3 (c) line 2 (d) line 4
  33. 33.⚙️ What number does this app show?
    let km = 15; // typed by the user
    let metres = km * 1000;
    show(metres);
  34. 34.True or false: adding up a bill is processing. (a) True (b) False
  35. 35.True or false: a beep sound is processing. (a) True (b) False
  36. 36.Which of these is an input? (a) adding up a bill (b) typing your age (c) a beep sound (d) sorting the scores
  37. 37.Which of these is an input? (a) a pop-up message (b) speaking a command (c) adding up a bill (d) working out a tip
  38. 38.Which of these is an output? (a) adding up a bill (b) typing your age (c) speaking a command (d) a result on screen
  39. 39.True or false: speaking a command is an output. (a) False (b) True
  40. 40.🔍 Which is the odd one out? (a) adding up a bill (b) taking a photo (c) typing your age (d) speaking a command

Answer key

  1. input
  2. False
  3. False
  4. 570
  5. speaking a command
  6. a result on screen
  7. line 3
  8. adding up a bill
  9. 2000
  10. typing your age
  11. 420
  12. tapping a button
  13. 450
  14. working out a tip
  15. line 2
  16. 80
  17. True
  18. line 3
  19. input
  20. a pop-up message
  21. line 3
  22. 31
  23. output
  24. output
  25. working out a tip
  26. line 3
  27. processing
  28. 110
  29. True
  30. line 3
  31. False
  32. line 3
  33. 15000
  34. True
  35. False
  36. typing your age
  37. speaking a command
  38. a result on screen
  39. False
  40. adding up a bill

Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students