← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 458 · 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.Which of these helps everyone use the app? (a) fast-flashing lights (b) tiny tap areas (c) labels on every icon (d) colour as the only clue
  2. 2.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Pens → Shop → Offers → Results
    Design B: Home → Size → Results
    (a) Design A (b) Design B
  3. 3.🗒️ Version 1 of a quiz app must be ready in 13 days. How many days are left for extras after the must-haves?
    show a question: 3 days
    check the answer: 2 days
    show the score: 5 days
  4. 4.🧭 Which part of navigation shows 3 to 5 icons? (a) a tab bar (b) the back button (c) a menu button
  5. 5.🔐 A torch app asks for your contacts. What should you do? (a) post them online (b) share them all (c) deny it (d) allow it
  6. 6.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a wireframe (b) a final design
  7. 7.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
    function price(age) {
      if (age <= 14) {
        return 50;
      }
      return 100;
    }
    Test 1: price(17) → expected 100
    Test 2: price(12) → expected 50
    Test 3: price(16) → expected 100
  8. 8.True or false: an app that just says hi solves no real problem. (a) True (b) False
  9. 9.🔀 What does this PIN rule show?
    let pin = "7415";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  10. 10.🔢 In a sign-up flow, which comes first: “type name and email” or “enter the code sent”? (a) enter the code sent (b) type name and email
  11. 11.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(4));
  12. 12.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 45; // start at 45
    line 2: points = points - 4; // take away 1
    line 3: points = points - 3; // take away 3
    line 4: show(points); // show it
    (a) line 2 (b) line 3 (c) line 1
  13. 13.True or false: strong colour contrast is poor button design. (a) True (b) False
  14. 14.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) confetti effects (b) background music (c) show a question (d) an avatar shop
  15. 15.🔀 What number does this shop app show?
    let total = 310;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  16. 16.🔁 What number does this code show?
    let marks = [78, 77, 21, 85];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  17. 17.Which of these is true of an app? (a) opens in a web browser (b) has a web address (c) has a home-screen icon (d) needs no installing
  18. 18.True or false: “labels on every icon” helps everyone use the app. (a) True (b) False
  19. 19.🔁 What number does this code show?
    let scores = [3, 19, 11, 15, 17];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  20. 20.🔁 What number does this code show?
    let steps = [7, 4, 13];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  21. 21.👆 Code that runs when an event happens is called a ___. (a) hashtag (b) header (c) handler (d) headline
  22. 22.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 700) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(700) → expected 0
    Test 2: delivery(650) → expected 40
    Test 3: delivery(750) → expected 0
    (a) Test 2 (b) Test 1 (c) Test 3
  23. 23.Which of these requests asks for too much? (a) calculator → location (b) voice notes → microphone (c) calling app → contacts (d) camera app → camera
  24. 24.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Help button: 36 px tall
    Save button: 56 px tall
    Start button: 60 px tall
  25. 25.🛠️ At which stage do you list what users need? (a) the release stage (b) the plan stage (c) the test stage (d) the idea stage
  26. 26.True or false: a wireframe uses plain grey boxes. (a) False (b) True
  27. 27.📅 An app team plans for 4 days, builds for 5 days, tests for 1 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
  28. 28.🔁 A loop over a list of 5 items runs its body how many times? (a) 6 (b) 1 (c) 4 (d) 5
  29. 29.🔀 What does this sign-up rule show?
    let age = 16;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  30. 30.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Settings
    [button] Done
    [button] Start
    [text box] Phone
    [text box] Name
    [text box] Subject
    [button] Cancel
  31. 31.🔢 In a photo-post flow, what comes right after “take the photo”? (a) open the camera screen (b) post the photo (c) write a caption (d) add a filter
  32. 32.True or false: the theme colours is about UI (the look). (a) True (b) False
  33. 33.Which of these is about UI (the look)? (a) the theme colours (b) how users feel after (c) whether users get lost (d) how easy sign-up is
  34. 34.🔁 What number does this code show?
    let steps = [61, 48, 50, 68];
    let count = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  35. 35.Which of these is an input? (a) today’s step count (b) the home page of an app (c) the settings page (d) a switch for dark mode
  36. 36.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 700) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(800) → expected 0
    Test 2: delivery(600) → expected 40
    Test 3: delivery(700) → expected 0
  37. 37.🔁 What number does this code show?
    let scores = [77, 40, 89, 12];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  38. 38.🔍 Which is the odd one out? (a) a calculator (b) a sleep tracker (c) a step counter (d) a water reminder
  39. 39.Which of these is processing? (a) taking a photo (b) a result on screen (c) tapping a button (d) adding up a bill
  40. 40.🧭 Which part of navigation switches main sections? (a) a menu button (b) the back button (c) a tab bar

Answer key

  1. labels on every icon
  2. Design B
  3. 3
  4. a tab bar
  5. deny it
  6. a wireframe
  7. 3
  8. True
  9. PIN saved
  10. type name and email
  11. 8
  12. line 2
  13. False
  14. show a question
  15. 310
  16. 3
  17. has a home-screen icon
  18. True
  19. 65
  20. 13
  21. handler
  22. Test 1
  23. calculator → location
  24. 2
  25. the idea stage
  26. True
  27. 9
  28. 5
  29. Welcome!
  30. 3
  31. add a filter
  32. True
  33. the theme colours
  34. 3
  35. a switch for dark mode
  36. 2
  37. 2
  38. a calculator
  39. adding up a bill
  40. a tab bar

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