← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 150
  2. line 2
  3. tapping a button
  4. input
  5. 8000
  6. False
  7. line 3
  8. a result on screen
  9. processing
  10. a pop-up message
  11. checking a password
  12. 80
  13. 22
  14. False
  15. taking a photo
  16. input
  17. False
  18. False
  19. 73
  20. line 3
  21. a beep sound
  22. sorting the scores
  23. True
  24. line 3
  25. a pop-up message
  26. line 3
  27. a beep sound
  28. line 3
  29. line 3
  30. line 3
  31. line 3
  32. line 3
  33. line 2
  34. 10
  35. 180
  36. a result on screen
  37. False
  38. line 3
  39. 520
  40. line 3

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