← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 12000
  2. 60
  3. 17
  4. line 3
  5. speaking a command
  6. a result on screen
  7. True
  8. output
  9. 90
  10. 57
  11. a pop-up message
  12. input
  13. 170
  14. tapping a button
  15. adding up a bill
  16. working out a tip
  17. 6000
  18. typing your age
  19. False
  20. taking a photo
  21. 10000
  22. processing
  23. line 3
  24. typing your age
  25. 120
  26. a beep sound
  27. 100
  28. False
  29. 56
  30. line 3
  31. 220
  32. 580
  33. 72
  34. taking a photo
  35. True
  36. True
  37. 9000
  38. line 3
  39. line 3
  40. checking a password

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