← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 530 · 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.🧪 What is the ACTUAL result of Test 1?
    🎟️ Rule: a ticket costs 50 for children under 12, and 100 for everyone else.
    function price(age) {
      if (age < 12) {
        return 50;
      }
      return 100;
    }
    Test 1: price(17) → expected 100
    Test 2: price(11) → expected 50
    Test 3: price(19) → expected 100
  2. 2.🔁 What number does this code show?
    let marks = [96, 84, 65, 54, 84];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  3. 3.🎯 Is this a user need or a feature: “What should I cook?”? (a) a feature (b) a user need
  4. 4.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Edit Profile
    [text box] Phone
    [text box] Due date
    [button] Start
    [button] Done
    [slider] Brightness
    [button] Cancel
  5. 5.🔁 Why use a loop to show 100 messages? (a) it uses more lines (b) it is slower (c) less code to write (d) it hides them
  6. 6.💡 Which app idea solves this problem: pupils forget due dates? (a) a bill splitter (b) a lost-and-found board (c) a study-room finder (d) a homework planner
  7. 7.🔢 In a sign-up flow, which comes first: “tap “Sign up”” or “open the app”? (a) open the app (b) tap “Sign up”
  8. 8.🔀 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
  9. 9.🧩 In an app, what is your friends list? (a) a screen (b) data (c) a button (d) an input
  10. 10.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Sign Up
    [button] Cancel
    [button] Next
    [slider] Brightness
    [text box] Phone
  11. 11.💾 What number does this code show?
    let friends = ["Zoya", "Meera"];
    friends.push("Kabir");
    friends.push("Aman");
    show(friends.length);
  12. 12.📱 Which one has a web address: an app or a website? (a) an app (b) a website
  13. 13.True or false: you connect the data at the test stage. (a) True (b) False
  14. 14.🧩 In an app, what is tap to go Next? (a) a button (b) data (c) an input (d) a screen
  15. 15.🧭 Where is a tab bar usually placed in a phone app? (a) in the middle (b) at the bottom (c) nowhere (d) inside a button
  16. 16.True or false: taking a photo is an output. (a) True (b) False
  17. 17.True or false: the settings page is a screen. (a) True (b) False
  18. 18.🔁 What is the LAST line this code shows?
    let names = ["Arjun", "Aman", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Aman (b) Hi, Arjun (c) Hi, Meera
  19. 19.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Body text: 28 px
    Label: 20 px
    Title: 9 px
    (a) Label (b) Body text (c) Title
  20. 20.🔀 What does this PIN rule show?
    let pin = "3272";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  21. 21.🚀 In version 2.5.1, which number is the major version? (a) 1 (b) 2 (c) 251 (d) 5
  22. 22.True or false: a bill splitter solves no real problem. (a) True (b) False
  23. 23.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Cancel button: 56 px tall
    Send button: 44 px tall
    Next button: 52 px tall
  24. 24.True or false: “labels on every icon” helps everyone use the app. (a) True (b) False
  25. 25.🎨 Is this about UI or UX: the button colours? (a) UX (b) UI
  26. 26.True or false: a water reminder is the best fit for a teen whose money runs out by Friday. (a) False (b) True
  27. 27.🧭 Which part of navigation hides extra links? (a) a menu button (b) the back button (c) a tab bar
  28. 28.📊 Survey: which problem bugs you most? How many students voted in all?
    no quiet study place: 8 votes
    wasting pocket money: 6 votes
    forgetting homework: 7 votes
  29. 29.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Edit Profile
    [button] Next
    [text box] City
    [text box] Phone
    [button] Save
    [text box] Subject
    [slider] Text size
    [switch] Remind me
    [button] Send
  30. 30.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 43; // start at 43
    line 2: coins = coins * 2; // double it
    line 3: coins = coins - 2; // add 2
    line 4: show(coins); // show it
  31. 31.📊 Survey: which problem bugs you most? How many more votes did “forgetting homework” get than “missing the bus”?
    forgetting homework: 17 votes
    forgetting birthdays: 13 votes
    missing the bus: 9 votes
  32. 32.Which of these is true of a menu button? (a) hides extra links (b) switches main sections (c) undoes one move (d) goes to the last screen
  33. 33.True or false: a final design uses plain grey boxes. (a) False (b) True
  34. 34.🔍 Which is the odd one out? (a) working out a tip (b) speaking a command (c) taking a photo (d) typing your age
  35. 35.True or false: a recipe finder is the best fit for a student who often misses the school bus. (a) True (b) False
  36. 36.🔀 What number does this shop app show?
    let total = 280;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  37. 37.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Map”
    2. tap Back
    3. open “Score card”
    Which screen are you on now?
    (a) Score card (b) Quiz (c) Lessons (d) Map
  38. 38.True or false: the user taps Play is a tap event. (a) False (b) True
  39. 39.👆 The user types Riya in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hi, " + nameBox.text + "!";
    };
    (a) Hi, nameBox.text! (b) Riya (c) Hi, Riya! (d) Hi!
  40. 40.👆 “On tap → do this” links an event to ___. (a) a charger (b) a font (c) an action (d) a web address

Answer key

  1. 100
  2. 3
  3. a user need
  4. 3
  5. less code to write
  6. a homework planner
  7. open the app
  8. Ask a parent
  9. data
  10. 2
  11. 4
  12. a website
  13. False
  14. a button
  15. at the bottom
  16. False
  17. True
  18. Hi, Meera
  19. Title
  20. PIN saved
  21. 2
  22. False
  23. 2
  24. True
  25. UI
  26. False
  27. a menu button
  28. 21
  29. 5
  30. 84
  31. 8
  32. hides extra links
  33. False
  34. working out a tip
  35. False
  36. 280
  37. Score card
  38. True
  39. Hi, Riya!
  40. an action

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