← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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