← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. typing your age
  3. 39
  4. a pop-up message
  5. line 3
  6. checking a password
  7. processing
  8. 480
  9. input
  10. line 2
  11. True
  12. 7000
  13. typing your age
  14. line 3
  15. line 2
  16. input
  17. False
  18. a beep sound
  19. input
  20. speaking a command
  21. adding up a bill
  22. line 3
  23. 69
  24. 11000
  25. a pop-up message
  26. sorting the scores
  27. False
  28. True
  29. output
  30. 54
  31. taking a photo
  32. line 3
  33. 130
  34. checking a password
  35. 430
  36. sorting the scores
  37. speaking a command
  38. line 3
  39. 67
  40. 13000

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