← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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