← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. a beep sound
  3. line 3
  4. 14
  5. a pop-up message
  6. processing
  7. 375
  8. input
  9. 10000
  10. speaking a command
  11. 270
  12. sorting the scores
  13. line 3
  14. typing your age
  15. line 3
  16. 80
  17. line 3
  18. 12000
  19. 180
  20. output
  21. a buzz (vibration)
  22. 8000
  23. output
  24. line 3
  25. tapping a button
  26. 2000
  27. a pop-up message
  28. False
  29. a beep sound
  30. typing your age
  31. 500
  32. 210
  33. True
  34. 58
  35. input
  36. line 3
  37. False
  38. 120
  39. processing
  40. working out a tip

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