← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. adding up a bill
  3. 180
  4. sorting the scores
  5. output
  6. checking a password
  7. 79
  8. 500
  9. False
  10. line 3
  11. speaking a command
  12. sorting the scores
  13. 30
  14. working out a tip
  15. line 3
  16. taking a photo
  17. a pop-up message
  18. a pop-up message
  19. input
  20. 17
  21. 34
  22. input
  23. True
  24. line 3
  25. processing
  26. tapping a button
  27. 8000
  28. output
  29. output
  30. line 2
  31. True
  32. line 3
  33. False
  34. 325
  35. a beep sound
  36. a result on screen
  37. a result on screen
  38. line 2
  39. line 3
  40. 350

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