← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 9000
  2. tapping a button
  3. 340
  4. line 2
  5. line 2
  6. a buzz (vibration)
  7. 70
  8. True
  9. working out a tip
  10. 160
  11. 150
  12. 420
  13. working out a tip
  14. input
  15. True
  16. processing
  17. 24
  18. line 3
  19. line 3
  20. line 2
  21. False
  22. 175
  23. typing your age
  24. False
  25. input
  26. line 3
  27. False
  28. speaking a command
  29. 6000
  30. a buzz (vibration)
  31. a beep sound
  32. 380
  33. a result on screen
  34. line 3
  35. checking a password
  36. line 3
  37. 475
  38. typing your age
  39. True
  40. a result on screen

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