← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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