← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. True
  3. 44
  4. False
  5. 425
  6. working out a tip
  7. typing your age
  8. input
  9. output
  10. False
  11. False
  12. line 2
  13. line 3
  14. processing
  15. adding up a bill
  16. 200
  17. 210
  18. taking a photo
  19. a pop-up message
  20. 550
  21. checking a password
  22. output
  23. tapping a button
  24. line 3
  25. sorting the scores
  26. line 3
  27. False
  28. line 3
  29. processing
  30. line 2
  31. working out a tip
  32. typing your age
  33. False
  34. 15000
  35. 430
  36. False
  37. adding up a bill
  38. line 3
  39. line 3
  40. 290

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