← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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