← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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