← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 11
  2. adding up a bill
  3. 12000
  4. True
  5. False
  6. processing
  7. line 3
  8. 3000
  9. a pop-up message
  10. a pop-up message
  11. line 3
  12. speaking a command
  13. True
  14. typing your age
  15. 450
  16. True
  17. 11000
  18. output
  19. line 3
  20. 220
  21. input
  22. a beep sound
  23. tapping a button
  24. line 3
  25. 60
  26. True
  27. taking a photo
  28. output
  29. line 3
  30. typing your age
  31. taking a photo
  32. processing
  33. True
  34. line 2
  35. checking a password
  36. False
  37. line 3
  38. a result on screen
  39. 225
  40. 195

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