← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 5000
  2. tapping a button
  3. input
  4. 4000
  5. working out a tip
  6. True
  7. False
  8. True
  9. working out a tip
  10. input
  11. line 3
  12. 9000
  13. processing
  14. 22
  15. 40
  16. a result on screen
  17. a buzz (vibration)
  18. a buzz (vibration)
  19. line 3
  20. 210
  21. typing your age
  22. 26
  23. adding up a bill
  24. line 3
  25. False
  26. typing your age
  27. tapping a button
  28. 21
  29. line 3
  30. 550
  31. a beep sound
  32. 14000
  33. input
  34. line 2
  35. line 3
  36. speaking a command
  37. line 2
  38. 360
  39. checking a password
  40. 240

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