← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 17 · 40 questions
TalentJR

Developer's tip (Plan, design, build, check): Find the topic: what apps are, designing apps, or logic and building. Read every screen, list or code line carefully, top to bottom. For code, write each value down step by step and check it again.

NameDateTime takenScore ___ / 40
  1. 1.🔁 What number does this code show?
    let scores = [19, 1, 9];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  2. 2.👆 The user taps the button 5 times. What does the label show now?
    let on = false;
    button.onTap = function () {
      on = !on;
      if (on) {
        label.text = "ON";
      } else {
        label.text = "OFF";
      }
    };
    (a) OFF (b) ON
  3. 3.Which of these happens at the release stage? (a) spot a problem to solve (b) put it on an app store (c) let friends try it (d) connect the data
  4. 4.🔐 Which permission does a selfie sticker app really need? (a) the microphone (b) the camera (c) contacts (d) location
  5. 5.🔐 Which permission does a guitar tuner really need? (a) contacts (b) the camera (c) location (d) the microphone
  6. 6.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 32; // start at 32
    line 2: lives = lives + 2; // add 2
    line 3: lives = lives - 2; // add 2
    line 4: lives = lives + 5; // add 5
    line 5: show(lives); // show it
    (a) line 1 (b) line 2 (c) line 3 (d) line 4
  7. 7.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(28));
  8. 8.🔀 What does if / else let an app do? (a) draw a screen (b) save a photo (c) repeat forever (d) pick one of two actions
  9. 9.🧩 In an app, what is the game-over page? (a) a button (b) data (c) an input (d) a screen
  10. 10.True or false: a final design uses plain grey boxes. (a) False (b) True
  11. 11.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Back button: 40 px tall
    Start button: 36 px tall
    Done button: 64 px tall
  12. 12.🔢 In a food-order flow, which comes first: “add it to the cart” or “pay for the order”? (a) add it to the cart (b) pay for the order
  13. 13.True or false: a selfie sticker app needs the microphone. (a) False (b) True
  14. 14.🐞 What is a bug? (a) a fast phone (b) a nice icon (c) a mistake in the code (d) a new feature
  15. 15.📅 An app team plans for 2 days, builds for 11 days, tests for 3 days and releases on 1 more day. How many more days does building take than testing?
  16. 16.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “wasting pocket money”?
    forgetting homework: 19 votes
    wasting pocket money: 4 votes
    no quiet study place: 20 votes
  17. 17.💾 What number does this code show?
    let songs = ["Sunrise", "Monsoon", "Ocean"];
    songs.push("Rain");
    songs.push("Stars");
    show(songs.length);
  18. 18.🔢 In a food-order flow, which comes first: “pick a dish” or “add it to the cart”? (a) add it to the cart (b) pick a dish
  19. 19.🔍 Which is the odd one out? (a) fast-flashing lights (b) sudden loud sounds (c) text that can grow (d) colour as the only clue
  20. 20.💾 What number does this code show?
    let stars = 3;
    stars = stars - 2;
    stars = stars + 4;
    show(stars);
  21. 21.💡 Which is a problem statement? (a) “Make it fast” (b) “Add a logo” (c) “Kids forget homework” (d) “Use blue buttons”
  22. 22.♿ Does this help everyone, or make the app harder to use: tiny tap areas? (a) makes it harder (b) helps everyone
  23. 23.🔀 What does this battery rule show?
    let battery = 15;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  24. 24.True or false: a homework planner is the best fit for a student who keeps forgetting due dates. (a) True (b) False
  25. 25.🔍 Which is the odd one out? (a) draw the user flow (b) sketch the screens (c) pick the features (d) try every button
  26. 26.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 500) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(400) → expected 40
    Test 2: delivery(500) → expected 0
    Test 3: delivery(800) → expected 0
    (a) Test 1 (b) Test 2 (c) Test 3
  27. 27.🧩 Which of these is a button on this screen?
    [title] Sign Up
    [button] Save
    [text box] City
    [slider] Volume
    [button] Start
    (a) City (b) Volume (c) Save
  28. 28.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
    Design A: Home → Address → Menu
    Design B: Home → Menu → Item → Offers → Confirm → Pay → Results
  29. 29.🔍 Which is the odd one out? (a) a times-table quiz (b) a spelling coach (c) a calculator (d) a flashcard trainer
  30. 30.🔀 Which badge does this quiz app show?
    let marks = 35;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Bronze (b) Gold (c) Silver
  31. 31.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 6 or more right answers.
    function result(right) {
      if (right > 6) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(6) → expected Pass
    Test 2: result(5) → expected Try again
    Test 3: result(7) → expected Pass
    (a) Test 2 (b) Test 3 (c) Test 1
  32. 32.🔀 What does >= mean? (a) greater than or equal (b) not equal (c) smaller or equal (d) less than
  33. 33.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Send button: 64 px tall
    Help button: 60 px tall
    Done button: 44 px tall
  34. 34.🗂️ What kind of app is a times-table quiz? (a) a learning app (b) a health app (c) a game (d) a tool app
  35. 35.🧩 How many buttons does this app screen have?
    [title] Edit Profile
    [text box] City
    [text box] Notes
    [button] Save
    [button] Help
    [text box] Subject
    [button] Done
  36. 36.⚙️ In an app, is sorting the scores an input, processing or an output? (a) input (b) output (c) processing
  37. 37.🐞 Finding and fixing bugs is called ___. (a) debugging (b) designing (c) downloading (d) decorating
  38. 38.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “wasting pocket money”?
    wasting pocket money: 19 votes
    losing water bottles: 21 votes
    forgetting homework: 20 votes
  39. 39.⚙️ What number does this app show?
    let price = 45; // typed by the user
    let qty = 4; // typed by the user
    let total = price * qty;
    show(total);
  40. 40.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 36; // start at 34
    line 2: coins = coins + 6; // add 6
    line 3: coins = coins + 6; // add 6
    line 4: show(coins); // show it
    (a) line 1 (b) line 2 (c) line 3

Answer key

  1. 29
  2. ON
  3. put it on an app store
  4. the camera
  5. the microphone
  6. line 3
  7. 84
  8. pick one of two actions
  9. a screen
  10. False
  11. 1
  12. add it to the cart
  13. False
  14. a mistake in the code
  15. 8
  16. 15
  17. 5
  18. pick a dish
  19. text that can grow
  20. 5
  21. “Kids forget homework”
  22. makes it harder
  23. Low battery
  24. True
  25. try every button
  26. Test 2
  27. Save
  28. 6
  29. a calculator
  30. Bronze
  31. Test 1
  32. greater than or equal
  33. 2
  34. a learning app
  35. 3
  36. processing
  37. debugging
  38. 1
  39. 180
  40. line 1

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