← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 560
  2. 130
  3. 74
  4. line 3
  5. sorting the scores
  6. working out a tip
  7. adding up a bill
  8. 39
  9. 570
  10. typing your age
  11. processing
  12. input
  13. line 3
  14. 47
  15. 40
  16. False
  17. tapping a button
  18. 51
  19. False
  20. False
  21. input
  22. output
  23. 190
  24. checking a password
  25. 490
  26. line 2
  27. 160
  28. False
  29. 220
  30. processing
  31. line 2
  32. True
  33. 375
  34. 200
  35. True
  36. line 3
  37. input
  38. 450
  39. line 2
  40. line 3

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