← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 330
  2. processing
  3. input
  4. line 3
  5. tapping a button
  6. input
  7. processing
  8. 9000
  9. True
  10. 30
  11. typing your age
  12. True
  13. tapping a button
  14. True
  15. True
  16. output
  17. working out a tip
  18. sorting the scores
  19. input
  20. line 3
  21. line 3
  22. 7000
  23. a result on screen
  24. adding up a bill
  25. input
  26. taking a photo
  27. line 3
  28. line 3
  29. 79
  30. 150
  31. 340
  32. 5000
  33. working out a tip
  34. sorting the scores
  35. checking a password
  36. 490
  37. line 2
  38. False
  39. line 3
  40. processing

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