← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 263 · 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.🔀 Which badge does this quiz app show?
    let marks = 58;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Silver (b) Bronze (c) Gold
  2. 2.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
    Design A: Home → Menu → Pens → Offers → Search → Confirm → Item
    Design B: Home → Item → Pens → Shop
  3. 3.📅 An app team plans for 5 days, builds for 4 days, tests for 3 days and releases on 1 more day. How many more days does building take than testing?
  4. 4.Which of these is an input? (a) taking a photo (b) a buzz (vibration) (c) sorting the scores (d) a result on screen
  5. 5.🔁 Why use a loop to show 100 messages? (a) it hides them (b) it uses more lines (c) it is slower (d) less code to write
  6. 6.Which of these makes the app harder to use? (a) big touch targets (b) captions on videos (c) tiny tap areas (d) text that can grow
  7. 7.True or false: you list what users need at the test stage. (a) True (b) False
  8. 8.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 31; // start at 31
    line 2: score = score - 4; // take away 3
    line 3: score = score - 4; // take away 4
    line 4: show(score); // show it
  9. 9.🔀 What number does this shop app show?
    let total = 360;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  10. 10.🛠️ At which stage do you connect the data? (a) the release stage (b) the build stage (c) the idea stage (d) the plan stage
  11. 11.True or false: a wireframe is a quick sketch. (a) False (b) True
  12. 12.👆 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) ON (b) OFF
  13. 13.💾 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
  14. 14.🔁 What number does this code show?
    let steps = [12, 11, 7, 4];
    let best = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] > best) {
        best = steps[i];
      }
    }
    show(best);
  15. 15.🎨 UX stands for user ___. (a) express (b) extra (c) experience (d) example
  16. 16.🧪 What is the ACTUAL result of Test 1?
    🎟️ 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(17) → expected 100
    Test 2: price(13) → expected 50
    Test 3: price(14) → expected 100
  17. 17.True or false: a website is installed on a phone. (a) True (b) False
  18. 18.🧰 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(8) + fee(3));
  19. 19.📅 An app team plans for 5 days, builds for 7 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
  20. 20.🔢 In a food-order flow, which comes first: “check the cart” or “open the menu”? (a) check the cart (b) open the menu
  21. 21.Which of these is true of an app? (a) needs no installing (b) opens in a web browser (c) is installed on a phone (d) opens from a link
  22. 22.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(2) + points(1));
  23. 23.👥 A cricket club app has 215 players, 50 coaches and 275 fans as users. How many more players than coaches are there?
  24. 24.🔁 What number does this code show?
    let runs = [89, 50, 33, 53, 29];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  25. 25.🔁 What number does this code show?
    let marks = [75, 95, 84, 91, 40];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  26. 26.🔐 A torch app asks for your contacts. What should you do? (a) share them all (b) post them online (c) deny it (d) allow it
  27. 27.🚀 Which of these versions is the NEWEST?
    4.17.2, 4.19.1, 3.25.3, 4.18.8
    (a) 4.19.1 (b) 4.18.8 (c) 4.17.2 (d) 3.25.3
  28. 28.True or false: a pocket-money tracker is the best fit for a child saving up for a cycle. (a) True (b) False
  29. 29.🔐 Which permission does a weather-near-me app really need? (a) contacts (b) the camera (c) the microphone (d) location
  30. 30.🧭 What does the back button usually do? (a) deletes the page (b) opens settings (c) goes to the last screen (d) closes all apps
  31. 31.👆 The user taps the button 3 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
  32. 32.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 37; // start at 37
    line 2: points = points + 2; // take away 2
    line 3: points = points * 2; // double it
    line 4: points = points * 2; // double it
    line 5: show(points); // show it
  33. 33.Which of these is about UX (the experience)? (a) the button colours (b) the icon shapes (c) the font size (d) how fast a task is done
  34. 34.✏️ Is this true of a wireframe or of a final design: has the real colours? (a) a final design (b) a wireframe
  35. 35.Which of these is true of a website? (a) comes from an app store (b) has a web address (c) is installed on a phone (d) has a home-screen icon
  36. 36.🔁 What number does this code show?
    let steps = [12, 6, 1];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  37. 37.True or false: a wireframe has the real colours. (a) True (b) False
  38. 38.Which of these is about UI (the look)? (a) how users feel after (b) how easy sign-up is (c) whether users get lost (d) the theme colours
  39. 39.🔀 What does this PIN rule show?
    let pin = "681";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  40. 40.🔢 In a food-order flow, what comes right after “pick a dish”? (a) open the menu (b) check the cart (c) track the order (d) add it to the cart

Answer key

  1. Silver
  2. 6
  3. 1
  4. taking a photo
  5. less code to write
  6. tiny tap areas
  7. False
  8. 23
  9. 360
  10. the build stage
  11. True
  12. OFF
  13. on the phone
  14. 12
  15. experience
  16. 100
  17. False
  18. 50
  19. 6
  20. open the menu
  21. is installed on a phone
  22. 40
  23. 165
  24. 3
  25. 4
  26. deny it
  27. 4.19.1
  28. True
  29. location
  30. goes to the last screen
  31. ON
  32. 140
  33. how fast a task is done
  34. a final design
  35. has a web address
  36. 19
  37. False
  38. the theme colours
  39. Use 4 digits
  40. add it to the cart

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