← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 2000
  2. line 3
  3. sorting the scores
  4. checking a password
  5. 25
  6. line 3
  7. speaking a command
  8. input
  9. a result on screen
  10. typing your age
  11. line 2
  12. output
  13. 43
  14. 360
  15. True
  16. checking a password
  17. a beep sound
  18. line 3
  19. False
  20. line 3
  21. line 3
  22. a result on screen
  23. line 3
  24. line 2
  25. line 2
  26. 330
  27. processing
  28. line 3
  29. line 2
  30. True
  31. False
  32. 9000
  33. True
  34. input
  35. adding up a bill
  36. line 3
  37. 12
  38. 320
  39. a beep sound
  40. tapping a button

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