← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. processing
  3. output
  4. line 3
  5. line 3
  6. typing your age
  7. 8000
  8. output
  9. line 3
  10. a buzz (vibration)
  11. 540
  12. True
  13. False
  14. tapping a button
  15. processing
  16. line 3
  17. line 3
  18. taking a photo
  19. speaking a command
  20. line 2
  21. output
  22. 150
  23. 375
  24. True
  25. input
  26. 10000
  27. a result on screen
  28. a pop-up message
  29. a pop-up message
  30. 225
  31. input
  32. line 3
  33. 180
  34. line 3
  35. line 3
  36. 70
  37. 7000
  38. 27
  39. line 3
  40. tapping a button

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