← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 2000
  2. 340
  3. processing
  4. True
  5. 21
  6. processing
  7. 520
  8. 200
  9. working out a tip
  10. line 3
  11. speaking a command
  12. line 3
  13. 380
  14. 25
  15. sorting the scores
  16. speaking a command
  17. line 3
  18. processing
  19. False
  20. False
  21. sorting the scores
  22. 450
  23. 490
  24. 67
  25. 480
  26. a beep sound
  27. line 3
  28. typing your age
  29. True
  30. working out a tip
  31. 36
  32. False
  33. 50
  34. input
  35. line 3
  36. line 2
  37. line 3
  38. line 2
  39. 7000
  40. True

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