← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 520
  2. False
  3. sorting the scores
  4. True
  5. line 3
  6. line 3
  7. output
  8. adding up a bill
  9. a pop-up message
  10. output
  11. 30
  12. True
  13. speaking a command
  14. line 3
  15. line 3
  16. line 3
  17. True
  18. line 3
  19. taking a photo
  20. output
  21. sorting the scores
  22. typing your age
  23. 390
  24. 140
  25. 6000
  26. True
  27. 8000
  28. a beep sound
  29. line 3
  30. a pop-up message
  31. False
  32. True
  33. line 2
  34. checking a password
  35. line 3
  36. 26
  37. line 3
  38. line 3
  39. adding up a bill
  40. a result on screen

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