← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. input
  3. False
  4. 47
  5. 520
  6. 5000
  7. processing
  8. a beep sound
  9. line 3
  10. True
  11. output
  12. 80
  13. True
  14. True
  15. adding up a bill
  16. typing your age
  17. a beep sound
  18. 26
  19. processing
  20. 90
  21. a pop-up message
  22. True
  23. input
  24. input
  25. line 3
  26. line 3
  27. 240
  28. input
  29. line 3
  30. a buzz (vibration)
  31. processing
  32. speaking a command
  33. output
  34. True
  35. adding up a bill
  36. 38
  37. 10
  38. sorting the scores
  39. False
  40. 3000

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