← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 490 · 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 badge does this quiz app show?
    let marks = 82;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Bronze (c) Silver
  2. 2.📱 Which one opens from a link: an app or a website? (a) an app (b) a website
  3. 3.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 51; // start at 49
    line 2: score = score + 3; // add 3
    line 3: score = score + 3; // add 3
    line 4: show(score); // show it
  4. 4.True or false: strong colour contrast is good button design. (a) False (b) True
  5. 5.♿ What does a screen reader do? (a) takes photos (b) makes text tiny (c) reads the screen aloud (d) plays music
  6. 6.🔐 A torch app asks for your contacts. What should you do? (a) deny it (b) post them online (c) allow it (d) share them all
  7. 7.🔀 What number does this shop app show?
    let total = 550;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  8. 8.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(1) + points(4));
  9. 9.🛠️ At which stage do you sketch the screens? (a) the build stage (b) the plan stage (c) the test stage (d) the release stage
  10. 10.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 800) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(1100) → expected 0
    Test 2: delivery(750) → expected 40
    Test 3: delivery(800) → expected 0
    (a) Test 3 (b) Test 1 (c) Test 2
  11. 11.👆 The user taps the button 3 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 3) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  12. 12.💾 pop() takes off the last item. What does this code show?
    let songs = ["Monsoon", "Sunrise", "Rain"];
    songs.pop();
    show(songs[songs.length - 1]);
    (a) Monsoon (b) Sunrise (c) Rain
  13. 13.🧪 What is the ACTUAL result of Test 1?
    🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
    function price(age) {
      if (age < 8) {
        return 50;
      }
      return 100;
    }
    Test 1: price(8) → expected 100
    Test 2: price(5) → expected 50
    Test 3: price(10) → expected 100
  14. 14.🔁 What number does this code show?
    let scores = [96, 82, 73, 66];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  15. 15.🧩 In an app, what is tap to Save? (a) data (b) a screen (c) a button (d) an input
  16. 16.True or false: you pick the features at the plan stage. (a) True (b) False
  17. 17.💡 Which app idea solves this problem: bottles go missing at school? (a) a homework planner (b) a lost-and-found board (c) a medicine reminder (d) a bill splitter
  18. 18.Which of these requests is fair? (a) timer → your photos (b) calling app → contacts (c) calculator → location (d) quiz app → microphone
  19. 19.💡 Does an app idea like a page of random dots solve a real problem? (a) Yes (b) No
  20. 20.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(2) + points(0));
  21. 21.🔀 What does this battery rule show?
    let battery = 71;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  22. 22.🔢 After an app is released, what comes right after “test it again”? (a) fix and improve (b) release an update (c) read user reviews (d) list what to fix
  23. 23.True or false: notes to read offline fits saving on the phone. (a) True (b) False
  24. 24.True or false: a word battle is a game. (a) False (b) True
  25. 25.🔁 What is the LAST line this code shows?
    let names = ["Kabir", "Meera", "Arjun", "Riya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Riya (b) Hi, Meera (c) Hi, Arjun (d) Hi, Kabir
  26. 26.True or false: a bill splitter solves a real problem. (a) False (b) True
  27. 27.True or false: chat messages to friends fits saving in the cloud. (a) True (b) False
  28. 28.🔢 In a sign-up flow, which comes first: “see the home screen” or “open the app”? (a) see the home screen (b) open the app
  29. 29.True or false: a step counter is a learning app. (a) False (b) True
  30. 30.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Confirm → Size → Results → Offers
    Design B: Home → Menu → Shop → Size → Pay → Pens
    (a) Design A (b) Design B
  31. 31.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) see tasks by day (b) set a due date (c) add a homework task (d) earn stickers
  32. 32.💡 Does an app idea like a medicine reminder solve a real problem? (a) Yes (b) No
  33. 33.💾 What number does this code show?
    let friends = ["Kabir", "Zoya", "Riya"];
    friends.push("Aman");
    show(friends.length);
  34. 34.🧪 What is the ACTUAL result of Test 2?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(300) → expected 0
    Test 2: delivery(450) → expected 0
    Test 3: delivery(200) → expected 40
  35. 35.💡 Does an app idea like a bill splitter solve a real problem? (a) Yes (b) No
  36. 36.💾 What number does this code show?
    let songs = ["Sunrise", "Rain", "Monsoon", "Kites"];
    songs.push("Ocean");
    songs.push("Stars");
    show(songs.length);
  37. 37.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) change the bus icon (b) a dark mode (c) rate the driver (d) show arrival time
  38. 38.🔢 In a food-order flow, which comes LAST? (a) pick a dish (b) pay for the order (c) track the order (d) add it to the cart
  39. 39.👥 A cricket club app has 250 players, 215 coaches and 245 fans as users. How many users does it have in all?
  40. 40.💡 Which app idea solves this problem: a team shares one snack bill? (a) a study-room finder (b) a homework planner (c) a lost-and-found board (d) a bill splitter

Answer key

  1. Gold
  2. a website
  3. 57
  4. True
  5. reads the screen aloud
  6. deny it
  7. 500
  8. 60
  9. the plan stage
  10. Test 3
  11. 3
  12. Sunrise
  13. 100
  14. 3
  15. a button
  16. True
  17. a lost-and-found board
  18. calling app → contacts
  19. No
  20. 30
  21. Battery OK
  22. release an update
  23. True
  24. True
  25. Hi, Riya
  26. True
  27. True
  28. open the app
  29. False
  30. Design A
  31. earn stickers
  32. Yes
  33. 4
  34. 0
  35. Yes
  36. 6
  37. show arrival time
  38. track the order
  39. 710
  40. a bill splitter

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