← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. processing
  4. True
  5. line 3
  6. a result on screen
  7. 2000
  8. 370
  9. typing your age
  10. 140
  11. line 3
  12. processing
  13. adding up a bill
  14. True
  15. 68
  16. speaking a command
  17. working out a tip
  18. False
  19. 46
  20. taking a photo
  21. line 2
  22. line 2
  23. False
  24. output
  25. line 2
  26. 28
  27. speaking a command
  28. 58
  29. working out a tip
  30. 260
  31. line 3
  32. input
  33. input
  34. tapping a button
  35. True
  36. line 3
  37. 380
  38. typing your age
  39. line 3
  40. 10

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