← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 7000
  2. line 3
  3. line 3
  4. processing
  5. processing
  6. 200
  7. tapping a button
  8. 13
  9. 75
  10. line 3
  11. False
  12. line 2
  13. True
  14. True
  15. 80
  16. tapping a button
  17. output
  18. 60
  19. typing your age
  20. line 3
  21. input
  22. a result on screen
  23. input
  24. line 3
  25. a result on screen
  26. False
  27. sorting the scores
  28. adding up a bill
  29. line 2
  30. line 3
  31. a beep sound
  32. 78
  33. False
  34. 4000
  35. 310
  36. processing
  37. sorting the scores
  38. False
  39. checking a password
  40. False

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