← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. output
  3. working out a tip
  4. line 2
  5. False
  6. line 3
  7. True
  8. speaking a command
  9. adding up a bill
  10. tapping a button
  11. line 3
  12. False
  13. False
  14. a beep sound
  15. processing
  16. input
  17. a pop-up message
  18. working out a tip
  19. 13000
  20. False
  21. False
  22. line 3
  23. 150
  24. False
  25. True
  26. input
  27. True
  28. a result on screen
  29. True
  30. 250
  31. adding up a bill
  32. 12
  33. a pop-up message
  34. typing your age
  35. line 3
  36. line 3
  37. line 3
  38. checking a password
  39. False
  40. 580

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