← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 733 · 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 number does this shop app show?
    let total = 280;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  2. 2.💾 Where should the app save the sound on/off setting: on the phone or in the cloud? (a) on the phone (b) in the cloud
  3. 3.🔁 What number does this code show?
    let scores = [28, 44, 56, 78, 33];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  4. 4.🔀 Which badge does this quiz app show?
    let marks = 76;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Silver (c) Bronze
  5. 5.Which of these is true of a final design? (a) uses plain grey boxes (b) has no real colours (c) has the real colours (d) is a quick sketch
  6. 6.Which of these is true of a tab bar? (a) hides extra links (b) shows 3 to 5 icons (c) opens a list of pages (d) undoes one move
  7. 7.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) share your streak (b) water animations (c) see today’s total (d) custom alert sounds
  8. 8.🎯 Is this a user need or a feature: “What should I cook?”? (a) a feature (b) a user need
  9. 9.Which of these is true of a website? (a) comes from an app store (b) has a home-screen icon (c) opens from a link (d) updates from the store
  10. 10.⚙️ What number does this app show?
    let price = 600; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  11. 11.👆 The user taps the button 1 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) ON (b) OFF
  12. 12.🔢 When you make an app, which comes first: “release it” or “plan the screens”? (a) plan the screens (b) release it
  13. 13.👆 The user types Zoya in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hi, " + nameBox.text + "!";
    };
    (a) Zoya (b) Hi! (c) Hi, nameBox.text! (d) Hi, Zoya!
  14. 14.💾 Where should the app save chat messages to friends: on the phone or in the cloud? (a) in the cloud (b) on the phone
  15. 15.True or false: you sketch the screens at the idea stage. (a) False (b) True
  16. 16.True or false: the screen first opens is a load event. (a) True (b) False
  17. 17.🧩 In an app, what is tap to Send? (a) an input (b) a screen (c) data (d) a button
  18. 18.🎨 Is this about UI or UX: the theme colours? (a) UI (b) UX
  19. 19.Which of these app ideas solves a real problem? (a) an app that just says hi (b) a blank grey screen (c) a page of random dots (d) a library due-date alert
  20. 20.🔁 What is the LAST line this code shows?
    let names = ["Zoya", "Arjun", "Aman"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Aman (c) Hi, Arjun
  21. 21.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(2) + points(5));
  22. 22.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(100, 6));
  23. 23.Which of these happens at the idea stage? (a) draw the user flow (b) list what users need (c) write down the bugs (d) let friends try it
  24. 24.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Pay → Confirm → Item → Size → Shop
    Design B: Home → Address → Confirm → Item → Pens
    (a) Design A (b) Design B
  25. 25.Which of these is a feature? (a) “I keep missing the bus” (b) “Small text is hard” (c) “I forget my homework” (d) a dark mode switch
  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 50;
    }
    show(fee(10) + fee(6));
  27. 27.🔍 Which is the odd one out? (a) a pop-up message (b) a result on screen (c) taking a photo (d) a buzz (vibration)
  28. 28.🗒️ Version 1 of a homework planner must be ready in 13 days. How many days are left for extras after the must-haves?
    add a homework task: 2 days
    set a due date: 1 days
    see tasks by day: 5 days
  29. 29.🗒️ Version 1 of a quiz app must be ready in 10 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
  30. 30.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Done button: 56 px tall
    Next button: 60 px tall
    Save button: 24 px tall
    (a) Save (b) Done (c) Next
  31. 31.🔍 Which is the odd one out? (a) a times-table quiz (b) a torch (c) a flashcard trainer (d) a spelling coach
  32. 32.🔍 Which is the odd one out? (a) list what users need (b) talk to possible users (c) draw the user flow (d) spot a problem to solve
  33. 33.🔢 In a sign-up flow, which comes LAST? (a) see the home screen (b) tap “Sign up” (c) open the app (d) enter the code sent
  34. 34.👥 A library app has 140 readers, 230 librarians and 280 volunteers as users. How many users does it have in all?
  35. 35.🔀 What does this battery rule show?
    let battery = 60;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  36. 36.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) share tasks to friends (b) earn stickers (c) pick a theme colour (d) set a due date
  37. 37.🧭 Why should every screen show where you are? (a) to hide the menu (b) to look busy (c) to use more battery (d) so users do not get lost
  38. 38.🎯 Which app would help this user most: a cook with no idea for dinner? (a) a pocket-money tracker (b) a recipe finder (c) a big-text reader (d) a water reminder
  39. 39.🧪 What is the ACTUAL result of Test 3?
    🚚 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(500) → expected 0
    Test 2: delivery(750) → expected 0
    Test 3: delivery(450) → expected 40
  40. 40.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(2) + points(0));

Answer key

  1. 280
  2. on the phone
  3. 1
  4. Silver
  5. has the real colours
  6. shows 3 to 5 icons
  7. see today’s total
  8. a user need
  9. opens from a link
  10. 580
  11. ON
  12. plan the screens
  13. Hi, Zoya!
  14. in the cloud
  15. False
  16. True
  17. a button
  18. UI
  19. a library due-date alert
  20. Hi, Aman
  21. 80
  22. 600
  23. list what users need
  24. Design B
  25. a dark mode switch
  26. 100
  27. taking a photo
  28. 5
  29. 0
  30. Save
  31. a torch
  32. draw the user flow
  33. see the home screen
  34. 650
  35. Battery OK
  36. set a due date
  37. so users do not get lost
  38. a recipe finder
  39. 40
  40. 30

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