← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 2000
  3. 19
  4. tapping a button
  5. False
  6. 90
  7. True
  8. adding up a bill
  9. input
  10. typing your age
  11. line 2
  12. 325
  13. output
  14. 260
  15. line 3
  16. checking a password
  17. False
  18. adding up a bill
  19. processing
  20. True
  21. line 3
  22. 180
  23. input
  24. False
  25. working out a tip
  26. processing
  27. sorting the scores
  28. a pop-up message
  29. speaking a command
  30. False
  31. False
  32. 390
  33. sorting the scores
  34. typing your age
  35. tapping a button
  36. 290
  37. line 3
  38. line 3
  39. 64
  40. 3000

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