← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. adding up a bill
  2. processing
  3. tapping a button
  4. True
  5. a buzz (vibration)
  6. 100
  7. a buzz (vibration)
  8. False
  9. a result on screen
  10. True
  11. 9000
  12. output
  13. 220
  14. line 3
  15. line 2
  16. a result on screen
  17. line 3
  18. speaking a command
  19. a pop-up message
  20. 150
  21. False
  22. False
  23. sorting the scores
  24. 50
  25. True
  26. False
  27. processing
  28. input
  29. a beep sound
  30. 560
  31. 12000
  32. line 3
  33. a beep sound
  34. 32
  35. input
  36. speaking a command
  37. line 2
  38. 460
  39. 13000
  40. line 3

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