← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 210
  2. False
  3. line 3
  4. sorting the scores
  5. 22
  6. 5000
  7. True
  8. a buzz (vibration)
  9. False
  10. 260
  11. sorting the scores
  12. 46
  13. 7000
  14. input
  15. 15000
  16. line 3
  17. checking a password
  18. True
  19. line 3
  20. taking a photo
  21. processing
  22. line 3
  23. tapping a button
  24. working out a tip
  25. 100
  26. 100
  27. 220
  28. a result on screen
  29. line 3
  30. a result on screen
  31. False
  32. output
  33. processing
  34. False
  35. taking a photo
  36. False
  37. True
  38. line 3
  39. 47
  40. 300

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