← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 140
  2. 230
  3. speaking a command
  4. line 3
  5. input
  6. input
  7. line 3
  8. False
  9. line 3
  10. a beep sound
  11. False
  12. output
  13. line 3
  14. processing
  15. False
  16. line 2
  17. line 3
  18. processing
  19. line 3
  20. 440
  21. line 3
  22. line 2
  23. a buzz (vibration)
  24. a buzz (vibration)
  25. 12000
  26. tapping a button
  27. 225
  28. 9000
  29. True
  30. line 3
  31. 49
  32. output
  33. line 3
  34. True
  35. line 3
  36. adding up a bill
  37. line 3
  38. a result on screen
  39. 80
  40. line 3

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