← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 200
  2. a result on screen
  3. 520
  4. 68
  5. input
  6. 14000
  7. True
  8. adding up a bill
  9. 310
  10. line 2
  11. line 3
  12. line 3
  13. a beep sound
  14. 125
  15. 225
  16. 60
  17. 2000
  18. False
  19. 28
  20. processing
  21. 7000
  22. line 3
  23. False
  24. working out a tip
  25. line 3
  26. False
  27. sorting the scores
  28. typing your age
  29. typing your age
  30. 100
  31. line 2
  32. tapping a button
  33. 135
  34. checking a password
  35. line 3
  36. line 3
  37. 120
  38. a pop-up message
  39. 150
  40. line 2

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