← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 90
  2. 240
  3. line 3
  4. typing your age
  5. True
  6. 80
  7. 110
  8. a pop-up message
  9. False
  10. 165
  11. 600
  12. adding up a bill
  13. sorting the scores
  14. 130
  15. checking a password
  16. 12000
  17. 9000
  18. a beep sound
  19. output
  20. taking a photo
  21. line 3
  22. output
  23. 33
  24. 420
  25. speaking a command
  26. line 2
  27. input
  28. a buzz (vibration)
  29. 27
  30. speaking a command
  31. 150
  32. True
  33. True
  34. a beep sound
  35. typing your age
  36. 210
  37. processing
  38. working out a tip
  39. line 2
  40. adding up a bill

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