← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. 150
  3. 150
  4. line 3
  5. 38
  6. 53
  7. 46
  8. 69
  9. processing
  10. output
  11. line 3
  12. False
  13. output
  14. processing
  15. working out a tip
  16. 17
  17. checking a password
  18. 180
  19. line 3
  20. a beep sound
  21. line 2
  22. 520
  23. True
  24. 260
  25. adding up a bill
  26. a result on screen
  27. 120
  28. line 2
  29. line 3
  30. False
  31. 4000
  32. False
  33. working out a tip
  34. processing
  35. line 3
  36. line 3
  37. 65
  38. a buzz (vibration)
  39. line 3
  40. 360

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