← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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