← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 12000
  2. a beep sound
  3. False
  4. False
  5. line 3
  6. line 3
  7. output
  8. 73
  9. processing
  10. input
  11. output
  12. line 3
  13. 180
  14. False
  15. 225
  16. True
  17. line 3
  18. taking a photo
  19. checking a password
  20. input
  21. 360
  22. line 3
  23. 79
  24. line 3
  25. line 3
  26. taking a photo
  27. a buzz (vibration)
  28. processing
  29. processing
  30. line 3
  31. True
  32. True
  33. False
  34. speaking a command
  35. 90
  36. input
  37. processing
  38. 15000
  39. a result on screen
  40. a result on screen

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