← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 413 · 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.🧪 A test case is an input together with its ___. (a) app icon (b) screen colour (c) expected result (d) font size
  2. 2.🗒️ Version 1 of a quiz app must be ready in 11 days. How many days are left for extras after the must-haves?
    show a question: 2 days
    check the answer: 4 days
    show the score: 5 days
  3. 3.👆 The user types Arjun in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hello, " + nameBox.text + "!";
    };
    (a) Hello, Arjun! (b) Hello! (c) Arjun (d) Hello, nameBox.text!
  4. 4.🚀 Which version is newer: 3.3.2 or 3.3.18? (a) 3.3.2 (b) 3.3.18
  5. 5.True or false: an app needs no installing. (a) False (b) True
  6. 6.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) change the bus icon (b) rate the driver (c) a dark mode (d) see where the bus is
  7. 7.🧩 In an app, what is the home page of an app? (a) a screen (b) a button (c) data (d) an input
  8. 8.🔢 When you make an app, which comes LAST? (a) test the app (b) plan the screens (c) get an idea (d) release it
  9. 9.True or false: tap to go Next is a button. (a) False (b) True
  10. 10.🔀 What does this sign-up rule show?
    let age = 8;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  11. 11.Which of these is true of an app? (a) comes from an app store (b) has a web address (c) opens in a web browser (d) needs no installing
  12. 12.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. tap the Chat tab
    2. open “Video”
    3. tap the Chat tab
    4. tap the Settings tab
    Which screen are you on now?
    (a) Feed (b) Settings (c) Chat (d) Video
  13. 13.👆 The user taps the button 5 times. What number does the label show now?
    let score = 6;
    button.onTap = function () {
      score = score + 1;
      label.text = score;
    };
  14. 14.🧰 In function tip(bill), what is bill? (a) a screen (b) an event (c) a parameter (d) a loop
  15. 15.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(36));
  16. 16.Which of these fits saving in the cloud? (a) a shared to-do list (b) the sound on/off setting (c) notes to read offline (d) a draft you are typing
  17. 17.👆 The user taps the button 1 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
  18. 18.🔁 What number does this code show?
    let marks = [6, 12, 12, 5];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  19. 19.True or false: a website is installed on a phone. (a) False (b) True
  20. 20.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) custom alert sounds (b) share your streak (c) see today’s total (d) water animations
  21. 21.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 38; // start at 38
    line 2: points = points * 2; // double it
    line 3: points = points + 2; // add 2
    line 4: points = points + 2; // double it
    line 5: show(points); // show it
  22. 22.🔢 In a quiz-app flow, which comes LAST? (a) see the final score (b) tap “Start quiz” (c) read a question (d) pick an answer
  23. 23.💾 What number does this code show?
    let lives = 7;
    lives = lives - 6;
    lives = lives + 5;
    show(lives);
  24. 24.🔢 In a sign-up flow, what comes right after “make a password”? (a) open the app (b) type name and email (c) enter the code sent (d) see the home screen
  25. 25.🧪 What is the ACTUAL result of Test 1?
    🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
    function price(age) {
      if (age < 9) {
        return 50;
      }
      return 100;
    }
    Test 1: price(8) → expected 50
    Test 2: price(12) → expected 100
    Test 3: price(9) → expected 100
  26. 26.🔢 In a food-order flow, what comes right after “open the menu”? (a) check the cart (b) add it to the cart (c) pick a dish (d) pay for the order
  27. 27.🔁 What number does this code show?
    let marks = [37, 63, 42, 34, 80];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  28. 28.Which of these is true of a website? (a) opens from a link (b) updates from the store (c) comes from an app store (d) is installed on a phone
  29. 29.🧭 Where is a tab bar usually placed in a phone app? (a) in the middle (b) nowhere (c) at the bottom (d) inside a button
  30. 30.🔘 Is this good or poor button design: a big, easy tap area? (a) good design (b) poor design
  31. 31.🔍 Which is the odd one out? (a) captions on videos (b) sudden loud sounds (c) colour as the only clue (d) fast-flashing lights
  32. 32.🔀 What number does this shop app show?
    let total = 400;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  33. 33.True or false: you pick the features at the plan stage. (a) False (b) True
  34. 34.🧪 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(13) → expected 100
    Test 2: price(7) → expected 50
    Test 3: price(8) → expected 100
  35. 35.📊 Survey: which problem bugs you most? How many students voted in all?
    missing the bus: 19 votes
    losing water bottles: 18 votes
    forgetting birthdays: 17 votes
  36. 36.💡 Which app idea solves this problem: the library is always full? (a) a bill splitter (b) a lost-and-found board (c) a homework planner (d) a study-room finder
  37. 37.🔀 What does >= mean? (a) greater than or equal (b) less than (c) not equal (d) smaller or equal
  38. 38.🔀 What number does this shop app show?
    let total = 230;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  39. 39.🔁 What number does this code show?
    let scores = [12, 13, 1, 16];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  40. 40.📱 Which one needs no installing: an app or a website? (a) a website (b) an app

Answer key

  1. expected result
  2. 0
  3. Hello, Arjun!
  4. 3.3.18
  5. False
  6. see where the bus is
  7. a screen
  8. release it
  9. True
  10. Ask a parent
  11. comes from an app store
  12. Settings
  13. 11
  14. a parameter
  15. 72
  16. a shared to-do list
  17. ON
  18. 12
  19. False
  20. see today’s total
  21. 156
  22. see the final score
  23. 6
  24. enter the code sent
  25. 50
  26. pick a dish
  27. 1
  28. opens from a link
  29. at the bottom
  30. good design
  31. captions on videos
  32. 400
  33. True
  34. 100
  35. 54
  36. a study-room finder
  37. greater than or equal
  38. 230
  39. 42
  40. a website

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