← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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