← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 546 · 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: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 400) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(600) → expected 0
    Test 2: delivery(200) → expected 40
    Test 3: delivery(400) → expected 0
  2. 2.🧰 How do you run (call) a function called greet? (a) greet() (b) #greet (c) greet[] (d) run greet
  3. 3.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(21));
  4. 4.♿ Accessibility means an app works for ___. (a) only the coder (b) everyone (c) only experts (d) nobody
  5. 5.🎨 Is this about UI or UX: the button colours? (a) UX (b) UI
  6. 6.📊 Survey: which problem bugs you most? How many students voted in all?
    losing water bottles: 6 votes
    missing the bus: 9 votes
    forgetting birthdays: 17 votes
  7. 7.📱 Which one updates from the store: an app or a website? (a) an app (b) a website
  8. 8.🎯 Is this a user need or a feature: a dark mode switch? (a) a user need (b) a feature
  9. 9.👆 The user types Kabir in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hello, " + nameBox.text + "!";
    };
    (a) Hello, nameBox.text! (b) Kabir (c) Hello, Kabir! (d) Hello!
  10. 10.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) background music (b) confetti effects (c) an avatar shop (d) show a question
  11. 11.⚙️ What number does this app show?
    let bill = 72; // typed by the user
    let friends = 4; // typed by the user
    let share = bill / friends;
    show(share);
  12. 12.True or false: a birthday list of friends needs your contacts. (a) False (b) True
  13. 13.Which colour pair is hard to read? (a) black on yellow (b) white on black (c) white on dark green (d) yellow on white
  14. 14.🔁 What number does this code show?
    let marks = [3, 5, 1, 3, 5];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  15. 15.🔢 In a photo-post flow, which comes first: “write a caption” or “open the camera screen”? (a) open the camera screen (b) write a caption
  16. 16.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 85; // typed by the user
    line 2: let qty = 3; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 1 (b) line 4 (c) line 3 (d) line 2
  17. 17.🔢 In a food-order flow, which comes FIRST? (a) pick a dish (b) track the order (c) open the menu (d) check the cart
  18. 18.True or false: speaking a command is an input. (a) True (b) False
  19. 19.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Badges”
    2. open “Help page”
    3. open “Help page”
    Which screen are you on now?
    (a) Search (b) Help page (c) Badges (d) Home
  20. 20.⚙️ What number does this app show?
    let km = 2; // typed by the user
    let metres = km * 1000;
    show(metres);
  21. 21.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 6 or more right answers.
    function result(right) {
      if (right > 6) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(3) → expected Try again
    Test 2: result(10) → expected Pass
    Test 3: result(8) → expected Pass
  22. 22.🧩 What does a button do when you tap it? (a) changes the phone (b) shows the time (c) starts an action (d) saves the battery
  23. 23.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. tap the Lessons tab
    2. open “Friend list”
    3. open “Match report”
    4. tap Back
    How many times must you tap Back to reach the main screen of this tab?
  24. 24.True or false: icons with no meaning is good button design. (a) False (b) True
  25. 25.🔁 What is the LAST line this code shows?
    let names = ["Zoya", "Aman", "Riya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Riya (b) Hi, Aman (c) Hi, Zoya
  26. 26.👆 An event in an app is ___. (a) an app store (b) a kind of list (c) a colour theme (d) something that happens
  27. 27.🌗 Is black on pale grey easy or hard to read on a button? (a) easy to read (b) hard to read
  28. 28.🗒️ You are planning version 1 of a pocket-money tracker. Which feature is a MUST-HAVE? (a) savings stickers (b) pie-chart colours (c) export to a file (d) add money received
  29. 29.👥 A cricket club app has 145 players, 25 coaches and 160 fans as users. How many more fans than players are there?
  30. 30.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(2) + points(3));
  31. 31.💾 What is a variable? (a) a phone setting (b) a type of screen (c) a picture (d) a named box for a value
  32. 32.Which of these is about UX (the experience)? (a) how easy sign-up is (b) the screen layout (c) the button colours (d) the font size
  33. 33.🔁 What number does this code show?
    let scores = [18, 9, 1, 6];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  34. 34.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) see today’s total (b) log a glass of water (c) set a reminder time (d) share your streak
  35. 35.🧩 Which of these is a button on this screen?
    [title] Settings
    [text box] Age
    [button] Cancel
    [switch] Dark mode
    [button] Next
    [button] Back
    [slider] Brightness
    (a) Dark mode (b) Age (c) Next (d) Brightness
  36. 36.True or false: a bill splitter solves no real problem. (a) True (b) False
  37. 37.True or false: a water reminder is a learning app. (a) True (b) False
  38. 38.🔀 What number does this shop app show?
    let total = 290;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  39. 39.🔁 What number does this code show?
    let scores = [16, 8, 13, 19, 12];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  40. 40.🗒️ Version 1 of a water reminder must be ready in 7 days. How many days are left for extras after the must-haves?
    set a reminder time: 1 days
    log a glass of water: 2 days
    see today’s total: 2 days

Answer key

  1. 0
  2. greet()
  3. 63
  4. everyone
  5. UI
  6. 32
  7. an app
  8. a feature
  9. Hello, Kabir!
  10. show a question
  11. 18
  12. True
  13. yellow on white
  14. 17
  15. open the camera screen
  16. line 3
  17. open the menu
  18. True
  19. Help page
  20. 2000
  21. 3
  22. starts an action
  23. 1
  24. False
  25. Hi, Riya
  26. something that happens
  27. easy to read
  28. add money received
  29. 15
  30. 60
  31. a named box for a value
  32. how easy sign-up is
  33. 34
  34. share your streak
  35. Next
  36. False
  37. False
  38. 290
  39. 68
  40. 2

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