← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 300
  2. False
  3. line 3
  4. 280
  5. taking a photo
  6. a result on screen
  7. line 3
  8. a pop-up message
  9. line 3
  10. a pop-up message
  11. 45
  12. 72
  13. a beep sound
  14. 100
  15. output
  16. True
  17. input
  18. True
  19. input
  20. a beep sound
  21. sorting the scores
  22. processing
  23. 78
  24. 2000
  25. 54
  26. processing
  27. processing
  28. True
  29. line 3
  30. True
  31. a buzz (vibration)
  32. input
  33. 53
  34. a buzz (vibration)
  35. 40
  36. line 3
  37. sorting the scores
  38. processing
  39. line 3
  40. input

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