← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. typing your age
  3. a result on screen
  4. 13000
  5. input
  6. processing
  7. 150
  8. a pop-up message
  9. a result on screen
  10. False
  11. line 3
  12. speaking a command
  13. 14000
  14. output
  15. 5000
  16. 3000
  17. adding up a bill
  18. 40
  19. line 2
  20. False
  21. True
  22. line 3
  23. True
  24. 360
  25. tapping a button
  26. line 3
  27. 56
  28. line 3
  29. 6000
  30. line 3
  31. 60
  32. line 3
  33. line 2
  34. a pop-up message
  35. 9000
  36. 11000
  37. 120
  38. 400
  39. line 3
  40. 360

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