← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 180
  2. checking a password
  3. line 3
  4. line 3
  5. 16
  6. False
  7. taking a photo
  8. 430
  9. typing your age
  10. False
  11. sorting the scores
  12. output
  13. line 3
  14. processing
  15. input
  16. 2000
  17. False
  18. checking a password
  19. a pop-up message
  20. True
  21. line 3
  22. tapping a button
  23. 9000
  24. line 3
  25. input
  26. processing
  27. False
  28. False
  29. line 3
  30. speaking a command
  31. processing
  32. line 3
  33. False
  34. 7000
  35. a beep sound
  36. 58
  37. True
  38. True
  39. 11000
  40. 4000

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