← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 50
  2. a beep sound
  3. 7000
  4. input
  5. line 2
  6. working out a tip
  7. 510
  8. processing
  9. sorting the scores
  10. line 3
  11. typing your age
  12. checking a password
  13. 10
  14. False
  15. input
  16. tapping a button
  17. processing
  18. a beep sound
  19. a result on screen
  20. line 3
  21. input
  22. line 2
  23. input
  24. a buzz (vibration)
  25. 2000
  26. line 3
  27. 8000
  28. a buzz (vibration)
  29. False
  30. taking a photo
  31. working out a tip
  32. line 3
  33. 39
  34. adding up a bill
  35. line 3
  36. True
  37. 25
  38. line 3
  39. line 3
  40. line 2

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