← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. adding up a bill
  3. tapping a button
  4. 150
  5. input
  6. working out a tip
  7. line 3
  8. a buzz (vibration)
  9. processing
  10. line 3
  11. 2000
  12. a beep sound
  13. input
  14. line 2
  15. False
  16. False
  17. 90
  18. checking a password
  19. 320
  20. a pop-up message
  21. False
  22. line 3
  23. a result on screen
  24. False
  25. output
  26. 80
  27. processing
  28. 160
  29. input
  30. 90
  31. output
  32. output
  33. checking a password
  34. 375
  35. a result on screen
  36. a pop-up message
  37. line 3
  38. line 3
  39. True
  40. 130

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