← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. output
  3. input
  4. True
  5. line 3
  6. False
  7. a result on screen
  8. 280
  9. 9000
  10. True
  11. True
  12. a result on screen
  13. 180
  14. False
  15. adding up a bill
  16. taking a photo
  17. a pop-up message
  18. 390
  19. 7000
  20. adding up a bill
  21. processing
  22. processing
  23. typing your age
  24. line 3
  25. 12
  26. tapping a button
  27. True
  28. output
  29. tapping a button
  30. a pop-up message
  31. checking a password
  32. 63
  33. output
  34. working out a tip
  35. a beep sound
  36. line 3
  37. taking a photo
  38. line 3
  39. line 3
  40. 68

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