← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 372 · 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 kind of app is a torch? (a) a tool app (b) a learning app (c) a health app (d) a game
  2. 2.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(15));
  3. 3.🌐 Which program do you need to open a website? (a) a camera app (b) a calculator (c) a web browser (d) an app store
  4. 4.True or false: how fast a task is done is about UI (the look). (a) True (b) False
  5. 5.👆 The user taps the button 2 times. What does the label show now?
    let on = false;
    button.onTap = function () {
      on = !on;
      if (on) {
        label.text = "ON";
      } else {
        label.text = "OFF";
      }
    };
    (a) OFF (b) ON
  6. 6.💾 What is a variable? (a) a type of screen (b) a picture (c) a named box for a value (d) a phone setting
  7. 7.👥 A clinic app has 185 patients, 155 doctors and 25 nurses as users. Which user group is the biggest? (a) nurses (b) doctors (c) patients
  8. 8.Which of these app ideas solves no real problem? (a) a page of random dots (b) a lost-and-found board (c) a medicine reminder (d) a free study-room finder
  9. 9.📅 An app team plans for 3 days, builds for 6 days, tests for 2 days and releases on 1 more day. How many days does the whole project take?
  10. 10.🔁 What number does this code show?
    let runs = [83, 80, 35, 81];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  11. 11.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    forgetting homework: 16 votes
    missing the bus: 23 votes
    wasting pocket money: 20 votes
    (a) wasting pocket money (b) missing the bus (c) forgetting homework
  12. 12.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Match report”
    2. tap the Chat tab
    3. open “Score card”
    Which screen are you on now?
    (a) Feed (b) Match report (c) Chat (d) Score card
  13. 13.🔍 Which is the odd one out? (a) a calculator (b) a unit converter (c) a torch (d) a water reminder
  14. 14.True or false: the user presses Save is a tap event. (a) True (b) False
  15. 15.✏️ A box with a cross in a wireframe usually means ___. (a) a picture goes here (b) a closed app (c) an error (d) delete this
  16. 16.🔢 When you make an app, what comes right after “test the app”? (a) get an idea (b) release it (c) plan the screens (d) build the app
  17. 17.Which of these is true of a wireframe? (a) uses the final pictures (b) shows the real fonts (c) shows where things go (d) looks like the real app
  18. 18.💾 pop() takes off the last item. What does this code show?
    let notes = ["Science", "Hindi", "Art"];
    notes.pop();
    show(notes[notes.length - 1]);
    (a) Art (b) Science (c) Hindi
  19. 19.🔍 Which is the odd one out? (a) a beep sound (b) a result on screen (c) a pop-up message (d) typing your age
  20. 20.🔀 What does this sign-up rule show?
    let age = 16;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  21. 21.True or false: a buzz (vibration) is an output. (a) True (b) False
  22. 22.📱 Which one comes from an app store: an app or a website? (a) an app (b) a website
  23. 23.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 40;
    }
    show(fee(8) + fee(6));
  24. 24.True or false: tap to go Next is a screen. (a) True (b) False
  25. 25.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(4) + points(0));
  26. 26.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(70, 2));
  27. 27.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
    Design A: Home → Confirm → Search → Offers
    Design B: Home → Pens → Search → Confirm → Cart → Menu
  28. 28.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 500) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(400) → expected 40
    Test 2: delivery(650) → expected 0
    Test 3: delivery(750) → expected 0
  29. 29.True or false: a wireframe shows where things go. (a) False (b) True
  30. 30.🔘 Our rule: buttons are at least 48 px tall. The Next button is 24 px tall. How many px taller must it be?
  31. 31.🧩 Which input is best for turning something ON or OFF? (a) a slider (b) a text box (c) a title (d) a switch
  32. 32.👆 The user taps the button 7 times. What does the label show now?
    let on = false;
    button.onTap = function () {
      on = !on;
      if (on) {
        label.text = "ON";
      } else {
        label.text = "OFF";
      }
    };
    (a) OFF (b) ON
  33. 33.👥 A clinic app has 200 patients, 190 doctors and 155 nurses as users. How many more patients than nurses are there?
  34. 34.👆 The user taps the button 7 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 4) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  35. 35.🧰 Why write a function? (a) to make code longer (b) to slow the app (c) to hide errors (d) to reuse code
  36. 36.📊 Survey: which problem bugs you most? How many more votes did “no quiet study place” get than “forgetting birthdays”?
    no quiet study place: 20 votes
    forgetting birthdays: 10 votes
    forgetting homework: 3 votes
  37. 37.🔀 What does this PIN rule show?
    let pin = "102";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  38. 38.🐞 After fixing a bug you should ___. (a) delete the test (b) test it again (c) release at once (d) never test
  39. 39.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 400) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(400) → expected 0
    Test 2: delivery(200) → expected 40
    Test 3: delivery(700) → expected 0
  40. 40.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Start button: 68 px tall
    Next button: 52 px tall
    Done button: 44 px tall
    (a) Start (b) Next (c) Done

Answer key

  1. a tool app
  2. 45
  3. a web browser
  4. False
  5. OFF
  6. a named box for a value
  7. patients
  8. a page of random dots
  9. 12
  10. 3
  11. missing the bus
  12. Score card
  13. a water reminder
  14. True
  15. a picture goes here
  16. release it
  17. shows where things go
  18. Hindi
  19. typing your age
  20. Welcome!
  21. True
  22. an app
  23. 80
  24. False
  25. 50
  26. 140
  27. 3
  28. 3
  29. True
  30. 24
  31. a switch
  32. ON
  33. 45
  34. 4
  35. to reuse code
  36. 10
  37. Use 4 digits
  38. test it again
  39. 3
  40. Done

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