← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 40
  3. a pop-up message
  4. line 3
  5. processing
  6. speaking a command
  7. 50
  8. input
  9. True
  10. line 3
  11. speaking a command
  12. line 3
  13. line 3
  14. 50
  15. typing your age
  16. input
  17. 13000
  18. 14000
  19. sorting the scores
  20. False
  21. a buzz (vibration)
  22. line 3
  23. a pop-up message
  24. working out a tip
  25. 59
  26. taking a photo
  27. 60
  28. line 3
  29. 390
  30. typing your age
  31. tapping a button
  32. 180
  33. line 3
  34. line 3
  35. working out a tip
  36. line 3
  37. output
  38. False
  39. line 3
  40. 240

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