← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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