← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 9 · 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?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(4) + points(4));
  2. 2.🔁 What number does this code show?
    let marks = [8, 8, 2, 7, 16];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  3. 3.🔘 Our rule: buttons are at least 48 px tall. The Start button is 44 px tall. How many px taller must it be?
  4. 4.🐞 What is a good first step when an app gives a wrong result? (a) buy a new phone (b) add more colours (c) find where it goes wrong (d) delete the app
  5. 5.🎯 Which app would help this user most: a parent waiting at the bus stop? (a) a bus tracker (b) a big-text reader (c) a pocket-money tracker (d) a homework planner
  6. 6.🐞 A comment in code (after //) is for ___. (a) people reading the code (b) the app store (c) the phone screen (d) the battery
  7. 7.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) custom alert sounds (b) share your streak (c) water animations (d) set a reminder time
  8. 8.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(23));
  9. 9.🧩 In an app, what is a date picker? (a) a screen (b) an input (c) a button (d) data
  10. 10.🔐 A torch app asks for your contacts. What should you do? (a) deny it (b) allow it (c) share them all (d) post them online
  11. 11.🔢 In a photo-post flow, which comes FIRST? (a) take the photo (b) open the camera screen (c) add a filter (d) write a caption
  12. 12.🐞 Finding and fixing bugs is called ___. (a) debugging (b) decorating (c) designing (d) downloading
  13. 13.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(80, 3));
  14. 14.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 45; // 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 3 (b) line 4 (c) line 1 (d) line 2
  15. 15.🔢 In a food-order flow, which comes FIRST? (a) open the menu (b) pick a dish (c) add it to the cart (d) check the cart
  16. 16.🔢 When you make an app, which comes LAST? (a) test the app (b) release it (c) plan the screens (d) get an idea
  17. 17.🧩 Which part lets the user give the app information? (a) an input (b) an icon (c) a title (d) a logo
  18. 18.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 40; // start at 40
    line 2: lives = lives + 4; // take away 4
    line 3: lives = lives + 2; // add 2
    line 4: lives = lives + 3; // add 3
    line 5: show(lives); // show it
    (a) line 2 (b) line 4 (c) line 1 (d) line 3
  19. 19.💡 Which app idea solves this problem: the library is always full? (a) a study-room finder (b) a lost-and-found board (c) a bill splitter (d) a homework planner
  20. 20.🔁 What does a loop do? (a) repeats code (b) saves photos (c) draws icons (d) deletes code
  21. 21.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 46; // start at 45
    line 2: coins = coins + 2; // add 2
    line 3: coins = coins - 3; // take away 3
    line 4: show(coins); // show it
    (a) line 2 (b) line 3 (c) line 1
  22. 22.🔢 In a sign-up flow, what comes right after “open the app”? (a) tap “Sign up” (b) see the home screen (c) type name and email (d) make a password
  23. 23.🔍 Which is the odd one out? (a) captions on videos (b) fast-flashing lights (c) labels on every icon (d) text that can grow
  24. 24.True or false: a spelling coach is a learning app. (a) True (b) False
  25. 25.Which of these is true of a wireframe? (a) looks like the real app (b) uses plain grey boxes (c) uses the final pictures (d) has the real colours
  26. 26.🔢 In a photo-post flow, which comes first: “post the photo” or “open the camera screen”? (a) post the photo (b) open the camera screen
  27. 27.🛠️ At which stage do you write the code? (a) the plan stage (b) the idea stage (c) the build stage (d) the test stage
  28. 28.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 7 or more right answers.
    function result(right) {
      if (right > 7) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(6) → expected Try again
    Test 2: result(7) → expected Pass
    Test 3: result(9) → expected Pass
    (a) Test 1 (b) Test 2 (c) Test 3
  29. 29.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
    Design A: Home → Results → Offers → Search → Pens
    Design B: Home → Offers → Search → Pens → Results → Pay → Shop
  30. 30.True or false: a party-invite app for friends needs your contacts. (a) True (b) False
  31. 31.👆 What kind of event is this: the user presses Save? (a) a tap event (b) a timer event (c) a text event (d) a load event
  32. 32.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 42; // start at 42
    line 2: coins = coins + 5; // add 5
    line 3: coins = coins - 4; // take away 1
    line 4: coins = coins - 4; // take away 4
    line 5: show(coins); // show it
    (a) line 3 (b) line 2 (c) line 1 (d) line 4
  33. 33.💡 Which app idea solves this problem: Grandpa forgets his tablets? (a) a lost-and-found board (b) a medicine reminder (c) a study-room finder (d) a bill splitter
  34. 34.♿ Does this help everyone, or make the app harder to use: fast-flashing lights? (a) helps everyone (b) makes it harder
  35. 35.👆 What kind of event is this: a countdown hits zero? (a) a tap event (b) a text event (c) a timer event (d) a load event
  36. 36.Which of these happens at the plan stage? (a) sketch the screens (b) put it on an app store (c) talk to possible users (d) list what users need
  37. 37.True or false: a walking map needs your location. (a) True (b) False
  38. 38.🔀 What is a user flow? (a) a colour theme (b) the path through screens (c) a type of font (d) a charging cable
  39. 39.🔢 In a quiz-app flow, which comes first: “see if it is right” or “read a question”? (a) see if it is right (b) read a question
  40. 40.🔍 Which is the odd one out? (a) working out a tip (b) sorting the scores (c) taking a photo (d) adding up a bill

Answer key

  1. 90
  2. 16
  3. 4
  4. find where it goes wrong
  5. a bus tracker
  6. people reading the code
  7. set a reminder time
  8. 69
  9. an input
  10. deny it
  11. open the camera screen
  12. debugging
  13. 240
  14. line 3
  15. open the menu
  16. release it
  17. an input
  18. line 2
  19. a study-room finder
  20. repeats code
  21. line 1
  22. tap “Sign up”
  23. fast-flashing lights
  24. True
  25. uses plain grey boxes
  26. open the camera screen
  27. the build stage
  28. Test 2
  29. 6
  30. True
  31. a tap event
  32. line 3
  33. a medicine reminder
  34. makes it harder
  35. a timer event
  36. sketch the screens
  37. True
  38. the path through screens
  39. read a question
  40. taking a photo

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