← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 220
  2. line 2
  3. output
  4. False
  5. a buzz (vibration)
  6. output
  7. a pop-up message
  8. line 3
  9. working out a tip
  10. line 3
  11. output
  12. 52
  13. line 2
  14. checking a password
  15. line 2
  16. line 3
  17. input
  18. working out a tip
  19. 7000
  20. False
  21. line 3
  22. line 3
  23. 17
  24. taking a photo
  25. speaking a command
  26. processing
  27. input
  28. True
  29. True
  30. a beep sound
  31. sorting the scores
  32. speaking a command
  33. typing your age
  34. False
  35. line 3
  36. 375
  37. False
  38. line 3
  39. 30
  40. 75

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