← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. speaking a command
  2. 2000
  3. line 3
  4. adding up a bill
  5. sorting the scores
  6. 450
  7. checking a password
  8. output
  9. line 3
  10. True
  11. output
  12. False
  13. 300
  14. a buzz (vibration)
  15. line 3
  16. 70
  17. 23
  18. taking a photo
  19. working out a tip
  20. 190
  21. 560
  22. True
  23. 77
  24. input
  25. True
  26. line 3
  27. processing
  28. speaking a command
  29. line 3
  30. 285
  31. a beep sound
  32. processing
  33. line 3
  34. False
  35. False
  36. output
  37. 6000
  38. line 3
  39. taking a photo
  40. a result on screen

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