← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 30
  2. a buzz (vibration)
  3. checking a password
  4. a buzz (vibration)
  5. 70
  6. 30
  7. a pop-up message
  8. typing your age
  9. 2000
  10. True
  11. True
  12. working out a tip
  13. a result on screen
  14. input
  15. speaking a command
  16. a beep sound
  17. 380
  18. tapping a button
  19. working out a tip
  20. line 3
  21. 130
  22. output
  23. input
  24. line 3
  25. False
  26. line 3
  27. output
  28. True
  29. line 3
  30. line 3
  31. False
  32. sorting the scores
  33. typing your age
  34. speaking a command
  35. 230
  36. input
  37. 5000
  38. 120
  39. output
  40. 380

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