← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 962 · 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.True or false: notes to read offline fits saving in the cloud. (a) True (b) False
  2. 2.🧪 What is the actual result of a test? (a) the test’s number (b) the app’s name (c) what we hope for (d) what the app really does
  3. 3.🧪 One test case fails. Which one?
    🎟️ 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(9) → expected 100
    Test 2: price(11) → expected 100
    Test 3: price(8) → expected 50
    (a) Test 1 (b) Test 2 (c) Test 3
  4. 4.🧪 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(11) → expected 100
    Test 2: price(7) → expected 50
    Test 3: price(16) → expected 100
  5. 5.🧰 Why write a function? (a) to slow the app (b) to make code longer (c) to hide errors (d) to reuse code
  6. 6.Which of these is true of a website? (a) has a home-screen icon (b) comes from an app store (c) is installed on a phone (d) opens in a web browser
  7. 7.🗒️ Why keep version 1 small? (a) to use up storage (b) to learn from users soon (c) to confuse users (d) to look bigger
  8. 8.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Riya", "Arjun", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Arjun (c) Hi, Riya (d) Hi, Aman
  9. 9.🔁 What number does this code show?
    let marks = [1, 3, 11, 9];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  10. 10.🎯 Is this a user need or a feature: “I forget my homework”? (a) a user need (b) a feature
  11. 11.🧪 How many of these test cases pass?
    🎟️ 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(14) → expected 100
    Test 2: price(8) → expected 50
    Test 3: price(12) → expected 100
  12. 12.🔢 After an app is released, which comes FIRST? (a) fix and improve (b) read user reviews (c) release an update (d) list what to fix
  13. 13.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Next button: 28 px tall
    Help button: 72 px tall
    Send button: 48 px tall
    (a) Send (b) Next (c) Help
  14. 14.💡 Which is a problem statement? (a) “Use blue buttons” (b) “Kids forget homework” (c) “Make it fast” (d) “Add a logo”
  15. 15.👥 A school app has 110 students, 185 teachers and 35 parents as users. How many users does it have in all?
  16. 16.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 50; // start at 50
    line 2: score = score - 2; // take away 1
    line 3: score = score + 4; // add 4
    line 4: score = score - 3; // take away 3
    line 5: show(score); // show it
  17. 17.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(12));
  18. 18.🚀 A privacy policy tells users ___. (a) the app’s price (b) what data is collected (c) the screen size (d) the app’s colours
  19. 19.Which of these is an input? (a) a buzz (vibration) (b) sorting the scores (c) a beep sound (d) typing your age
  20. 20.🔢 In a photo-post flow, what comes right after “write a caption”? (a) add a filter (b) open the camera screen (c) take the photo (d) post the photo
  21. 21.🐞 Finding and fixing bugs is called ___. (a) downloading (b) designing (c) decorating (d) debugging
  22. 22.🐞 A comment in code (after //) is for ___. (a) the battery (b) the phone screen (c) the app store (d) people reading the code
  23. 23.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 40; // start at 39
    line 2: lives = lives + 2; // add 2
    line 3: lives = lives + 3; // add 3
    line 4: show(lives); // show it
    (a) line 3 (b) line 2 (c) line 1
  24. 24.True or false: you spot a problem to solve at the test stage. (a) True (b) False
  25. 25.🔁 What number does this code show?
    let marks = [13, 6, 12];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  26. 26.🧩 How many buttons does this app screen have?
    [title] Order Snacks
    [button] Cancel
    [text box] Name
    [button] Next
  27. 27.🔍 Which is the odd one out? (a) a times-table quiz (b) a spelling coach (c) a flashcard trainer (d) a step counter
  28. 28.🔍 Which is the odd one out? (a) tapping a button (b) taking a photo (c) speaking a command (d) a result on screen
  29. 29.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Match report”
    2. open “Help page”
    3. open “Map”
    Which screen are you on now?
    (a) Lessons (b) Match report (c) Map (d) Help page
  30. 30.📱 Which one opens in a web browser: an app or a website? (a) an app (b) a website
  31. 31.🗒️ 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: 1 days
    check the answer: 4 days
    show the score: 5 days
  32. 32.📅 An app team plans for 4 days, builds for 9 days, tests for 3 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
  33. 33.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 20;
    }
    show(fee(3) + fee(1));
  34. 34.🔢 In a quiz-app flow, which comes FIRST? (a) tap “Start quiz” (b) see if it is right (c) see the final score (d) read a question
  35. 35.Which of these app ideas solves no real problem? (a) a bill splitter (b) a library due-date alert (c) a lost-and-found board (d) a page of random dots
  36. 36.🗒️ In MVP, the M stands for ___. (a) mobile (b) maximum (c) music (d) minimum
  37. 37.🧩 Which input is best for typing your name? (a) a switch (b) a slider (c) a picture (d) a text box
  38. 38.True or false: sorting the scores is an input. (a) False (b) True
  39. 39.Which of these fits saving in the cloud? (a) notes to read offline (b) the sound on/off setting (c) a shared to-do list (d) a draft you are typing
  40. 40.👆 What kind of event is this: one second passes? (a) a load event (b) a timer event (c) a tap event (d) a text event

Answer key

  1. False
  2. what the app really does
  3. Test 1
  4. 3
  5. to reuse code
  6. opens in a web browser
  7. to learn from users soon
  8. Hi, Meera
  9. 24
  10. a user need
  11. 2
  12. read user reviews
  13. Next
  14. “Kids forget homework”
  15. 330
  16. 49
  17. 24
  18. what data is collected
  19. typing your age
  20. post the photo
  21. debugging
  22. people reading the code
  23. line 1
  24. False
  25. 31
  26. 2
  27. a step counter
  28. a result on screen
  29. Map
  30. a website
  31. 1
  32. 13
  33. 0
  34. tap “Start quiz”
  35. a page of random dots
  36. minimum
  37. a text box
  38. False
  39. a shared to-do list
  40. a timer event

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