← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 69
  2. speaking a command
  3. checking a password
  4. True
  5. input
  6. adding up a bill
  7. input
  8. False
  9. a pop-up message
  10. 33
  11. line 3
  12. working out a tip
  13. line 3
  14. line 2
  15. working out a tip
  16. sorting the scores
  17. output
  18. 12000
  19. False
  20. 3000
  21. line 3
  22. a buzz (vibration)
  23. 120
  24. 15000
  25. True
  26. taking a photo
  27. 350
  28. line 2
  29. adding up a bill
  30. line 3
  31. line 3
  32. line 3
  33. a result on screen
  34. 480
  35. line 2
  36. output
  37. 100
  38. sorting the scores
  39. False
  40. taking a photo

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