← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 42
  3. processing
  4. 30
  5. a pop-up message
  6. input
  7. False
  8. typing your age
  9. line 3
  10. working out a tip
  11. checking a password
  12. False
  13. line 3
  14. a buzz (vibration)
  15. 110
  16. a buzz (vibration)
  17. 25
  18. 210
  19. 24
  20. working out a tip
  21. 480
  22. 27
  23. input
  24. False
  25. True
  26. a result on screen
  27. 19
  28. taking a photo
  29. True
  30. a beep sound
  31. output
  32. 11000
  33. False
  34. line 3
  35. 4000
  36. processing
  37. output
  38. input
  39. 260
  40. 18

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