← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 326 · 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 the LAST line this code shows?
    let names = ["Arjun", "Aman", "Zoya", "Kabir", "Riya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Aman (c) Hi, Arjun (d) Hi, Riya
  2. 2.🧪 What is the ACTUAL result of Test 3?
    🎟️ 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(15) → expected 100
    Test 2: price(14) → expected 100
    Test 3: price(9) → expected 50
  3. 3.💾 Where should the app save a shared to-do list: on the phone or in the cloud? (a) on the phone (b) in the cloud
  4. 4.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 48; // start at 45
    line 2: points = points * 2; // double it
    line 3: points = points + 3; // add 3
    line 4: points = points * 2; // double it
    line 5: show(points); // show it
  5. 5.♿ Does this help everyone, or make the app harder to use: strong colour contrast? (a) helps everyone (b) makes it harder
  6. 6.🔢 When you make an app, which comes first: “get an idea” or “test the app”? (a) get an idea (b) test the app
  7. 7.🔀 What does this battery rule show?
    let battery = 92;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  8. 8.🔍 Which is the odd one out? (a) let friends try it (b) try every button (c) talk to possible users (d) write down the bugs
  9. 9.True or false: a guitar tuner needs the camera. (a) False (b) True
  10. 10.Which of these happens at the release stage? (a) talk to possible users (b) add the buttons (c) write the store text (d) draw the user flow
  11. 11.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(2) + points(3));
  12. 12.🔢 In a food-order flow, what comes right after “pay for the order”? (a) add it to the cart (b) check the cart (c) open the menu (d) track the order
  13. 13.🔁 A loop over a list of 5 items runs its body how many times? (a) 4 (b) 1 (c) 6 (d) 5
  14. 14.🔀 What does this battery rule show?
    let battery = 46;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  15. 15.🔢 In a quiz-app flow, what comes right after “pick an answer”? (a) see the final score (b) read a question (c) see if it is right (d) tap “Start quiz”
  16. 16.📅 An app team plans for 5 days, builds for 6 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
  17. 17.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 45; // start at 45
    line 2: lives = lives - 4; // take away 4
    line 3: lives = lives + 3; // add 2
    line 4: show(lives); // show it
  18. 18.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) set a reminder time (b) water animations (c) see today’s total (d) log a glass of water
  19. 19.Which of these is data? (a) tap to go Next (b) your friends list (c) the settings page (d) a date picker
  20. 20.Which of these happens at the idea stage? (a) talk to possible users (b) connect the data (c) pick the features (d) sketch the screens
  21. 21.🧭 Which part of navigation sits at the bottom? (a) a tab bar (b) a menu button (c) the back button
  22. 22.True or false: tap to Send is a screen. (a) False (b) True
  23. 23.Which colour pair is easy to read? (a) light grey on white (b) pale pink on white (c) dark blue on black (d) white on black
  24. 24.🧩 In an app, what is tap to Save? (a) a button (b) an input (c) a screen (d) data
  25. 25.👥 A library app has 140 readers, 60 librarians and 245 volunteers as users. Which user group is the biggest? (a) volunteers (b) librarians (c) readers
  26. 26.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 30;
    }
    show(fee(2) + fee(10));
  27. 27.👆 The user taps the button 5 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 2) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  28. 28.🎨 Fewer taps to finish a task usually means ___. (a) worse UX (b) more colours (c) a bigger app (d) better UX
  29. 29.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) an avatar shop (b) background music (c) confetti effects (d) show the score
  30. 30.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) pick a theme colour (b) see tasks by day (c) share tasks to friends (d) earn stickers
  31. 31.🔢 In a food-order flow, which comes FIRST? (a) check the cart (b) add it to the cart (c) pay for the order (d) open the menu
  32. 32.True or false: a result on screen is an output. (a) False (b) True
  33. 33.🗒️ A to-do app with no “add a task” feature is ___. (a) ready to release (b) well planned (c) a nice extra (d) missing a must-have
  34. 34.📊 Survey: which problem bugs you most? How many more votes did “missing the bus” get than “no quiet study place”?
    wasting pocket money: 7 votes
    missing the bus: 18 votes
    no quiet study place: 8 votes
  35. 35.🧪 Who else should try an app before release? (a) nobody (b) real users (c) only the coder (d) the app icon
  36. 36.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 800) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(1100) → expected 0
    Test 2: delivery(650) → expected 40
    Test 3: delivery(800) → expected 0
    (a) Test 2 (b) Test 1 (c) Test 3
  37. 37.💾 What number does this code show?
    let notes = ["Maths", "Art", "Hindi", "Science"];
    notes.push("Sports");
    notes.push("Music");
    show(notes.length);
  38. 38.💡 How can you check that people really have the problem? (a) pick a colour (b) ask possible users (c) copy another app (d) just guess
  39. 39.🔀 Which badge does this quiz app show?
    let marks = 70;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Silver (c) Bronze
  40. 40.👆 The user taps the button 4 times. What number does the label show now?
    let score = 0;
    button.onTap = function () {
      score = score + 2;
      label.text = score;
    };

Answer key

  1. Hi, Riya
  2. 50
  3. in the cloud
  4. 186
  5. helps everyone
  6. get an idea
  7. Battery OK
  8. talk to possible users
  9. False
  10. write the store text
  11. 60
  12. track the order
  13. 5
  14. Battery OK
  15. see if it is right
  16. 5
  17. 43
  18. water animations
  19. your friends list
  20. talk to possible users
  21. a tab bar
  22. False
  23. white on black
  24. a button
  25. volunteers
  26. 30
  27. 2
  28. better UX
  29. show the score
  30. see tasks by day
  31. open the menu
  32. True
  33. missing a must-have
  34. 10
  35. real users
  36. Test 3
  37. 6
  38. ask possible users
  39. Silver
  40. 8

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