← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. 52
  3. line 3
  4. tapping a button
  5. input
  6. processing
  7. line 2
  8. line 2
  9. adding up a bill
  10. True
  11. line 3
  12. line 3
  13. a beep sound
  14. a buzz (vibration)
  15. typing your age
  16. 10000
  17. line 3
  18. line 3
  19. True
  20. 170
  21. output
  22. a result on screen
  23. False
  24. 290
  25. 160
  26. 53
  27. working out a tip
  28. line 2
  29. output
  30. 120
  31. taking a photo
  32. output
  33. sorting the scores
  34. True
  35. processing
  36. processing
  37. sorting the scores
  38. True
  39. True
  40. 480

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