← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 5000
  2. line 3
  3. 43
  4. output
  5. output
  6. line 3
  7. True
  8. tapping a button
  9. a pop-up message
  10. processing
  11. typing your age
  12. sorting the scores
  13. line 3
  14. input
  15. 270
  16. a pop-up message
  17. taking a photo
  18. 42
  19. a result on screen
  20. 70
  21. 9000
  22. 300
  23. 76
  24. output
  25. 19
  26. 530
  27. 2000
  28. working out a tip
  29. a result on screen
  30. 560
  31. a beep sound
  32. line 3
  33. False
  34. processing
  35. adding up a bill
  36. a buzz (vibration)
  37. False
  38. input
  39. 63
  40. processing

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