← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. output
  4. input
  5. line 3
  6. typing your age
  7. line 3
  8. a beep sound
  9. True
  10. typing your age
  11. processing
  12. False
  13. 53
  14. 58
  15. 4000
  16. 300
  17. line 3
  18. adding up a bill
  19. line 3
  20. False
  21. processing
  22. input
  23. a result on screen
  24. 195
  25. 58
  26. True
  27. True
  28. sorting the scores
  29. taking a photo
  30. line 3
  31. line 3
  32. 14000
  33. 7000
  34. working out a tip
  35. 35
  36. tapping a button
  37. False
  38. False
  39. a pop-up message
  40. 210

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