← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. True
  3. 200
  4. a buzz (vibration)
  5. typing your age
  6. False
  7. tapping a button
  8. True
  9. True
  10. processing
  11. 12000
  12. 260
  13. 200
  14. working out a tip
  15. output
  16. a result on screen
  17. adding up a bill
  18. output
  19. line 3
  20. line 2
  21. line 2
  22. False
  23. 43
  24. output
  25. tapping a button
  26. True
  27. 13000
  28. a beep sound
  29. input
  30. a pop-up message
  31. line 3
  32. line 2
  33. processing
  34. line 2
  35. line 3
  36. 360
  37. line 3
  38. 16
  39. line 3
  40. line 3

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