← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 74
  2. adding up a bill
  3. checking a password
  4. line 3
  5. a buzz (vibration)
  6. 90
  7. a buzz (vibration)
  8. a result on screen
  9. 50
  10. True
  11. checking a password
  12. a pop-up message
  13. processing
  14. False
  15. input
  16. a beep sound
  17. 56
  18. output
  19. line 3
  20. typing your age
  21. line 3
  22. True
  23. line 2
  24. line 3
  25. 360
  26. line 3
  27. 3000
  28. working out a tip
  29. line 2
  30. False
  31. output
  32. line 3
  33. True
  34. processing
  35. 50
  36. line 3
  37. input
  38. tapping a button
  39. taking a photo
  40. 6000

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