← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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