← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 410 · 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 number does this code show?
    let runs = [58, 21, 24, 27];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  2. 2.🧩 In an app, what is tap to go Next? (a) a screen (b) a button (c) an input (d) data
  3. 3.👥 A school app has 195 students, 175 teachers and 275 parents as users. How many more students than teachers are there?
  4. 4.Which of these requests is fair? (a) torch → contacts (b) quiz app → microphone (c) camera app → camera (d) calculator → location
  5. 5.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(3) + points(2));
  6. 6.🧭 Which part of navigation goes to the last screen? (a) a menu button (b) a tab bar (c) the back button
  7. 7.🔁 What number does this code show?
    let marks = [2, 18, 11];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  8. 8.🧩 How many buttons does this app screen have?
    [title] Edit Profile
    [button] Done
    [button] Cancel
    [text box] Phone
  9. 9.Which of these happens at the idea stage? (a) write the store text (b) write down the bugs (c) pick the features (d) spot a problem to solve
  10. 10.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) background music (b) show the score (c) an avatar shop (d) confetti effects
  11. 11.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
    function price(age) {
      if (age <= 10) {
        return 50;
      }
      return 100;
    }
    Test 1: price(9) → expected 50
    Test 2: price(10) → expected 100
    Test 3: price(16) → expected 100
    (a) Test 2 (b) Test 1 (c) Test 3
  12. 12.🎯 A short made-up profile of a typical user is called a ___. (a) protocol (b) password (c) pixel (d) persona
  13. 13.🔍 Which is the odd one out? (a) a pop-up message (b) typing your age (c) tapping a button (d) taking a photo
  14. 14.🔐 Is this permission request fair or too much: map app → location? (a) too much (b) fair
  15. 15.🌗 Is white on dark green easy or hard to read on a button? (a) easy to read (b) hard to read
  16. 16.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(39));
  17. 17.🔁 What is the LAST line this code shows?
    let names = ["Arjun", "Zoya", "Aman", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Zoya (c) Hi, Aman (d) Hi, Arjun
  18. 18.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Edit photo”
    2. tap the Home tab
    3. open “Match report”
    4. open “Badges”
    Which screen are you on now?
    (a) Home (b) Badges (c) Match report (d) Edit photo
  19. 19.🔢 In a food-order flow, which comes first: “add it to the cart” or “open the menu”? (a) open the menu (b) add it to the cart
  20. 20.👆 The user taps the button 4 times. What number does the label show now?
    let score = 1;
    button.onTap = function () {
      score = score + 5;
      label.text = score;
    };
  21. 21.📱 Which one needs no installing: an app or a website? (a) an app (b) a website
  22. 22.🚀 Your app is at version 2.8.4. The next release adds a new feature. What is its version number? (a) 3.0.0 (b) 2.9.4 (c) 2.8.5 (d) 2.9.0
  23. 23.🧭 Where is a tab bar usually placed in a phone app? (a) in the middle (b) inside a button (c) nowhere (d) at the bottom
  24. 24.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(16));
  25. 25.💾 pop() takes off the last item. What does this code show?
    let notes = ["Hindi", "Sports", "Music", "Maths"];
    notes.pop();
    show(notes[notes.length - 1]);
    (a) Music (b) Hindi (c) Maths (d) Sports
  26. 26.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(25));
  27. 27.Which of these requests is fair? (a) torch → contacts (b) calculator → location (c) quiz app → microphone (d) map app → location
  28. 28.✏️ What is the easiest way to draw a first wireframe? (a) a 3D printer (b) a microphone (c) a phone case (d) pencil and paper
  29. 29.Which of these is about UX (the experience)? (a) the theme colours (b) how users feel after (c) the screen layout (d) the font size
  30. 30.Which of these fits saving on the phone? (a) a class leaderboard (b) photos on two devices (c) a draft you are typing (d) a shared to-do list
  31. 31.🔢 In a food-order flow, which comes first: “open the menu” or “track the order”? (a) open the menu (b) track the order
  32. 32.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 49; // start at 49
    line 2: score = score - 5; // take away 2
    line 3: score = score + 4; // add 4
    line 4: show(score); // show it
  33. 33.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 35; // start at 35
    line 2: stars = stars - 4; // take away 4
    line 3: stars = stars - 1; // take away 1
    line 4: stars = stars - 6; // take away 4
    line 5: show(stars); // show it
  34. 34.True or false: tap to Save is data. (a) True (b) False
  35. 35.🗒️ Version 1 of a quiz app must be ready in 13 days. How many days are left for extras after the must-haves?
    show a question: 3 days
    check the answer: 2 days
    show the score: 4 days
  36. 36.🧭 About how many tabs suit a tab bar best? (a) 10 to 12 (b) 3 to 5 (c) 1 (d) 20
  37. 37.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 5 or more right answers.
    function result(right) {
      if (right > 5) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(7) → expected Pass
    Test 2: result(5) → expected Pass
    Test 3: result(2) → expected Try again
    (a) Test 2 (b) Test 3 (c) Test 1
  38. 38.🔀 What does this sign-up rule show?
    let age = 14;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  39. 39.🗒️ Version 1 of a bus tracker must be ready in 10 days. How many days are left for extras after the must-haves?
    see where the bus is: 1 days
    show arrival time: 2 days
    pick your bus stop: 4 days
  40. 40.🔢 In a food-order flow, which comes first: “pay for the order” or “track the order”? (a) pay for the order (b) track the order

Answer key

  1. 1
  2. a button
  3. 20
  4. camera app → camera
  5. 60
  6. the back button
  7. 18
  8. 2
  9. spot a problem to solve
  10. show the score
  11. Test 2
  12. persona
  13. a pop-up message
  14. fair
  15. easy to read
  16. 117
  17. Hi, Meera
  18. Badges
  19. open the menu
  20. 21
  21. a website
  22. 2.9.0
  23. at the bottom
  24. 32
  25. Music
  26. 50
  27. map app → location
  28. pencil and paper
  29. how users feel after
  30. a draft you are typing
  31. open the menu
  32. 48
  33. 24
  34. False
  35. 4
  36. 3 to 5
  37. Test 2
  38. Welcome!
  39. 3
  40. pay for the order

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