← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 69
  3. line 3
  4. True
  5. 340
  6. input
  7. taking a photo
  8. processing
  9. 180
  10. False
  11. line 3
  12. a result on screen
  13. working out a tip
  14. True
  15. input
  16. line 3
  17. checking a password
  18. 30
  19. typing your age
  20. 100
  21. line 3
  22. line 3
  23. sorting the scores
  24. adding up a bill
  25. 230
  26. adding up a bill
  27. line 3
  28. a beep sound
  29. taking a photo
  30. 210
  31. output
  32. 38
  33. True
  34. input
  35. line 3
  36. line 3
  37. speaking a command
  38. 90
  39. True
  40. line 3

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