← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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