← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. 3000
  3. line 3
  4. 13000
  5. output
  6. 260
  7. input
  8. line 3
  9. taking a photo
  10. True
  11. 35
  12. line 3
  13. line 3
  14. False
  15. input
  16. True
  17. 26
  18. line 3
  19. working out a tip
  20. checking a password
  21. False
  22. True
  23. line 3
  24. line 3
  25. input
  26. 49
  27. adding up a bill
  28. line 3
  29. 12000
  30. 48
  31. 14000
  32. line 3
  33. line 3
  34. processing
  35. True
  36. tapping a button
  37. 440
  38. output
  39. 19
  40. a result on screen

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