← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 2000
  2. a pop-up message
  3. speaking a command
  4. line 3
  5. tapping a button
  6. 570
  7. 120
  8. True
  9. line 2
  10. line 3
  11. a result on screen
  12. typing your age
  13. False
  14. True
  15. 270
  16. False
  17. 360
  18. line 3
  19. input
  20. True
  21. speaking a command
  22. True
  23. line 2
  24. 4000
  25. output
  26. adding up a bill
  27. 69
  28. False
  29. line 3
  30. typing your age
  31. line 3
  32. adding up a bill
  33. line 3
  34. line 3
  35. False
  36. sorting the scores
  37. line 3
  38. working out a tip
  39. checking a password
  40. 380

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