← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 302 · 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.💾 pop() takes off the last item. What does this code show?
    let notes = ["Sports", "Maths", "Music"];
    notes.pop();
    show(notes[notes.length - 1]);
    (a) Maths (b) Music (c) Sports
  2. 2.⚙️ What number does this app show?
    let price = 50; // typed by the user
    let qty = 4; // typed by the user
    let total = price * qty;
    show(total);
  3. 3.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(3));
  4. 4.🗒️ Version 1 of a pocket-money tracker must be ready in 13 days. How many days are left for extras after the must-haves?
    add money received: 3 days
    add money spent: 1 days
    show the balance: 4 days
  5. 5.Which of these is true of a wireframe? (a) uses the final pictures (b) looks like the real app (c) has the real colours (d) uses plain grey boxes
  6. 6.🧰 How do you run (call) a function called greet? (a) run greet (b) greet() (c) greet[] (d) #greet
  7. 7.True or false: “captions on videos” makes the app harder to use. (a) False (b) True
  8. 8.🔀 A screen with no way forward or back is called a ___. (a) shortcut (b) dead end (c) tab bar (d) home screen
  9. 9.True or false: you connect the data at the build stage. (a) False (b) True
  10. 10.♿ Why add captions to videos? (a) so anyone can follow (b) to add colour (c) to slow them down (d) to hide the sound
  11. 11.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Offers → Cart → Results → Pens → Item
    Design B: Home → Cart → Item → Size
    (a) Design B (b) Design A
  12. 12.🔍 Which is the odd one out? (a) a step counter (b) a times-table quiz (c) a flashcard trainer (d) a spelling coach
  13. 13.🚀 Which of these versions is the NEWEST?
    2.11.2, 2.6.5, 1.21.8, 2.3.8
    (a) 1.21.8 (b) 2.6.5 (c) 2.3.8 (d) 2.11.2
  14. 14.🔁 What is the LAST line this code shows?
    let names = ["Kabir", "Meera", "Riya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Kabir (c) Hi, Riya
  15. 15.Which of these app ideas solves a real problem? (a) a button with no action (b) a page of random dots (c) an app that just says hi (d) a bill splitter
  16. 16.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Pens → Shop → Cart → Offers → Pay
    Design B: Home → Pay → Cart → Pens → Menu → Confirm → Search
    (a) Design B (b) Design A
  17. 17.True or false: a 5-minute alarm ends is a text event. (a) True (b) False
  18. 18.♿ Does this help everyone, or make the app harder to use: captions on videos? (a) helps everyone (b) makes it harder
  19. 19.🔢 After an app is released, which comes LAST? (a) read user reviews (b) list what to fix (c) fix and improve (d) release an update
  20. 20.🔢 In a food-order flow, what comes right after “pay for the order”? (a) pick a dish (b) open the menu (c) add it to the cart (d) track the order
  21. 21.🎯 An app for “everyone” with no clear user usually ___. (a) helps nobody well (b) is easy to build (c) needs no testing (d) wins every prize
  22. 22.🔢 In a sign-up flow, which comes first: “see the home screen” or “type name and email”? (a) see the home screen (b) type name and email
  23. 23.🧭 Which part of navigation switches main sections? (a) the back button (b) a tab bar (c) a menu button
  24. 24.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 45; // start at 42
    line 2: stars = stars + 4; // add 4
    line 3: stars = stars * 2; // double it
    line 4: stars = stars + 3; // add 3
    line 5: show(stars); // show it
  25. 25.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(30, 4));
  26. 26.True or false: a final design uses the final pictures. (a) True (b) False
  27. 27.🔢 In a quiz-app flow, what comes right after “see if it is right”? (a) read a question (b) tap “Start quiz” (c) see the final score (d) pick an answer
  28. 28.🔢 In a quiz-app flow, which comes first: “pick an answer” or “see the final score”? (a) see the final score (b) pick an answer
  29. 29.🧪 How many of these test cases pass?
    🎟️ 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(16) → expected 100
    Test 2: price(13) → expected 100
    Test 3: price(9) → expected 50
  30. 30.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Menu → Search
    Design B: Home → Address → Cart → Search → Offers → Size
    (a) Design A (b) Design B
  31. 31.📅 An app team plans for 3 days, builds for 11 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
  32. 32.📅 An app team plans for 5 days, builds for 10 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
  33. 33.True or false: you try every button at the idea stage. (a) False (b) True
  34. 34.🧪 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(6) → expected Pass
    Test 2: result(8) → expected Pass
    Test 3: result(5) → expected Try again
    (a) Test 3 (b) Test 1 (c) Test 2
  35. 35.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 42; // start at 41
    line 2: lives = lives - 1; // take away 1
    line 3: lives = lives * 2; // double it
    line 4: show(lives); // show it
    (a) line 3 (b) line 2 (c) line 1
  36. 36.🔢 When you make an app, which comes LAST? (a) get an idea (b) test the app (c) release it (d) plan the screens
  37. 37.🧪 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(14) → expected 100
    Test 2: price(12) → expected 50
    Test 3: price(17) → expected 100
    (a) Test 2 (b) Test 3 (c) Test 1
  38. 38.True or false: a pop-up message is an output. (a) False (b) True
  39. 39.True or false: a website has a home-screen icon. (a) False (b) True
  40. 40.🔢 In a photo-post flow, which comes FIRST? (a) post the photo (b) take the photo (c) open the camera screen (d) add a filter

Answer key

  1. Maths
  2. 200
  3. 6
  4. 5
  5. uses plain grey boxes
  6. greet()
  7. False
  8. dead end
  9. True
  10. so anyone can follow
  11. Design B
  12. a step counter
  13. 2.11.2
  14. Hi, Riya
  15. a bill splitter
  16. Design A
  17. False
  18. helps everyone
  19. release an update
  20. track the order
  21. helps nobody well
  22. type name and email
  23. a tab bar
  24. 95
  25. 120
  26. True
  27. see the final score
  28. pick an answer
  29. 3
  30. Design A
  31. 10
  32. 9
  33. False
  34. Test 1
  35. line 1
  36. release it
  37. Test 1
  38. True
  39. False
  40. open the camera screen

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