← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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