← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. line 3
  3. 14
  4. line 3
  5. line 3
  6. 26
  7. 540
  8. speaking a command
  9. False
  10. 375
  11. taking a photo
  12. 400
  13. line 3
  14. output
  15. 75
  16. taking a photo
  17. input
  18. 11000
  19. processing
  20. sorting the scores
  21. line 2
  22. tapping a button
  23. True
  24. 19
  25. adding up a bill
  26. line 3
  27. a pop-up message
  28. False
  29. speaking a command
  30. checking a password
  31. input
  32. False
  33. typing your age
  34. False
  35. 24
  36. False
  37. processing
  38. line 3
  39. 18
  40. 125

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