← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. tapping a button
  3. True
  4. 20
  5. 510
  6. speaking a command
  7. sorting the scores
  8. input
  9. 350
  10. checking a password
  11. 3000
  12. output
  13. working out a tip
  14. a beep sound
  15. 34
  16. line 3
  17. 200
  18. a buzz (vibration)
  19. True
  20. 13
  21. False
  22. adding up a bill
  23. input
  24. True
  25. line 3
  26. output
  27. a pop-up message
  28. 250
  29. output
  30. line 3
  31. adding up a bill
  32. speaking a command
  33. True
  34. False
  35. processing
  36. typing your age
  37. line 3
  38. 160
  39. 26
  40. input

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