← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 360
  3. typing your age
  4. processing
  5. line 2
  6. working out a tip
  7. 240
  8. line 3
  9. line 3
  10. line 3
  11. True
  12. 130
  13. 350
  14. 4000
  15. adding up a bill
  16. 135
  17. True
  18. taking a photo
  19. checking a password
  20. input
  21. 15000
  22. a result on screen
  23. input
  24. working out a tip
  25. True
  26. 160
  27. adding up a bill
  28. a pop-up message
  29. line 3
  30. True
  31. line 2
  32. a result on screen
  33. tapping a button
  34. processing
  35. line 3
  36. False
  37. 12000
  38. a buzz (vibration)
  39. line 3
  40. input

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