← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. input
  3. speaking a command
  4. input
  5. False
  6. working out a tip
  7. True
  8. 6000
  9. 46
  10. 450
  11. False
  12. 15000
  13. 21
  14. taking a photo
  15. line 2
  16. 240
  17. sorting the scores
  18. line 2
  19. adding up a bill
  20. 51
  21. 14000
  22. 60
  23. True
  24. a result on screen
  25. working out a tip
  26. line 3
  27. 130
  28. a beep sound
  29. False
  30. input
  31. output
  32. 23
  33. processing
  34. a pop-up message
  35. adding up a bill
  36. a beep sound
  37. input
  38. line 3
  39. output
  40. tapping a button

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