← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 75
  3. 4000
  4. line 3
  5. 280
  6. 13
  7. processing
  8. 420
  9. a pop-up message
  10. False
  11. 80
  12. a pop-up message
  13. processing
  14. 52
  15. 160
  16. 74
  17. 380
  18. a result on screen
  19. tapping a button
  20. True
  21. sorting the scores
  22. line 3
  23. output
  24. 9000
  25. True
  26. working out a tip
  27. a buzz (vibration)
  28. checking a password
  29. speaking a command
  30. input
  31. 12
  32. 330
  33. True
  34. False
  35. line 3
  36. 71
  37. a result on screen
  38. adding up a bill
  39. 13
  40. input

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