← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. tapping a button
  3. input
  4. 47
  5. a beep sound
  6. adding up a bill
  7. output
  8. adding up a bill
  9. line 3
  10. typing your age
  11. True
  12. line 3
  13. typing your age
  14. False
  15. 6000
  16. 90
  17. line 2
  18. input
  19. output
  20. processing
  21. working out a tip
  22. a buzz (vibration)
  23. line 3
  24. line 3
  25. line 3
  26. 195
  27. input
  28. True
  29. line 2
  30. line 3
  31. tapping a button
  32. 160
  33. 80
  34. line 3
  35. True
  36. False
  37. True
  38. speaking a command
  39. False
  40. 420

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