← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 310
  2. tapping a button
  3. a buzz (vibration)
  4. output
  5. 15000
  6. checking a password
  7. processing
  8. 370
  9. a result on screen
  10. output
  11. True
  12. 75
  13. typing your age
  14. 340
  15. False
  16. 160
  17. 20
  18. True
  19. 550
  20. False
  21. 260
  22. working out a tip
  23. a pop-up message
  24. 300
  25. adding up a bill
  26. processing
  27. adding up a bill
  28. False
  29. False
  30. input
  31. taking a photo
  32. False
  33. line 3
  34. 75
  35. line 3
  36. line 3
  37. output
  38. False
  39. speaking a command
  40. 510

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