← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 313 · 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 is the odd one out? (a) checking a password (b) a result on screen (c) a pop-up message (d) a beep sound
  2. 2.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 40; // start at 40
    line 2: coins = coins + 5; // add 5
    line 3: coins = coins * 2; // double it
    line 4: coins = coins + 2; // double it
    line 5: show(coins); // show it
  3. 3.Which of these is true of an app? (a) opens in a web browser (b) needs no installing (c) updates from the store (d) has a web address
  4. 4.🚀 Which version is newer: 4.9.5 or 4.9.10? (a) 4.9.5 (b) 4.9.10
  5. 5.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 7 or more right answers.
    function result(right) {
      if (right > 7) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(9) → expected Pass
    Test 2: result(8) → expected Pass
    Test 3: result(6) → expected Try again
  6. 6.👆 The user taps the button 6 times. What number does the label show now?
    let lives = 5;
    button.onTap = function () {
      lives = lives + 1;
      label.text = lives;
    };
  7. 7.🧪 What is the ACTUAL result of Test 3?
    🎟️ 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(10) → expected 50
    Test 2: price(14) → expected 100
    Test 3: price(18) → expected 100
  8. 8.🔍 Which is the odd one out? (a) a water reminder (b) a puzzle with levels (c) a cricket run chase (d) a racing challenge
  9. 9.True or false: a website is installed on a phone. (a) True (b) False
  10. 10.🔢 After an app is released, what comes right after “read user reviews”? (a) fix and improve (b) list what to fix (c) test it again (d) release an update
  11. 11.True or false: the sound on/off setting fits saving on the phone. (a) False (b) True
  12. 12.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 39; // start at 38
    line 2: stars = stars + 6; // add 6
    line 3: stars = stars - 2; // take away 2
    line 4: show(stars); // show it
  13. 13.♿ Does this help everyone, or make the app harder to use: fast-flashing lights? (a) helps everyone (b) makes it harder
  14. 14.🔁 What number does this code show?
    let scores = [1, 14, 12, 1];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  15. 15.🔍 Which is the odd one out? (a) spot a problem to solve (b) list what users need (c) let friends try it (d) talk to possible users
  16. 16.🧩 Which of these is a button on this screen?
    [title] Sign Up
    [text box] City
    [button] Help
    [text box] Name
    [button] Save
    [text box] Email
    (a) Email (b) City (c) Name (d) Save
  17. 17.💾 Where should the app save a draft you are typing: on the phone or in the cloud? (a) in the cloud (b) on the phone
  18. 18.💾 What does this code show? (Positions start at 0.)
    let friends = ["Aman", "Zoya", "Meera", "Arjun"];
    show(friends[3]);
    (a) Meera (b) Zoya (c) Aman (d) Arjun
  19. 19.🗒️ When should nice-to-have features be built? (a) after the must-haves (b) before anything (c) never (d) on day one
  20. 20.🔢 In a food-order flow, which comes FIRST? (a) add it to the cart (b) check the cart (c) track the order (d) open the menu
  21. 21.True or false: a flashcard trainer is a game. (a) False (b) True
  22. 22.💾 pop() takes off the last item. What does this code show?
    let notes = ["Hindi", "Art", "Music", "Science", "Sports"];
    notes.pop();
    show(notes[notes.length - 1]);
    (a) Art (b) Science (c) Music (d) Hindi
  23. 23.🔀 What does this PIN rule show?
    let pin = "46401";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  24. 24.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 45; // start at 45
    line 2: stars = stars + 2; // double it
    line 3: stars = stars * 2; // double it
    line 4: show(stars); // show it
  25. 25.🔢 In a quiz-app flow, which comes FIRST? (a) tap “Start quiz” (b) read a question (c) pick an answer (d) see the final score
  26. 26.🔁 What number does this code show?
    let steps = [20, 14, 15, 16];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  27. 27.🗒️ The first small, working version of an app is often called an ___. (a) FAQ (b) CPU (c) MVP (d) URL
  28. 28.🧪 A test fails when ___. (a) the font is big (b) actual is not expected (c) both are the same (d) the app is new
  29. 29.🔐 Is this permission request fair or too much: map app → location? (a) fair (b) too much
  30. 30.🎨 Is this about UI or UX: the screen layout? (a) UI (b) UX
  31. 31.⚙️ What number does this app show?
    let price = 85; // typed by the user
    let qty = 2; // typed by the user
    let total = price * qty;
    show(total);
  32. 32.👆 The user taps the button 3 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) ON (b) OFF
  33. 33.🗒️ Version 1 of a homework planner must be ready in 10 days. How many days are left for extras after the must-haves?
    add a homework task: 2 days
    set a due date: 2 days
    see tasks by day: 2 days
  34. 34.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 600) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(750) → expected 0
    Test 2: delivery(400) → expected 40
    Test 3: delivery(800) → expected 0
  35. 35.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(3) + points(0));
  36. 36.True or false: you let friends try it at the idea stage. (a) False (b) True
  37. 37.👆 The user taps the button 4 times. What number does the label show now?
    let points = 0;
    button.onTap = function () {
      points = points + 2;
      label.text = points;
    };
  38. 38.🗒️ Version 1 of a water reminder must be ready in 12 days. How many days are left for extras after the must-haves?
    set a reminder time: 1 days
    log a glass of water: 4 days
    see today’s total: 3 days
  39. 39.🧪 Who else should try an app before release? (a) only the coder (b) nobody (c) the app icon (d) real users
  40. 40.🔀 What number does this shop app show?
    let total = 380;
    if (total > 500) {
      total = total - 50;
    }
    show(total);

Answer key

  1. checking a password
  2. 92
  3. updates from the store
  4. 4.9.10
  5. 3
  6. 11
  7. 100
  8. a water reminder
  9. False
  10. list what to fix
  11. True
  12. 42
  13. makes it harder
  14. 28
  15. let friends try it
  16. Save
  17. on the phone
  18. Arjun
  19. after the must-haves
  20. open the menu
  21. False
  22. Science
  23. Use 4 digits
  24. 94
  25. tap “Start quiz”
  26. 65
  27. MVP
  28. actual is not expected
  29. fair
  30. UI
  31. 170
  32. ON
  33. 4
  34. 3
  35. 40
  36. False
  37. 8
  38. 4
  39. real users
  40. 380

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