← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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