← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. 180
  3. working out a tip
  4. line 2
  5. output
  6. a buzz (vibration)
  7. line 3
  8. line 3
  9. False
  10. 130
  11. line 3
  12. line 2
  13. False
  14. input
  15. line 3
  16. sorting the scores
  17. False
  18. line 3
  19. line 3
  20. a result on screen
  21. 8000
  22. 78
  23. True
  24. sorting the scores
  25. True
  26. processing
  27. False
  28. taking a photo
  29. line 3
  30. line 3
  31. 5000
  32. 63
  33. True
  34. tapping a button
  35. line 2
  36. True
  37. 19
  38. processing
  39. 480
  40. typing your age

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