← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. adding up a bill
  2. output
  3. a buzz (vibration)
  4. 31
  5. taking a photo
  6. a pop-up message
  7. True
  8. tapping a button
  9. 580
  10. working out a tip
  11. line 3
  12. line 3
  13. line 2
  14. a result on screen
  15. a beep sound
  16. output
  17. True
  18. False
  19. 350
  20. True
  21. output
  22. sorting the scores
  23. line 3
  24. line 3
  25. 10000
  26. a beep sound
  27. True
  28. 15000
  29. typing your age
  30. line 3
  31. line 3
  32. 29
  33. 48
  34. speaking a command
  35. line 3
  36. processing
  37. a buzz (vibration)
  38. False
  39. 55
  40. 380

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