← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 50
  2. output
  3. adding up a bill
  4. a result on screen
  5. line 3
  6. False
  7. a pop-up message
  8. 125
  9. False
  10. input
  11. line 3
  12. a pop-up message
  13. line 3
  14. line 3
  15. tapping a button
  16. 160
  17. taking a photo
  18. 77
  19. checking a password
  20. line 3
  21. a result on screen
  22. False
  23. 60
  24. a beep sound
  25. line 3
  26. speaking a command
  27. a buzz (vibration)
  28. typing your age
  29. adding up a bill
  30. line 3
  31. 6000
  32. line 3
  33. 420
  34. input
  35. speaking a command
  36. True
  37. output
  38. a beep sound
  39. True
  40. line 3

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