← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 190
  2. input
  3. line 3
  4. a result on screen
  5. True
  6. 140
  7. line 3
  8. line 3
  9. a beep sound
  10. 375
  11. processing
  12. taking a photo
  13. a buzz (vibration)
  14. line 3
  15. working out a tip
  16. sorting the scores
  17. typing your age
  18. line 3
  19. 300
  20. line 3
  21. True
  22. line 3
  23. 400
  24. 570
  25. a pop-up message
  26. line 2
  27. line 3
  28. processing
  29. line 2
  30. True
  31. 67
  32. 410
  33. line 3
  34. typing your age
  35. input
  36. False
  37. line 3
  38. 4000
  39. True
  40. True

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