← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 450
  3. line 3
  4. True
  5. line 3
  6. line 2
  7. taking a photo
  8. working out a tip
  9. tapping a button
  10. checking a password
  11. 25
  12. a buzz (vibration)
  13. True
  14. processing
  15. output
  16. line 3
  17. taking a photo
  18. line 2
  19. typing your age
  20. line 3
  21. 56
  22. input
  23. True
  24. sorting the scores
  25. output
  26. 190
  27. 140
  28. line 3
  29. line 2
  30. 50
  31. speaking a command
  32. tapping a button
  33. input
  34. a pop-up message
  35. line 3
  36. a result on screen
  37. 13000
  38. a result on screen
  39. line 3
  40. adding up a bill

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