← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. a result on screen
  3. a result on screen
  4. sorting the scores
  5. a beep sound
  6. adding up a bill
  7. line 3
  8. 70
  9. 23
  10. processing
  11. working out a tip
  12. line 3
  13. sorting the scores
  14. False
  15. 340
  16. line 3
  17. input
  18. 150
  19. line 2
  20. 420
  21. False
  22. taking a photo
  23. output
  24. 100
  25. True
  26. a pop-up message
  27. False
  28. line 3
  29. 3000
  30. False
  31. line 3
  32. True
  33. False
  34. a beep sound
  35. output
  36. 100
  37. tapping a button
  38. a buzz (vibration)
  39. line 3
  40. 240

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