← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 496 · 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.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 44; // start at 44
    line 2: score = score - 4; // take away 3
    line 3: score = score + 4; // add 4
    line 4: score = score + 5; // add 5
    line 5: show(score); // show it
  2. 2.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) earn stickers (b) set a due date (c) see tasks by day (d) add a homework task
  3. 3.⚙️ What number does this app show?
    let price = 60; // typed by the user
    let qty = 4; // typed by the user
    let total = price * qty;
    show(total);
  4. 4.👥 A clinic app has 170 patients, 90 doctors and 285 nurses as users. Which user group is the biggest? (a) patients (b) doctors (c) nurses
  5. 5.Which of these happens at the build stage? (a) sketch the screens (b) draw the user flow (c) spot a problem to solve (d) add the buttons
  6. 6.Which of these makes the app harder to use? (a) labels on every icon (b) captions on videos (c) strong colour contrast (d) sudden loud sounds
  7. 7.💾 What does this code show? (Positions start at 0.)
    let songs = ["Rain", "Monsoon", "Stars"];
    show(songs[0]);
    (a) Stars (b) Monsoon (c) Rain
  8. 8.🧪 One test case fails. Which one?
    🎟️ 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(19) → expected 100
    Test 2: price(14) → expected 100
    Test 3: price(13) → expected 50
    (a) Test 1 (b) Test 3 (c) Test 2
  9. 9.🐞 What is a good first step when an app gives a wrong result? (a) delete the app (b) add more colours (c) buy a new phone (d) find where it goes wrong
  10. 10.🔀 What does this battery rule show?
    let battery = 92;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  11. 11.True or false: strong colour contrast is good button design. (a) True (b) False
  12. 12.Which of these is a feature? (a) “Small text is hard” (b) a share button (c) “What should I cook?” (d) “I keep missing the bus”
  13. 13.🔢 In a quiz-app flow, which comes FIRST? (a) pick an answer (b) see if it is right (c) read a question (d) tap “Start quiz”
  14. 14.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) share your streak (b) water animations (c) set a reminder time (d) custom alert sounds
  15. 15.👆 An event in an app is ___. (a) something that happens (b) an app store (c) a colour theme (d) a kind of list
  16. 16.🔁 What number does this code show?
    let scores = [3, 7, 12, 6, 13];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  17. 17.🗒️ Version 1 of a water reminder must be ready in 13 days. How many days are left for extras after the must-haves?
    set a reminder time: 3 days
    log a glass of water: 2 days
    see today’s total: 2 days
  18. 18.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
    Design A: Home → Address → Item → Offers → Menu → Pens
    Design B: Home → Cart → Item → Offers
  19. 19.💾 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
  20. 20.Which colour pair is easy to read? (a) pale pink on white (b) white on dark green (c) red on green (d) yellow on white
  21. 21.Which of these is true of the back button? (a) opens a list of pages (b) goes to the last screen (c) sits at the bottom (d) switches main sections
  22. 22.🧭 Which part of navigation goes to the last screen? (a) a tab bar (b) the back button (c) a menu button
  23. 23.🧰 Why write a function? (a) to make code longer (b) to reuse code (c) to slow the app (d) to hide errors
  24. 24.True or false: you talk to possible users at the build stage. (a) True (b) False
  25. 25.Which of these is a user need? (a) “What should I cook?” (b) a share button (c) a search bar (d) a dark mode switch
  26. 26.True or false: an alarm clock is a tool app. (a) True (b) False
  27. 27.🗒️ The first small, working version of an app is often called an ___. (a) URL (b) MVP (c) CPU (d) FAQ
  28. 28.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 51; // start at 49
    line 2: score = score + 6; // add 6
    line 3: score = score + 4; // add 4
    line 4: show(score); // show it
  29. 29.🔀 What does >= mean? (a) smaller or equal (b) greater than or equal (c) less than (d) not equal
  30. 30.🔁 What is the LAST line this code shows?
    let names = ["Kabir", "Zoya", "Riya", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Kabir (c) Hi, Riya (d) Hi, Arjun
  31. 31.🔍 Which is the odd one out? (a) a pop-up message (b) a beep sound (c) speaking a command (d) a result on screen
  32. 32.🔀 What does this sign-up rule show?
    let age = 10;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  33. 33.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(4) + points(1));
  34. 34.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(20));
  35. 35.💡 A good app idea starts with ___. (a) a cool logo (b) a problem to solve (c) a long name (d) many colours
  36. 36.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 8 or more right answers.
    function result(right) {
      if (right > 8) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(8) → expected Pass
    Test 2: result(9) → expected Pass
    Test 3: result(7) → expected Try again
    (a) Test 2 (b) Test 3 (c) Test 1
  37. 37.🧰 What is a function? (a) a list of colours (b) a named block of code (c) a screen size (d) a type of phone
  38. 38.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) see today’s total (b) share your streak (c) custom alert sounds (d) water animations
  39. 39.💡 Which app idea solves this problem: the library is always full? (a) a study-room finder (b) a medicine reminder (c) a bill splitter (d) a homework planner
  40. 40.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) see where the bus is (b) pick your bus stop (c) show arrival time (d) rate the driver

Answer key

  1. 50
  2. earn stickers
  3. 240
  4. nurses
  5. add the buttons
  6. sudden loud sounds
  7. Rain
  8. Test 2
  9. find where it goes wrong
  10. Battery OK
  11. True
  12. a share button
  13. tap “Start quiz”
  14. set a reminder time
  15. something that happens
  16. 13
  17. 6
  18. 2
  19. on the phone
  20. white on dark green
  21. goes to the last screen
  22. the back button
  23. to reuse code
  24. False
  25. “What should I cook?”
  26. True
  27. MVP
  28. 59
  29. greater than or equal
  30. Hi, Arjun
  31. speaking a command
  32. Ask a parent
  33. 60
  34. 60
  35. a problem to solve
  36. Test 1
  37. a named block of code
  38. see today’s total
  39. a study-room finder
  40. rate the driver

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