← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 923 · 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.🔁 list.length tells you ___. (a) the last item (b) how many items it has (c) the first item (d) the biggest item
  2. 2.Which of these is a user need? (a) a share button (b) a reminder alarm (c) “What should I cook?” (d) a dark mode switch
  3. 3.♿ A screen has 9 icon buttons. Only 5 of them have a text label for screen readers. How many still need a label?
  4. 4.🖼️ How many parts (boxes) does this wireframe have?
    [ tab bar ]
    [ Add button ]
    [ filter buttons ]
    [ top bar ]
    [ list of items ]
  5. 5.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) see today’s total (b) water animations (c) set a reminder time (d) log a glass of water
  6. 6.🐞 A comment in code (after //) is for ___. (a) the battery (b) the app store (c) people reading the code (d) the phone screen
  7. 7.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 40; // typed by the user
    line 2: let qty = 6; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 2 (c) line 1 (d) line 4
  8. 8.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
    function price(age) {
      if (age < 11) {
        return 50;
      }
      return 100;
    }
    Test 1: price(12) → expected 100
    Test 2: price(13) → expected 100
    Test 3: price(9) → expected 50
  9. 9.🔁 What number does this code show?
    let steps = [10, 2, 3, 14, 10];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  10. 10.🧰 What does this code show?
    function greet(name) {
      return "Well done, " + name + "!";
    }
    show(greet("Riya"));
    (a) Riya (b) Well done, name! (c) greet (d) Well done, Riya!
  11. 11.🔢 After an app is released, which comes LAST? (a) list what to fix (b) test it again (c) release an update (d) read user reviews
  12. 12.🧩 Which of these is a button on this screen?
    [title] Edit Profile
    [button] Next
    [text box] Age
    [text box] Subject
    (a) Subject (b) Next (c) Age
  13. 13.🔍 Which is the odd one out? (a) the theme colours (b) how users feel after (c) how easy sign-up is (d) whether users get lost
  14. 14.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(15, 4));
  15. 15.📊 Survey: which problem bugs you most? How many students voted in all?
    wasting pocket money: 13 votes
    losing water bottles: 7 votes
    forgetting homework: 9 votes
  16. 16.🔢 In a photo-post flow, which comes FIRST? (a) write a caption (b) take the photo (c) open the camera screen (d) add a filter
  17. 17.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 31; // start at 31
    line 2: lives = lives - 5; // take away 5
    line 3: lives = lives + 7; // add 4
    line 4: show(lives); // show it
  18. 18.⚙️ What number does this app show?
    let price = 85; // typed by the user
    let qty = 4; // typed by the user
    let total = price * qty;
    show(total);
  19. 19.🔀 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) Bronze (b) Gold (c) Silver
  20. 20.✏️ What is a wireframe? (a) the finished app (b) a type of password (c) a charging cable (d) a simple screen sketch
  21. 21.🧭 Tapping a tab usually takes you to ___. (a) the last app used (b) that tab’s main screen (c) the phone settings (d) a random page
  22. 22.🔀 What does this PIN rule show?
    let pin = "25485";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  23. 23.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(300) → expected 0
    Test 2: delivery(600) → expected 0
    Test 3: delivery(200) → expected 40
    (a) Test 2 (b) Test 1 (c) Test 3
  24. 24.True or false: a big, easy tap area is poor button design. (a) False (b) True
  25. 25.⚙️ What number does this app show?
    let bill = 120; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  26. 26.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(70, 6));
  27. 27.🔍 Which is the odd one out? (a) put it on an app store (b) talk to possible users (c) write the store text (d) share the download link
  28. 28.🛠️ At which stage do you try every button? (a) the plan stage (b) the release stage (c) the test stage (d) the idea stage
  29. 29.🎯 Is this a user need or a feature: a search bar? (a) a feature (b) a user need
  30. 30.True or false: the theme colours is about UI (the look). (a) False (b) True
  31. 31.♿ Showing right or wrong only in red and green is a problem for ___. (a) the battery (b) the server (c) fast typists (d) colour-blind users
  32. 32.📊 Survey: which problem bugs you most? How many more votes did “no quiet study place” get than “losing water bottles”?
    forgetting homework: 12 votes
    no quiet study place: 24 votes
    losing water bottles: 10 votes
  33. 33.🔁 What number does this code show?
    let runs = [20, 7, 6, 4];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  34. 34.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) an avatar shop (b) show the score (c) confetti effects (d) background music
  35. 35.🧩 In an app, what is a date picker? (a) a screen (b) data (c) a button (d) an input
  36. 36.🐞 What is a bug? (a) a new feature (b) a fast phone (c) a mistake in the code (d) a nice icon
  37. 37.🖼️ In this wireframe (top to bottom), what is right above the big picture?
    [ search box ]
    [ menu icon ]
    [ big picture ]
    [ top bar ]
    [ tab bar ]
    (a) menu icon (b) tab bar (c) top bar (d) search box
  38. 38.🧪 What is the ACTUAL result of Test 3?
    🎟️ Rule: a ticket costs 50 for children under 13, and 100 for everyone else.
    function price(age) {
      if (age <= 13) {
        return 50;
      }
      return 100;
    }
    Test 1: price(17) → expected 100
    Test 2: price(12) → expected 50
    Test 3: price(14) → expected 100
  39. 39.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) earn stickers (b) pick a theme colour (c) share tasks to friends (d) add a homework task
  40. 40.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 39; // start at 39
    line 2: stars = stars * 2; // double it
    line 3: stars = stars + 2; // double it
    line 4: stars = stars - 3; // take away 3
    line 5: show(stars); // show it

Answer key

  1. how many items it has
  2. “What should I cook?”
  3. 4
  4. 5
  5. water animations
  6. people reading the code
  7. line 3
  8. 3
  9. 39
  10. Well done, Riya!
  11. release an update
  12. Next
  13. the theme colours
  14. 60
  15. 29
  16. open the camera screen
  17. 30
  18. 340
  19. Bronze
  20. a simple screen sketch
  21. that tab’s main screen
  22. Use 4 digits
  23. Test 1
  24. False
  25. 60
  26. 420
  27. talk to possible users
  28. the test stage
  29. a feature
  30. True
  31. colour-blind users
  32. 14
  33. 37
  34. show the score
  35. an input
  36. a mistake in the code
  37. menu icon
  38. 100
  39. add a homework task
  40. 77

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