← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. checking a password
  3. input
  4. output
  5. a buzz (vibration)
  6. False
  7. a beep sound
  8. processing
  9. line 3
  10. 425
  11. 350
  12. 10000
  13. False
  14. True
  15. output
  16. sorting the scores
  17. 73
  18. False
  19. False
  20. 14000
  21. processing
  22. True
  23. processing
  24. 300
  25. tapping a button
  26. adding up a bill
  27. True
  28. 9000
  29. a buzz (vibration)
  30. typing your age
  31. 90
  32. line 3
  33. line 3
  34. checking a password
  35. 170
  36. speaking a command
  37. adding up a bill
  38. 29
  39. line 2
  40. speaking a command

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