← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. sorting the scores
  3. 100
  4. input
  5. input
  6. 10
  7. a pop-up message
  8. line 2
  9. speaking a command
  10. line 3
  11. line 3
  12. input
  13. 38
  14. line 3
  15. line 3
  16. working out a tip
  17. 250
  18. line 3
  19. tapping a button
  20. adding up a bill
  21. line 3
  22. False
  23. output
  24. input
  25. 230
  26. line 2
  27. a result on screen
  28. False
  29. taking a photo
  30. True
  31. a result on screen
  32. 120
  33. line 3
  34. typing your age
  35. line 3
  36. 45
  37. 61
  38. output
  39. True
  40. processing

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