← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. True
  3. True
  4. line 3
  5. input
  6. 300
  7. input
  8. 46
  9. speaking a command
  10. 56
  11. adding up a bill
  12. 4000
  13. line 3
  14. 39
  15. a buzz (vibration)
  16. False
  17. line 3
  18. line 3
  19. 64
  20. 280
  21. line 3
  22. a pop-up message
  23. False
  24. line 3
  25. tapping a button
  26. processing
  27. speaking a command
  28. processing
  29. 34
  30. adding up a bill
  31. False
  32. taking a photo
  33. 30
  34. typing your age
  35. line 3
  36. False
  37. output
  38. line 3
  39. False
  40. typing your age

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