← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 74 · 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.🧪 One test case fails. Which one?
    🎟️ 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(13) → expected 100
    Test 2: price(18) → expected 100
    Test 3: price(9) → expected 50
    (a) Test 3 (b) Test 2 (c) Test 1
  2. 2.🔁 What number does this code show?
    let steps = [10, 16, 3, 13, 7];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  3. 3.🔁 What number does this code show?
    let marks = [46, 53, 95, 60, 86];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  4. 4.🛠️ At which stage do you put it on an app store? (a) the release stage (b) the plan stage (c) the test stage (d) the idea stage
  5. 5.True or false: a blank grey screen solves no real problem. (a) False (b) True
  6. 6.🧪 How many of these test cases pass?
    🚚 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(1000) → expected 0
    Test 2: delivery(450) → expected 40
    Test 3: delivery(900) → expected 0
  7. 7.👆 The user types Riya in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Well done, " + nameBox.text + "!";
    };
    (a) Well done! (b) Well done, nameBox.text! (c) Well done, Riya! (d) Riya
  8. 8.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Footer: 13 px
    Menu: 24 px
    Body text: 25 px
    (a) Body text (b) Menu (c) Footer
  9. 9.🎨 UX stands for user ___. (a) express (b) example (c) extra (d) experience
  10. 10.🧩 Which input is best for turning something ON or OFF? (a) a slider (b) a title (c) a switch (d) a text box
  11. 11.🔀 A screen with no way forward or back is called a ___. (a) home screen (b) dead end (c) tab bar (d) shortcut
  12. 12.True or false: a unit converter is a game. (a) False (b) True
  13. 13.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a final design (b) a wireframe
  14. 14.📊 Survey: which problem bugs you most? How many students voted in all?
    losing water bottles: 8 votes
    forgetting birthdays: 5 votes
    no quiet study place: 20 votes
  15. 15.True or false: a big-text reader is the best fit for a grandparent with weak eyesight. (a) False (b) True
  16. 16.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 15; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 3 (c) line 2
  17. 17.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. tap the Quiz tab
    2. tap the Lessons tab
    3. open “Edit photo”
    How many times must you tap Back to reach the main screen of this tab?
  18. 18.Which of these happens at the test stage? (a) try every button (b) put it on an app store (c) spot a problem to solve (d) connect the data
  19. 19.Which of these is true of a wireframe? (a) uses plain grey boxes (b) uses the final pictures (c) has the real colours (d) looks like the real app
  20. 20.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 5; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 1 (c) line 2
  21. 21.True or false: “text that can grow” helps everyone use the app. (a) False (b) True
  22. 22.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Title: 24 px
    Body text: 9 px
    Caption: 25 px
    Hint: 18 px
    Label: 25 px
    (a) Caption (b) Hint (c) Title (d) Body text
  23. 23.📱 Which one is installed on a phone: an app or a website? (a) a website (b) an app
  24. 24.📅 An app team plans for 2 days, builds for 7 days, tests for 3 days and releases on 1 more day. How many days does the whole project take?
  25. 25.🔢 When you make an app, which comes first: “build the app” or “release it”? (a) release it (b) build the app
  26. 26.🔀 What does this battery rule show?
    let battery = 39;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  27. 27.🔀 What does this PIN rule show?
    let pin = "171";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  28. 28.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Footer: 26 px
    Title: 21 px
    Hint: 12 px
    Menu: 28 px
    Caption: 17 px
    (a) Footer (b) Menu (c) Title (d) Hint
  29. 29.🎯 Who are the users of an app? (a) only the coders (b) the people who use it (c) only the testers (d) the app icons
  30. 30.👆 What kind of event is this: the app starts up? (a) a load event (b) a text event (c) a timer event (d) a tap event
  31. 31.True or false: strong colour contrast is good button design. (a) False (b) True
  32. 32.🔘 Is this good or poor button design: icons with no meaning? (a) good design (b) poor design
  33. 33.🧭 Which part of navigation opens a list of pages? (a) a tab bar (b) the back button (c) a menu button
  34. 34.🔁 What is the LAST line this code shows?
    let names = ["Riya", "Meera", "Kabir"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Kabir (c) Hi, Riya
  35. 35.🔍 Which is the odd one out? (a) text that can grow (b) labels on every icon (c) big touch targets (d) icons with no labels
  36. 36.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. tap the Feed tab
    2. open “Score card”
    3. tap the Feed tab
    4. tap the Settings tab
    Which screen are you on now?
    (a) Feed (b) Settings (c) Chat (d) Score card
  37. 37.True or false: you spot a problem to solve at the release stage. (a) False (b) True
  38. 38.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 60;
    }
    show(fee(7) + fee(7));
  39. 39.🔢 In a sign-up flow, which comes first: “make a password” or “open the app”? (a) open the app (b) make a password
  40. 40.True or false: the font size is about UI (the look). (a) False (b) True

Answer key

  1. Test 1
  2. 49
  3. 5
  4. the release stage
  5. True
  6. 3
  7. Well done, Riya!
  8. Footer
  9. experience
  10. a switch
  11. dead end
  12. False
  13. a wireframe
  14. 33
  15. True
  16. line 2
  17. 1
  18. try every button
  19. uses plain grey boxes
  20. line 2
  21. True
  22. Body text
  23. an app
  24. 13
  25. build the app
  26. Battery OK
  27. Use 4 digits
  28. Hint
  29. the people who use it
  30. a load event
  31. True
  32. poor design
  33. a menu button
  34. Hi, Kabir
  35. icons with no labels
  36. Settings
  37. False
  38. 120
  39. open the app
  40. True

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