← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. True
  3. 420
  4. True
  5. input
  6. 475
  7. line 3
  8. checking a password
  9. sorting the scores
  10. 250
  11. adding up a bill
  12. a buzz (vibration)
  13. processing
  14. False
  15. 61
  16. tapping a button
  17. 12000
  18. line 2
  19. 10000
  20. speaking a command
  21. processing
  22. True
  23. 43
  24. 13
  25. False
  26. 240
  27. processing
  28. False
  29. typing your age
  30. 170
  31. 100
  32. taking a photo
  33. a pop-up message
  34. sorting the scores
  35. a pop-up message
  36. True
  37. line 3
  38. 60
  39. True
  40. output

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