← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. line 3
  3. True
  4. line 2
  5. a beep sound
  6. 69
  7. output
  8. a result on screen
  9. 340
  10. line 3
  11. processing
  12. line 2
  13. False
  14. processing
  15. output
  16. 31
  17. 45
  18. input
  19. 140
  20. input
  21. line 2
  22. a beep sound
  23. 150
  24. line 3
  25. working out a tip
  26. 330
  27. True
  28. line 3
  29. 110
  30. speaking a command
  31. False
  32. True
  33. 36
  34. 26
  35. False
  36. 42
  37. line 2
  38. 7000
  39. a pop-up message
  40. taking a photo

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