← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. taking a photo
  3. line 2
  4. 80
  5. a beep sound
  6. line 3
  7. output
  8. 16
  9. 13000
  10. a buzz (vibration)
  11. a beep sound
  12. output
  13. a pop-up message
  14. 48
  15. 255
  16. tapping a button
  17. output
  18. speaking a command
  19. line 3
  20. line 2
  21. 475
  22. line 3
  23. True
  24. line 2
  25. False
  26. line 3
  27. line 3
  28. working out a tip
  29. 50
  30. 110
  31. 7000
  32. line 3
  33. line 3
  34. 200
  35. 390
  36. 100
  37. False
  38. False
  39. adding up a bill
  40. line 3

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