← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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