← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 129 · 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.🔍 Which is the odd one out? (a) sudden loud sounds (b) captions on videos (c) colour as the only clue (d) tiny tap areas
  2. 2.🧰 What is a function? (a) a type of phone (b) a screen size (c) a named block of code (d) a list of colours
  3. 3.🧪 One test case fails. Which one?
    📝 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(6) → expected Pass
    Test 3: result(7) → expected Pass
    (a) Test 2 (b) Test 3 (c) Test 1
  4. 4.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Pens → Shop → Results → Offers → Address → Menu
    Design B: Home → Pens → Menu → Pay → Offers
    (a) Design A (b) Design B
  5. 5.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Riya", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Riya (b) Hi, Meera (c) Hi, Aman
  6. 6.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 50;
    }
    show(fee(2) + fee(7));
  7. 7.🔢 In a food-order flow, which comes first: “open the menu” or “check the cart”? (a) check the cart (b) open the menu
  8. 8.📱 Which one has a home-screen icon: an app or a website? (a) a website (b) an app
  9. 9.📱 Which one comes from an app store: an app or a website? (a) an app (b) a website
  10. 10.👆 The user taps the button 3 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 2) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  11. 11.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    forgetting homework: 11 votes
    no quiet study place: 25 votes
    forgetting birthdays: 21 votes
    (a) forgetting birthdays (b) no quiet study place (c) forgetting homework
  12. 12.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(60, 3));
  13. 13.Which of these is true of a website? (a) updates from the store (b) has a home-screen icon (c) opens from a link (d) is installed on a phone
  14. 14.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let coins = 41; // start at 41
    line 2: coins = coins * 2; // double it
    line 3: coins = coins * 2; // double it
    line 4: coins = coins + 1; // take away 1
    line 5: show(coins); // show it
  15. 15.🧩 Which of these is a button on this screen?
    [title] Edit Profile
    [button] Back
    [text box] Notes
    [switch] Show hints
    (a) Notes (b) Show hints (c) Back
  16. 16.🧭 Tapping a tab usually takes you to ___. (a) that tab’s main screen (b) the last app used (c) the phone settings (d) a random page
  17. 17.True or false: a library due-date alert solves no real problem. (a) False (b) True
  18. 18.True or false: notes to read offline fits saving on the phone. (a) True (b) False
  19. 19.🧪 What is the actual result of a test? (a) the test’s number (b) the app’s name (c) what the app really does (d) what we hope for
  20. 20.True or false: a big, easy tap area is poor button design. (a) True (b) False
  21. 21.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 3 (b) 0, 1, 2, 3 (c) 1, 2, 3 (d) 0, 1, 2
  22. 22.🔁 What number does this code show?
    let marks = [75, 58, 74];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  23. 23.True or false: a recipe finder is the best fit for a teen learning to make snacks. (a) True (b) False
  24. 24.True or false: how many taps it takes is about UX (the experience). (a) False (b) True
  25. 25.🧩 How many buttons does this app screen have?
    [title] Add Homework
    [button] Back
    [text box] City
    [button] Cancel
  26. 26.🔀 Why plan the user flow before building? (a) so each step is clear (b) to hide the buttons (c) to add more taps (d) to skip testing
  27. 27.🐞 What is a bug? (a) a nice icon (b) a new feature (c) a fast phone (d) a mistake in the code
  28. 28.🧪 What is the ACTUAL result of Test 1?
    🚚 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(550) → expected 40
    Test 2: delivery(600) → expected 0
    Test 3: delivery(800) → expected 0
  29. 29.👥 A school app has 65 students, 245 teachers and 75 parents as users. How many more teachers than parents are there?
  30. 30.👆 A tap handler runs how many times if the user taps 4 times? (a) 0 (b) 8 (c) 4 (d) 1
  31. 31.🧩 Which of these is a button on this screen?
    [title] Add Homework
    [switch] Dark mode
    [text box] Age
    [button] Next
    [button] Send
    [text box] Name
    [button] Done
    (a) Dark mode (b) Age (c) Send (d) Name
  32. 32.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let lives = 51; // start at 49
    line 2: lives = lives * 2; // double it
    line 3: lives = lives + 6; // add 6
    line 4: lives = lives * 2; // double it
    line 5: show(lives); // show it
  33. 33.🎯 Who are the users of an app? (a) only the coders (b) the people who use it (c) the app icons (d) only the testers
  34. 34.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 236; // typed by the user
    line 2: let friends = 4; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 2 (b) line 1 (c) line 3 (d) line 4
  35. 35.🔢 In a sign-up flow, which comes FIRST? (a) make a password (b) type name and email (c) open the app (d) enter the code sent
  36. 36.True or false: a homework photo scanner needs your location. (a) False (b) True
  37. 37.True or false: an app that just says hi solves no real problem. (a) True (b) False
  38. 38.🔢 When you make an app, which comes FIRST? (a) release it (b) test the app (c) get an idea (d) build the app
  39. 39.True or false: taking a photo is an input. (a) False (b) True
  40. 40.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    losing water bottles: 19 votes
    forgetting birthdays: 24 votes
    wasting pocket money: 16 votes
    (a) wasting pocket money (b) losing water bottles (c) forgetting birthdays

Answer key

  1. captions on videos
  2. a named block of code
  3. Test 2
  4. Design B
  5. Hi, Meera
  6. 50
  7. open the menu
  8. an app
  9. an app
  10. 2
  11. no quiet study place
  12. 180
  13. opens from a link
  14. 163
  15. Back
  16. that tab’s main screen
  17. False
  18. True
  19. what the app really does
  20. False
  21. 0, 1, 2
  22. 2
  23. True
  24. True
  25. 2
  26. so each step is clear
  27. a mistake in the code
  28. 40
  29. 170
  30. 4
  31. Send
  32. 216
  33. the people who use it
  34. line 3
  35. open the app
  36. False
  37. True
  38. get an idea
  39. True
  40. forgetting birthdays

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