← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. taking a photo
  3. False
  4. 300
  5. False
  6. True
  7. line 3
  8. line 3
  9. processing
  10. working out a tip
  11. processing
  12. line 3
  13. 54
  14. input
  15. tapping a button
  16. 270
  17. adding up a bill
  18. 480
  19. True
  20. 180
  21. working out a tip
  22. output
  23. 380
  24. 150
  25. output
  26. False
  27. line 3
  28. speaking a command
  29. input
  30. 100
  31. 43
  32. tapping a button
  33. checking a password
  34. 180
  35. line 2
  36. line 3
  37. adding up a bill
  38. output
  39. line 3
  40. processing

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