← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 15
  3. line 3
  4. 280
  5. output
  6. a result on screen
  7. True
  8. 66
  9. False
  10. 380
  11. input
  12. working out a tip
  13. working out a tip
  14. typing your age
  15. line 3
  16. True
  17. checking a password
  18. True
  19. line 2
  20. processing
  21. True
  22. a pop-up message
  23. output
  24. processing
  25. speaking a command
  26. 59
  27. 11000
  28. 9000
  29. a pop-up message
  30. True
  31. taking a photo
  32. line 2
  33. 50
  34. 90
  35. line 2
  36. input
  37. False
  38. line 3
  39. speaking a command
  40. 160

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