← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. line 3
  3. working out a tip
  4. a pop-up message
  5. 40
  6. line 2
  7. False
  8. 40
  9. line 3
  10. typing your age
  11. a result on screen
  12. 225
  13. input
  14. line 3
  15. line 3
  16. False
  17. line 3
  18. 260
  19. False
  20. line 3
  21. taking a photo
  22. input
  23. True
  24. processing
  25. line 2
  26. tapping a button
  27. line 2
  28. input
  29. processing
  30. checking a password
  31. False
  32. True
  33. processing
  34. 490
  35. False
  36. taking a photo
  37. processing
  38. speaking a command
  39. False
  40. line 3

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