← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. line 3
  3. line 2
  4. working out a tip
  5. line 3
  6. 18
  7. True
  8. 240
  9. speaking a command
  10. checking a password
  11. line 3
  12. False
  13. a beep sound
  14. processing
  15. False
  16. line 3
  17. line 3
  18. typing your age
  19. line 3
  20. line 2
  21. sorting the scores
  22. processing
  23. output
  24. line 3
  25. 2000
  26. line 3
  27. 4000
  28. 10000
  29. False
  30. taking a photo
  31. a result on screen
  32. line 3
  33. input
  34. tapping a button
  35. 520
  36. line 3
  37. False
  38. input
  39. 41
  40. processing

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