← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 358 · 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.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 2; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 1 (c) line 2
  2. 2.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 5; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 1 (c) line 2
  3. 3.⚙️ What number does this app show?
    let bill = 76; // typed by the user
    let friends = 4; // typed by the user
    let share = bill / friends;
    show(share);
  4. 4.⚙️ In an app, is a pop-up message an input, processing or an output? (a) input (b) processing (c) output
  5. 5.⚙️ In an app, is working out a tip an input, processing or an output? (a) input (b) processing (c) output
  6. 6.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 55; // typed by the user
    line 2: let qty = 6; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 1 (c) line 4 (d) line 2
  7. 7.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 55; // typed by the user
    line 2: let qty = 2; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 2 (c) line 1 (d) line 4
  8. 8.Which of these is an input? (a) a result on screen (b) tapping a button (c) checking a password (d) a beep sound
  9. 9.⚙️ What number does this app show?
    let km = 14; // typed by the user
    let metres = km * 1000;
    show(metres);
  10. 10.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 45; // typed by the user
    line 2: let qty = 4; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  11. 11.⚙️ In an app, is sorting the scores an input, processing or an output? (a) input (b) processing (c) output
  12. 12.True or false: checking a password is an input. (a) False (b) True
  13. 13.⚙️ What number does this app show?
    let price = 130; // typed by the user
    let off = 40; // typed by the user
    let pay = price - off;
    show(pay);
  14. 14.⚙️ What number does this app show?
    let bill = 80; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  15. 15.⚙️ What number does this app show?
    let km = 7; // typed by the user
    let metres = km * 1000;
    show(metres);
  16. 16.True or false: a buzz (vibration) is processing. (a) True (b) False
  17. 17.⚙️ What number does this app show?
    let bill = 40; // typed by the user
    let friends = 4; // typed by the user
    let share = bill / friends;
    show(share);
  18. 18.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 65; // typed by the user
    line 2: let qty = 6; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 1 (c) line 2 (d) line 3
  19. 19.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 3; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 2 (c) line 3
  20. 20.True or false: working out a tip is processing. (a) True (b) False
  21. 21.Which of these is processing? (a) speaking a command (b) taking a photo (c) a pop-up message (d) working out a tip
  22. 22.Which of these is an output? (a) a buzz (vibration) (b) tapping a button (c) checking a password (d) working out a tip
  23. 23.Which of these is an input? (a) sorting the scores (b) a buzz (vibration) (c) typing your age (d) adding up a bill
  24. 24.🔍 Which is the odd one out? (a) a buzz (vibration) (b) a beep sound (c) a result on screen (d) adding up a bill
  25. 25.True or false: a pop-up message is an input. (a) False (b) True
  26. 26.Which of these is an input? (a) a result on screen (b) adding up a bill (c) a beep sound (d) speaking a command
  27. 27.⚙️ In an app, is a beep sound an input, processing or an output? (a) input (b) output (c) processing
  28. 28.True or false: typing your age is processing. (a) True (b) False
  29. 29.🔍 Which is the odd one out? (a) a buzz (vibration) (b) taking a photo (c) tapping a button (d) speaking a command
  30. 30.Which of these is an output? (a) tapping a button (b) typing your age (c) adding up a bill (d) a pop-up message
  31. 31.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) processing (b) output (c) input
  32. 32.True or false: sorting the scores is an input. (a) False (b) True
  33. 33.⚙️ What number does this app show?
    let price = 40; // typed by the user
    let qty = 3; // typed by the user
    let total = price * qty;
    show(total);
  34. 34.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 128; // typed by the user
    line 2: let friends = 2; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 1 (b) line 4 (c) line 3 (d) line 2
  35. 35.⚙️ In an app, is taking a photo an input, processing or an output? (a) output (b) processing (c) input
  36. 36.⚙️ What number does this app show?
    let price = 270; // typed by the user
    let off = 50; // typed by the user
    let pay = price - off;
    show(pay);
  37. 37.🔍 Which is the odd one out? (a) speaking a command (b) a pop-up message (c) a buzz (vibration) (d) a result on screen
  38. 38.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 15; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 2 (c) line 3
  39. 39.⚙️ What number does this app show?
    let price = 10; // typed by the user
    let qty = 3; // typed by the user
    let total = price * qty;
    show(total);
  40. 40.Which of these is an input? (a) checking a password (b) taking a photo (c) a result on screen (d) a beep sound

Answer key

  1. line 2
  2. line 2
  3. 19
  4. output
  5. processing
  6. line 3
  7. line 3
  8. tapping a button
  9. 14000
  10. line 3
  11. processing
  12. False
  13. 90
  14. 40
  15. 7000
  16. False
  17. 10
  18. line 3
  19. line 2
  20. True
  21. working out a tip
  22. a buzz (vibration)
  23. typing your age
  24. adding up a bill
  25. False
  26. speaking a command
  27. output
  28. False
  29. a buzz (vibration)
  30. a pop-up message
  31. output
  32. False
  33. 120
  34. line 3
  35. input
  36. 220
  37. speaking a command
  38. line 2
  39. 30
  40. taking a photo

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