← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 125
  2. line 3
  3. 12000
  4. taking a photo
  5. 13000
  6. input
  7. output
  8. output
  9. a result on screen
  10. a pop-up message
  11. 15000
  12. speaking a command
  13. 50
  14. tapping a button
  15. adding up a bill
  16. checking a password
  17. False
  18. 66
  19. line 2
  20. False
  21. 38
  22. line 3
  23. True
  24. True
  25. False
  26. 53
  27. a buzz (vibration)
  28. speaking a command
  29. sorting the scores
  30. typing your age
  31. working out a tip
  32. line 3
  33. 600
  34. 270
  35. output
  36. 64
  37. True
  38. typing your age
  39. line 2
  40. output

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