← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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