← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 695 · 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 runs = [20, 2, 3, 19];
    let best = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] > best) {
        best = runs[i];
      }
    }
    show(best);
  2. 2.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Menu: 22 px
    Body text: 9 px
    Footer: 27 px
    Hint: 20 px
    (a) Menu (b) Body text (c) Footer (d) Hint
  3. 3.✏️ Why draw a wireframe before coding? (a) it adds colours (b) it runs the app (c) it saves data (d) changes are quick
  4. 4.🔀 What number does this shop app show?
    let total = 400;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  5. 5.🔀 Which badge does this quiz app show?
    let marks = 25;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Bronze (b) Silver (c) Gold
  6. 6.💾 What number does this code show?
    let notes = ["Music", "Art"];
    notes.push("Maths");
    show(notes.length);
  7. 7.True or false: a bus tracker is the best fit for a gamer who forgets to drink. (a) False (b) True
  8. 8.🔁 What is the LAST line this code shows?
    let names = ["Meera", "Arjun", "Riya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Arjun (b) Hi, Meera (c) Hi, Riya
  9. 9.🔢 In a food-order flow, what comes right after “pay for the order”? (a) open the menu (b) check the cart (c) track the order (d) add it to the cart
  10. 10.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) easy cases (b) old cases (c) edge cases (d) phone cases
  11. 11.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Score card”
    2. tap Back
    3. open “Score card”
    4. tap Back
    5. open “Video”
    Which screen are you on now?
    (a) Quiz (b) Video (c) Lessons (d) Score card
  12. 12.💡 Does an app idea like a button with no action solve a real problem? (a) Yes (b) No
  13. 13.True or false: the user presses Save is a timer event. (a) False (b) True
  14. 14.🛠️ At which stage do you put it on an app store? (a) the idea stage (b) the test stage (c) the plan stage (d) the release stage
  15. 15.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 400) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(400) → expected 0
    Test 2: delivery(550) → expected 0
    Test 3: delivery(250) → expected 40
  16. 16.🧪 What is the ACTUAL result of Test 2?
    🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
    function price(age) {
      if (age <= 10) {
        return 50;
      }
      return 100;
    }
    Test 1: price(15) → expected 100
    Test 2: price(18) → expected 100
    Test 3: price(7) → expected 50
  17. 17.🧭 Where is a tab bar usually placed in a phone app? (a) inside a button (b) in the middle (c) at the bottom (d) nowhere
  18. 18.🔢 In a food-order flow, which comes LAST? (a) pay for the order (b) add it to the cart (c) open the menu (d) track the order
  19. 19.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 60;
    }
    show(fee(11) + fee(12));
  20. 20.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
    Design A: Home → Results → Cart → Confirm → Shop → Offers → Item
    Design B: Home → Size → Offers
  21. 21.True or false: the user types a letter is a text event. (a) True (b) False
  22. 22.♿ Why add captions to videos? (a) to add colour (b) to hide the sound (c) to slow them down (d) so anyone can follow
  23. 23.🔀 What does >= mean? (a) smaller or equal (b) less than (c) not equal (d) greater than or equal
  24. 24.🧩 Which part lets the user give the app information? (a) an input (b) a title (c) an icon (d) a logo
  25. 25.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. tap the Feed tab
    2. tap the Feed tab
    3. open “Match report”
    4. tap the Chat tab
    5. open “Help page”
    Which screen are you on now?
    (a) Feed (b) Help page (c) Chat (d) Match report
  26. 26.👆 The user types Kabir in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hello, " + nameBox.text + "!";
    };
    (a) Hello! (b) Kabir (c) Hello, Kabir! (d) Hello, nameBox.text!
  27. 27.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) add money spent (b) savings stickers (c) export to a file (d) pie-chart colours
  28. 28.Which colour pair is hard to read? (a) white on dark green (b) black on pale grey (c) yellow on white (d) black on yellow
  29. 29.💾 Which can hold many values in order? (a) a list (b) a single number (c) a switch (d) a button
  30. 30.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 31; // start at 31
    line 2: points = points * 2; // double it
    line 3: points = points * 3; // double it
    line 4: show(points); // show it
  31. 31.Which of these is about UI (the look)? (a) how many taps it takes (b) the theme colours (c) how easy sign-up is (d) how fast a task is done
  32. 32.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) earn stickers (b) pick a theme colour (c) add a homework task (d) share tasks to friends
  33. 33.🔍 Which is the odd one out? (a) a sleep tracker (b) a step counter (c) a water reminder (d) a times-table quiz
  34. 34.Which of these makes the app harder to use? (a) strong colour contrast (b) captions on videos (c) sudden loud sounds (d) labels on every icon
  35. 35.🧰 What does this code show?
    function greet(name) {
      return "Hello, " + name + "!";
    }
    show(greet("Zoya"));
    (a) Zoya (b) Hello, name! (c) Hello, Zoya! (d) greet
  36. 36.🔁 What number does this code show?
    let scores = [18, 7, 3, 3];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  37. 37.Which of these is true of the back button? (a) switches main sections (b) shows 3 to 5 icons (c) opens a list of pages (d) goes to the last screen
  38. 38.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) water animations (b) custom alert sounds (c) see today’s total (d) share your streak
  39. 39.True or false: a wireframe looks like the real app. (a) True (b) False
  40. 40.🧩 Which input is best for choosing a volume level? (a) a text box (b) a slider (c) a title (d) a switch

Answer key

  1. 20
  2. Body text
  3. changes are quick
  4. 400
  5. Bronze
  6. 3
  7. False
  8. Hi, Riya
  9. track the order
  10. edge cases
  11. Video
  12. No
  13. False
  14. the release stage
  15. 3
  16. 100
  17. at the bottom
  18. track the order
  19. 120
  20. 2
  21. True
  22. so anyone can follow
  23. greater than or equal
  24. an input
  25. Help page
  26. Hello, Kabir!
  27. add money spent
  28. yellow on white
  29. a list
  30. 124
  31. the theme colours
  32. add a homework task
  33. a times-table quiz
  34. sudden loud sounds
  35. Hello, Zoya!
  36. 31
  37. goes to the last screen
  38. see today’s total
  39. False
  40. a slider

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