← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 227 · 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 of these is a user need? (a) a search bar (b) a dark mode switch (c) “I keep missing the bus” (d) a reminder alarm
  2. 2.💡 Does an app idea like a bill splitter solve a real problem? (a) No (b) Yes
  3. 3.🎨 Is this about UI or UX: the icon shapes? (a) UI (b) UX
  4. 4.💡 Does an app idea like a page of random dots solve a real problem? (a) Yes (b) No
  5. 5.♿ Does this help everyone, or make the app harder to use: strong colour contrast? (a) helps everyone (b) makes it harder
  6. 6.💾 What number does this code show?
    let friends = ["Aman", "Zoya"];
    friends.push("Kabir");
    show(friends.length);
  7. 7.🖼️ In this wireframe (top to bottom), what is right above the top bar?
    [ tab bar ]
    [ top bar ]
    [ search box ]
    [ menu icon ]
    (a) search box (b) tab bar (c) menu icon
  8. 8.🔁 What number does this code show?
    let marks = [7, 17, 18];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  9. 9.👥 A school app has 100 students, 220 teachers and 300 parents as users. How many users does it have in all?
  10. 10.👥 A school app has 115 students, 295 teachers and 240 parents as users. Which user group is the biggest? (a) students (b) parents (c) teachers
  11. 11.🎨 Is this about UI or UX: the font size? (a) UI (b) UX
  12. 12.🔐 Is this permission request fair or too much: voice notes → microphone? (a) fair (b) too much
  13. 13.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    missing the bus: 13 votes
    losing water bottles: 4 votes
    wasting pocket money: 5 votes
    (a) missing the bus (b) wasting pocket money (c) losing water bottles
  14. 14.True or false: a word battle is a game. (a) False (b) True
  15. 15.👆 The user taps the button 2 times. What number does the label show now?
    let coins = 5;
    button.onTap = function () {
      coins = coins + 1;
      label.text = coins;
    };
  16. 16.🔍 Which is the odd one out? (a) working out a tip (b) checking a password (c) speaking a command (d) sorting the scores
  17. 17.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(45, 2));
  18. 18.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Help button: 56 px tall
    Back button: 48 px tall
    Save button: 32 px tall
  19. 19.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Map”
    2. open “Score card”
    3. open “Map”
    4. tap Back
    Which screen are you on now?
    (a) Map (b) Search (c) Score card (d) Home
  20. 20.🔁 What number does this code show?
    let scores = [54, 69, 22, 69, 70];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  21. 21.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 31; // start at 30
    line 2: coins = coins + 4; // add 4
    line 3: coins = coins * 2; // double it
    line 4: show(coins); // show it
    (a) line 3 (b) line 1 (c) line 2
  22. 22.🧩 In an app, what is a switch for dark mode? (a) data (b) a button (c) an input (d) a screen
  23. 23.🔢 In a sign-up flow, what comes right after “enter the code sent”? (a) tap “Sign up” (b) see the home screen (c) open the app (d) type name and email
  24. 24.🔀 What number does this shop app show?
    let total = 790;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  25. 25.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Body text: 26 px
    Label: 26 px
    Title: 18 px
    Caption: 26 px
    Footer: 12 px
    (a) Body text (b) Footer (c) Title (d) Label
  26. 26.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
    function price(age) {
      if (age <= 9) {
        return 50;
      }
      return 100;
    }
    Test 1: price(9) → expected 100
    Test 2: price(6) → expected 50
    Test 3: price(14) → expected 100
    (a) Test 2 (b) Test 3 (c) Test 1
  27. 27.💾 pop() takes off the last item. What does this code show?
    let friends = ["Zoya", "Riya", "Aman"];
    friends.pop();
    show(friends[friends.length - 1]);
    (a) Aman (b) Zoya (c) Riya
  28. 28.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Edit Profile
    [button] Start
    [text box] Age
    [button] Done
  29. 29.🗂️ What kind of app is an alarm clock? (a) a learning app (b) a game (c) a tool app (d) a health app
  30. 30.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. tap the Search tab
    2. tap the Home tab
    3. open “Match report”
    How many times must you tap Back to reach the main screen of this tab?
  31. 31.📊 Survey: which problem bugs you most? How many more votes did “losing water bottles” get than “wasting pocket money”?
    forgetting birthdays: 10 votes
    wasting pocket money: 5 votes
    losing water bottles: 14 votes
  32. 32.🔀 What does this sign-up rule show?
    let age = 9;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  33. 33.🌗 Is black on yellow easy or hard to read on a button? (a) hard to read (b) easy to read
  34. 34.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Next button: 36 px tall
    Start button: 52 px tall
    Back button: 56 px tall
    (a) Start (b) Next (c) Back
  35. 35.🧩 Which of these is a button on this screen?
    [title] Order Snacks
    [button] Start
    [button] Next
    [slider] Brightness
    [text box] Age
    [text box] Email
    [button] Cancel
    [text box] Name
    (a) Cancel (b) Name (c) Age (d) Email
  36. 36.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) savings stickers (b) show the balance (c) add money spent (d) add money received
  37. 37.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 700) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(600) → expected 40
    Test 2: delivery(700) → expected 0
    Test 3: delivery(800) → expected 0
    (a) Test 1 (b) Test 2 (c) Test 3
  38. 38.🎯 A short made-up profile of a typical user is called a ___. (a) pixel (b) password (c) protocol (d) persona
  39. 39.🔐 Is this permission request fair or too much: calculator → location? (a) too much (b) fair
  40. 40.🔢 In a sign-up flow, which comes FIRST? (a) open the app (b) see the home screen (c) type name and email (d) enter the code sent

Answer key

  1. “I keep missing the bus”
  2. Yes
  3. UI
  4. No
  5. helps everyone
  6. 3
  7. tab bar
  8. 18
  9. 620
  10. teachers
  11. UI
  12. fair
  13. missing the bus
  14. True
  15. 7
  16. speaking a command
  17. 90
  18. 2
  19. Score card
  20. 4
  21. line 1
  22. an input
  23. see the home screen
  24. 740
  25. Footer
  26. Test 1
  27. Riya
  28. 1
  29. a tool app
  30. 1
  31. 9
  32. Ask a parent
  33. easy to read
  34. Next
  35. Cancel
  36. savings stickers
  37. Test 2
  38. persona
  39. too much
  40. open the app

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