← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. 31
  3. adding up a bill
  4. 45
  5. line 2
  6. True
  7. line 2
  8. tapping a button
  9. typing your age
  10. False
  11. processing
  12. line 2
  13. 2000
  14. True
  15. line 3
  16. line 2
  17. 150
  18. 4000
  19. a result on screen
  20. adding up a bill
  21. True
  22. 44
  23. taking a photo
  24. speaking a command
  25. 200
  26. line 3
  27. False
  28. a buzz (vibration)
  29. 170
  30. 9000
  31. False
  32. sorting the scores
  33. input
  34. a pop-up message
  35. working out a tip
  36. line 3
  37. line 3
  38. a result on screen
  39. line 3
  40. line 3

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