← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. False
  3. 330
  4. processing
  5. 390
  6. line 3
  7. line 3
  8. typing your age
  9. checking a password
  10. checking a password
  11. a beep sound
  12. line 2
  13. True
  14. line 2
  15. a beep sound
  16. taking a photo
  17. sorting the scores
  18. line 3
  19. line 3
  20. speaking a command
  21. False
  22. line 2
  23. input
  24. 31
  25. taking a photo
  26. line 3
  27. line 3
  28. line 3
  29. tapping a button
  30. line 3
  31. False
  32. False
  33. tapping a button
  34. False
  35. 5000
  36. 30
  37. 300
  38. 250
  39. False
  40. processing

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