← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. True
  3. speaking a command
  4. line 3
  5. a buzz (vibration)
  6. a pop-up message
  7. output
  8. 520
  9. 390
  10. input
  11. 71
  12. input
  13. 430
  14. 60
  15. processing
  16. working out a tip
  17. 4000
  18. tapping a button
  19. input
  20. True
  21. 10000
  22. line 2
  23. processing
  24. 450
  25. False
  26. processing
  27. True
  28. output
  29. line 3
  30. False
  31. line 3
  32. line 3
  33. line 3
  34. line 2
  35. line 3
  36. 8000
  37. line 3
  38. 31
  39. False
  40. output

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