← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. line 3
  3. 325
  4. sorting the scores
  5. 9000
  6. line 2
  7. taking a photo
  8. True
  9. False
  10. line 3
  11. output
  12. False
  13. processing
  14. a beep sound
  15. 10000
  16. False
  17. True
  18. 550
  19. tapping a button
  20. 15000
  21. True
  22. adding up a bill
  23. False
  24. 140
  25. line 3
  26. line 3
  27. input
  28. line 3
  29. sorting the scores
  30. True
  31. line 2
  32. line 3
  33. input
  34. line 3
  35. True
  36. line 3
  37. typing your age
  38. 125
  39. line 3
  40. output

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