← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. 24
  3. False
  4. False
  5. a beep sound
  6. line 3
  7. typing your age
  8. 9000
  9. line 3
  10. 58
  11. 23
  12. False
  13. line 3
  14. a pop-up message
  15. checking a password
  16. checking a password
  17. line 3
  18. adding up a bill
  19. speaking a command
  20. 180
  21. line 3
  22. sorting the scores
  23. a result on screen
  24. adding up a bill
  25. output
  26. False
  27. output
  28. working out a tip
  29. 12000
  30. line 3
  31. a result on screen
  32. a buzz (vibration)
  33. processing
  34. line 2
  35. input
  36. line 3
  37. a buzz (vibration)
  38. tapping a button
  39. 470
  40. a beep sound

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