← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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