← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. output
  3. 310
  4. line 3
  5. line 3
  6. 5000
  7. tapping a button
  8. a pop-up message
  9. False
  10. line 3
  11. taking a photo
  12. line 3
  13. line 2
  14. a result on screen
  15. input
  16. False
  17. a beep sound
  18. a pop-up message
  19. line 3
  20. a buzz (vibration)
  21. output
  22. output
  23. 16
  24. True
  25. line 2
  26. 3000
  27. speaking a command
  28. typing your age
  29. sorting the scores
  30. line 3
  31. 80
  32. a result on screen
  33. line 3
  34. 41
  35. False
  36. 500
  37. line 3
  38. 520
  39. line 3
  40. a buzz (vibration)

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