← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. output
  3. line 3
  4. processing
  5. line 3
  6. line 3
  7. tapping a button
  8. 430
  9. tapping a button
  10. input
  11. True
  12. line 3
  13. line 3
  14. a result on screen
  15. 11000
  16. 50
  17. a buzz (vibration)
  18. line 3
  19. taking a photo
  20. line 3
  21. working out a tip
  22. taking a photo
  23. input
  24. 150
  25. 440
  26. 6000
  27. line 3
  28. line 2
  29. 8000
  30. False
  31. typing your age
  32. line 3
  33. 15000
  34. line 3
  35. output
  36. line 3
  37. 10
  38. a beep sound
  39. False
  40. a result on screen

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