← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. processing
  3. 70
  4. processing
  5. line 3
  6. tapping a button
  7. False
  8. adding up a bill
  9. True
  10. output
  11. 15000
  12. sorting the scores
  13. False
  14. line 3
  15. 420
  16. 67
  17. 510
  18. tapping a button
  19. line 3
  20. line 3
  21. typing your age
  22. 69
  23. output
  24. a beep sound
  25. 560
  26. 8000
  27. 13000
  28. 80
  29. False
  30. a buzz (vibration)
  31. False
  32. 42
  33. line 3
  34. 125
  35. line 3
  36. line 3
  37. line 3
  38. a result on screen
  39. input
  40. 195

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