← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. 4000
  3. True
  4. 280
  5. speaking a command
  6. input
  7. speaking a command
  8. line 2
  9. a buzz (vibration)
  10. line 3
  11. a beep sound
  12. a beep sound
  13. False
  14. processing
  15. tapping a button
  16. a pop-up message
  17. line 2
  18. False
  19. input
  20. line 3
  21. checking a password
  22. 71
  23. line 3
  24. True
  25. a result on screen
  26. 61
  27. line 3
  28. 52
  29. False
  30. typing your age
  31. 13000
  32. False
  33. line 2
  34. processing
  35. a buzz (vibration)
  36. 70
  37. 200
  38. True
  39. True
  40. output

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