← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. 4000
  3. a pop-up message
  4. 2000
  5. output
  6. a pop-up message
  7. True
  8. adding up a bill
  9. sorting the scores
  10. output
  11. 72
  12. line 3
  13. processing
  14. tapping a button
  15. output
  16. typing your age
  17. processing
  18. 11000
  19. 100
  20. processing
  21. line 3
  22. working out a tip
  23. line 3
  24. False
  25. line 3
  26. 11
  27. 220
  28. working out a tip
  29. 14000
  30. a beep sound
  31. 65
  32. False
  33. line 3
  34. 8000
  35. line 3
  36. False
  37. 5000
  38. False
  39. True
  40. output

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