← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 348 · 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.👆 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
  2. 2.🧰 What is a function? (a) a named block of code (b) a list of colours (c) a type of phone (d) a screen size
  3. 3.🧩 In an app, what is a date picker? (a) a screen (b) an input (c) data (d) a button
  4. 4.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 600) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(900) → expected 0
    Test 2: delivery(450) → expected 40
    Test 3: delivery(600) → expected 0
    (a) Test 2 (b) Test 1 (c) Test 3
  5. 5.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 42; // start at 42
    line 2: coins = coins - 6; // add 6
    line 3: coins = coins - 4; // take away 4
    line 4: show(coins); // show it
    (a) line 2 (b) line 3 (c) line 1
  6. 6.True or false: you add the buttons at the idea stage. (a) False (b) True
  7. 7.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) add money spent (b) show the balance (c) add money received (d) export to a file
  8. 8.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
    Design A: Home → Address → Item → Pay
    Design B: Home → Item → Offers → Shop → Confirm → Pens → Size
  9. 9.Which colour pair is easy to read? (a) light grey on white (b) red on green (c) white on black (d) yellow on white
  10. 10.📱 Which one updates from the store: an app or a website? (a) an app (b) a website
  11. 11.🎯 Is this a user need or a feature: “I keep missing the bus”? (a) a user need (b) a feature
  12. 12.🧩 In an app, what is the log-in page? (a) a button (b) a screen (c) data (d) an input
  13. 13.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 20;
    }
    show(fee(6) + fee(9));
  14. 14.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(3) + points(1));
  15. 15.🎨 Who should you test the UX with? (a) the app icon (b) real users (c) nobody (d) only yourself
  16. 16.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(27));
  17. 17.🎯 Which app would help this user most: a student who keeps forgetting due dates? (a) a water reminder (b) a pocket-money tracker (c) a recipe finder (d) a homework planner
  18. 18.📊 Survey: which problem bugs you most? How many students voted in all?
    losing water bottles: 19 votes
    forgetting homework: 13 votes
    wasting pocket money: 8 votes
  19. 19.🔀 What does this battery rule show?
    let battery = 63;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  20. 20.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 36; // start at 36
    line 2: points = points * 2; // double it
    line 3: points = points * 2; // double it
    line 4: points = points + 2; // take away 2
    line 5: show(points); // show it
    (a) line 1 (b) line 2 (c) line 3 (d) line 4
  21. 21.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) earn stickers (b) add a homework task (c) pick a theme colour (d) share tasks to friends
  22. 22.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 8 or more right answers.
    function result(right) {
      if (right >= 8) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(8) → expected Pass
    Test 2: result(10) → expected Pass
    Test 3: result(7) → expected Try again
  23. 23.True or false: taking a photo is an input. (a) False (b) True
  24. 24.⚙️ What number does this app show?
    let price = 590; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  25. 25.🧩 Which of these is a button on this screen?
    [title] Sign Up
    [button] Start
    [slider] Text size
    [button] Help
    [button] Send
    [text box] Phone
    (a) Text size (b) Help (c) Phone
  26. 26.Which of these is true of a website? (a) opens from a link (b) updates from the store (c) comes from an app store (d) is installed on a phone
  27. 27.🔐 Which permission does a walking map really need? (a) location (b) the microphone (c) the camera (d) contacts
  28. 28.👆 The user types Arjun in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hi, " + nameBox.text + "!";
    };
    (a) Arjun (b) Hi, Arjun! (c) Hi, nameBox.text! (d) Hi!
  29. 29.🔀 Why plan the user flow before building? (a) to hide the buttons (b) to add more taps (c) to skip testing (d) so each step is clear
  30. 30.Which of these is a user need? (a) a dark mode switch (b) a search bar (c) “I keep missing the bus” (d) a reminder alarm
  31. 31.🔀 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
  32. 32.Which of these is a button? (a) your high score (b) tap to go Next (c) the game-over page (d) the log-in page
  33. 33.♿ Does this help everyone, or make the app harder to use: text that can grow? (a) helps everyone (b) makes it harder
  34. 34.🔀 What does this PIN rule show?
    let pin = "199";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  35. 35.🔀 Which badge does this quiz app show?
    let marks = 37;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Bronze (c) Silver
  36. 36.Which of these is true of a wireframe? (a) uses the final pictures (b) shows the real fonts (c) looks like the real app (d) uses plain grey boxes
  37. 37.🚀 Which version is newer: 1.5.1 or 1.15.3? (a) 1.5.1 (b) 1.15.3
  38. 38.👥 A library app has 65 readers, 80 librarians and 210 volunteers as users. How many users does it have in all?
  39. 39.🗒️ Version 1 of a quiz app must be ready in 9 days. How many days are left for extras after the must-haves?
    show a question: 1 days
    check the answer: 1 days
    show the score: 4 days
  40. 40.👆 The user taps the button 6 times. What number does the label show now?
    let lives = 4;
    button.onTap = function () {
      lives = lives + 2;
      label.text = lives;
    };

Answer key

  1. ON
  2. a named block of code
  3. an input
  4. Test 3
  5. line 2
  6. False
  7. export to a file
  8. 3
  9. white on black
  10. an app
  11. a user need
  12. a screen
  13. 40
  14. 50
  15. real users
  16. 81
  17. a homework planner
  18. 40
  19. Battery OK
  20. line 4
  21. add a homework task
  22. 3
  23. True
  24. 580
  25. Help
  26. opens from a link
  27. location
  28. Hi, Arjun!
  29. so each step is clear
  30. “I keep missing the bus”
  31. Battery OK
  32. tap to go Next
  33. helps everyone
  34. Use 4 digits
  35. Bronze
  36. uses plain grey boxes
  37. 1.15.3
  38. 355
  39. 3
  40. 16

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