← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. processing
  3. a pop-up message
  4. 5000
  5. 15000
  6. 4000
  7. input
  8. working out a tip
  9. line 3
  10. processing
  11. line 2
  12. False
  13. 140
  14. output
  15. adding up a bill
  16. speaking a command
  17. a beep sound
  18. output
  19. False
  20. a buzz (vibration)
  21. True
  22. 33
  23. a result on screen
  24. sorting the scores
  25. line 2
  26. a result on screen
  27. input
  28. line 2
  29. 530
  30. False
  31. 330
  32. line 3
  33. taking a photo
  34. line 3
  35. 67
  36. adding up a bill
  37. 40
  38. line 3
  39. line 3
  40. line 2

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