← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 448 · 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 is a variable? (a) a picture (b) a type of screen (c) a named box for a value (d) a phone setting
  2. 2.🔀 What number does this shop app show?
    let total = 240;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  3. 3.🔁 What number does this code show?
    let runs = [19, 16, 9, 1, 13];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  4. 4.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Sign Up
    [switch] Dark mode
    [button] Start
    [text box] Due date
    [slider] Brightness
  5. 5.True or false: the screen first opens is a load event. (a) True (b) False
  6. 6.True or false: your high score is data. (a) True (b) False
  7. 7.🧪 What is the ACTUAL result of Test 1?
    🚚 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(700) → expected 0
    Test 2: delivery(750) → expected 0
    Test 3: delivery(400) → expected 40
  8. 8.🔀 What does this PIN rule show?
    let pin = "3879";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  9. 9.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “losing water bottles”?
    forgetting homework: 19 votes
    losing water bottles: 6 votes
    no quiet study place: 21 votes
  10. 10.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
    function price(age) {
      if (age < 11) {
        return 50;
      }
      return 100;
    }
    Test 1: price(17) → expected 100
    Test 2: price(11) → expected 100
    Test 3: price(8) → expected 50
  11. 11.🧭 Why should every screen show where you are? (a) to hide the menu (b) so users do not get lost (c) to use more battery (d) to look busy
  12. 12.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Friend list”
    2. tap the Profile tab
    3. open “Edit photo”
    Which screen are you on now?
    (a) Search (b) Edit photo (c) Home (d) Friend list
  13. 13.Which of these happens at the build stage? (a) share the download link (b) write the store text (c) spot a problem to solve (d) add the buttons
  14. 14.🗒️ Version 1 of a homework planner must be ready in 11 days. How many days are left for extras after the must-haves?
    add a homework task: 3 days
    set a due date: 3 days
    see tasks by day: 4 days
  15. 15.👆 What kind of event is this: the search box changes? (a) a text event (b) a load event (c) a tap event (d) a timer event
  16. 16.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 12, and 100 for everyone else.
    function price(age) {
      if (age <= 12) {
        return 50;
      }
      return 100;
    }
    Test 1: price(12) → expected 100
    Test 2: price(10) → expected 50
    Test 3: price(17) → expected 100
    (a) Test 1 (b) Test 3 (c) Test 2
  17. 17.🐞 What is a good first step when an app gives a wrong result? (a) find where it goes wrong (b) add more colours (c) delete the app (d) buy a new phone
  18. 18.🛠️ At which stage do you try every button? (a) the test stage (b) the plan stage (c) the release stage (d) the idea stage
  19. 19.True or false: the user types a letter is a timer event. (a) True (b) False
  20. 20.🔢 In a quiz-app flow, which comes FIRST? (a) pick an answer (b) tap “Start quiz” (c) see the final score (d) read a question
  21. 21.💡 How can you check that people really have the problem? (a) pick a colour (b) just guess (c) copy another app (d) ask possible users
  22. 22.🎯 Is this a user need or a feature: “What should I cook?”? (a) a user need (b) a feature
  23. 23.True or false: a website is installed on a phone. (a) True (b) False
  24. 24.🔍 Which is the odd one out? (a) a flashcard trainer (b) a spelling coach (c) a torch (d) a times-table quiz
  25. 25.🚀 Your app is at version 2.9.7. The next release fixes a small bug. What is its version number? (a) 2.9.8 (b) 2.10.0 (c) 2.10.7 (d) 3.0.0
  26. 26.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Settings
    [button] Back
    [text box] City
    [button] Done
    [slider] Text size
    [button] Next
    [switch] Show hints
  27. 27.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 112; // typed by the user
    line 2: let friends = 4; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 1 (c) line 2 (d) line 3
  28. 28.🧰 What is a function? (a) a named block of code (b) a screen size (c) a list of colours (d) a type of phone
  29. 29.🗂️ What kind of app is a calculator? (a) a game (b) a learning app (c) a tool app (d) a health app
  30. 30.👆 What kind of event is this: the user types a letter? (a) a text event (b) a load event (c) a timer event (d) a tap event
  31. 31.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Badges”
    2. tap the Me tab
    3. open “Friend list”
    How many times must you tap Back to reach the main screen of this tab?
  32. 32.📊 Survey: which problem bugs you most? How many more votes did “forgetting birthdays” get than “missing the bus”?
    forgetting birthdays: 24 votes
    missing the bus: 14 votes
    wasting pocket money: 5 votes
  33. 33.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 6 or more right answers.
    function result(right) {
      if (right > 6) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(5) → expected Try again
    Test 2: result(6) → expected Pass
    Test 3: result(8) → expected Pass
    (a) Test 3 (b) Test 2 (c) Test 1
  34. 34.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    forgetting homework: 6 votes
    wasting pocket money: 7 votes
    missing the bus: 25 votes
    (a) forgetting homework (b) wasting pocket money (c) missing the bus
  35. 35.🔀 What does this battery rule show?
    let battery = 88;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  36. 36.🔐 Which permission does a bus tracker really need? (a) contacts (b) the camera (c) the microphone (d) location
  37. 37.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
    Design A: Home → Results → Pay → Menu → Cart → Shop → Pens
    Design B: Home → Item → Menu → Search
  38. 38.🔢 In a quiz-app flow, what comes right after “see if it is right”? (a) pick an answer (b) read a question (c) see the final score (d) tap “Start quiz”
  39. 39.💾 What number does this code show?
    let notes = ["Sports", "Maths"];
    notes.push("Hindi");
    show(notes.length);
  40. 40.🔀 In a good flow, each screen should lead to ___. (a) a dead end (b) the same screen (c) a clear next step (d) a random page

Answer key

  1. a named box for a value
  2. 240
  3. 58
  4. 3
  5. True
  6. True
  7. 0
  8. PIN saved
  9. 13
  10. 3
  11. so users do not get lost
  12. Edit photo
  13. add the buttons
  14. 1
  15. a text event
  16. Test 1
  17. find where it goes wrong
  18. the test stage
  19. False
  20. tap “Start quiz”
  21. ask possible users
  22. a user need
  23. False
  24. a torch
  25. 2.9.8
  26. 3
  27. line 3
  28. a named block of code
  29. a tool app
  30. a text event
  31. 1
  32. 10
  33. Test 2
  34. missing the bus
  35. Battery OK
  36. location
  37. 3
  38. see the final score
  39. 3
  40. a clear next step

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