← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 51 · 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.True or false: a water reminder is the best fit for a gamer who forgets to drink. (a) True (b) False
  2. 2.🧪 How many of these test cases pass?
    🚚 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(250) → expected 40
    Test 2: delivery(600) → expected 0
    Test 3: delivery(550) → expected 0
  3. 3.🔁 Why use a loop to show 100 messages? (a) it hides them (b) it uses more lines (c) it is slower (d) less code to write
  4. 4.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 8 or more right answers.
    function result(right) {
      if (right >= 8) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(5) → expected Try again
    Test 2: result(11) → expected Pass
    Test 3: result(9) → expected Pass
  5. 5.🧪 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(850) → expected 0
    Test 2: delivery(500) → expected 40
    Test 3: delivery(800) → expected 0
  6. 6.🧪 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(18) → expected 100
    Test 2: price(17) → expected 100
    Test 3: price(11) → expected 50
  7. 7.⚙️ In an app, is a buzz (vibration) an input, processing or an output? (a) output (b) input (c) processing
  8. 8.🔢 After an app is released, which comes first: “release an update” or “list what to fix”? (a) release an update (b) list what to fix
  9. 9.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 500) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(450) → expected 40
    Test 2: delivery(500) → expected 0
    Test 3: delivery(650) → expected 0
    (a) Test 3 (b) Test 1 (c) Test 2
  10. 10.True or false: a final design looks like the real app. (a) True (b) False
  11. 11.🎨 Is this about UI or UX: the font size? (a) UX (b) UI
  12. 12.👆 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! (d) Hi, Riya!
  13. 13.🎨 Is this about UI or UX: whether users get lost? (a) UI (b) UX
  14. 14.👆 What kind of event is this: the user taps Play? (a) a load event (b) a tap event (c) a text event (d) a timer event
  15. 15.💡 How can you check that people really have the problem? (a) copy another app (b) pick a colour (c) just guess (d) ask possible users
  16. 16.🧪 What is the ACTUAL result of Test 1?
    🎟️ 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(19) → expected 100
    Test 2: price(17) → expected 100
    Test 3: price(10) → expected 50
  17. 17.💡 Which app idea solves this problem: bottles go missing at school? (a) a study-room finder (b) a medicine reminder (c) a lost-and-found board (d) a homework planner
  18. 18.👆 “On tap → do this” links an event to ___. (a) an action (b) a font (c) a charger (d) a web address
  19. 19.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(8));
  20. 20.Which of these happens at the plan stage? (a) write the store text (b) write the code (c) connect the data (d) pick the features
  21. 21.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Edit photo”
    2. open “Help page”
    3. tap Back
    4. open “Edit photo”
    Which screen are you on now?
    (a) Lessons (b) Quiz (c) Help page (d) Edit photo
  22. 22.👥 A cricket club app has 75 players, 140 coaches and 230 fans as users. How many users does it have in all?
  23. 23.💡 An app that tries to do everything at once is usually ___. (a) easy to build (b) hard to use (c) very small (d) finished fast
  24. 24.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Shop → Offers → Menu → Cart → Address → Search
    Design B: Home → Menu → Confirm
    (a) Design A (b) Design B
  25. 25.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 44; // start at 43
    line 2: stars = stars * 2; // double it
    line 3: stars = stars * 2; // double it
    line 4: stars = stars + 6; // add 6
    line 5: show(stars); // show it
  26. 26.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) change the bus icon (b) a dark mode (c) rate the driver (d) show arrival time
  27. 27.💾 What is a variable? (a) a named box for a value (b) a type of screen (c) a picture (d) a phone setting
  28. 28.👆 What kind of event is this: the user types a letter? (a) a tap event (b) a timer event (c) a text event (d) a load event
  29. 29.🎯 Why learn about users before you build? (a) to make it longer (b) to slow it down (c) to build what they need (d) to pick a logo
  30. 30.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Add Homework
    [button] Send
    [text box] Name
    [text box] Due date
    [slider] Volume
    [button] Cancel
    [button] Save
    [text box] Phone
  31. 31.🧩 How many buttons does this app screen have?
    [title] Settings
    [switch] Remind me
    [text box] Notes
    [button] Send
    [text box] Phone
    [text box] Age
  32. 32.🖼️ In this wireframe (top to bottom), what is right above the Add button?
    [ list of items ]
    [ Add button ]
    [ filter buttons ]
    [ big picture ]
    [ title text ]
    [ menu icon ]
    (a) list of items (b) big picture (c) title text (d) filter buttons
  33. 33.🧩 Which of these is a button on this screen?
    [title] Add Homework
    [button] Save
    [slider] Text size
    [switch] Remind me
    [text box] Email
    (a) Remind me (b) Save (c) Text size (d) Email
  34. 34.💾 pop() takes off the last item. What does this code show?
    let songs = ["Monsoon", "Rain", "Stars", "Sunrise"];
    songs.pop();
    show(songs[songs.length - 1]);
    (a) Rain (b) Monsoon (c) Sunrise (d) Stars
  35. 35.🔀 What does >= mean? (a) less than (b) smaller or equal (c) greater than or equal (d) not equal
  36. 36.Which of these is true of a website? (a) is installed on a phone (b) updates from the store (c) has a home-screen icon (d) opens in a web browser
  37. 37.🔁 What number does this code show?
    let steps = [16, 1, 3, 15, 17];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  38. 38.👆 What kind of event is this: a 5-minute alarm ends? (a) a tap event (b) a timer event (c) a text event (d) a load event
  39. 39.💾 pop() takes off the last item. What does this code show?
    let notes = ["Hindi", "Art", "Music"];
    notes.pop();
    show(notes[notes.length - 1]);
    (a) Music (b) Hindi (c) Art
  40. 40.🧰 What does this code show?
    function greet(name) {
      return "Well done, " + name + "!";
    }
    show(greet("Meera"));
    (a) greet (b) Well done, name! (c) Well done, Meera! (d) Meera

Answer key

  1. True
  2. 3
  3. less code to write
  4. 3
  5. 3
  6. 100
  7. output
  8. list what to fix
  9. Test 2
  10. True
  11. UI
  12. Hi, Riya!
  13. UX
  14. a tap event
  15. ask possible users
  16. 100
  17. a lost-and-found board
  18. an action
  19. 16
  20. pick the features
  21. Edit photo
  22. 445
  23. hard to use
  24. Design B
  25. 182
  26. show arrival time
  27. a named box for a value
  28. a text event
  29. to build what they need
  30. 4
  31. 1
  32. list of items
  33. Save
  34. Stars
  35. greater than or equal
  36. opens in a web browser
  37. 52
  38. a timer event
  39. Art
  40. Well done, Meera!

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