← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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