← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 840 · 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 double(n) {
      return n * 2;
    }
    show(double(23));
  2. 2.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Match report”
    2. tap Back
    3. open “Friend list”
    4. tap Back
    How many times must you tap Back to reach the main screen of this tab?
  3. 3.💾 Where should the app save photos on two devices: on the phone or in the cloud? (a) on the phone (b) in the cloud
  4. 4.🧪 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(4) → expected Try again
    Test 2: result(5) → expected Pass
    Test 3: result(6) → expected Pass
    (a) Test 1 (b) Test 2 (c) Test 3
  5. 5.Which of these is a feature? (a) “I keep missing the bus” (b) “I forget my homework” (c) “Small text is hard” (d) a search bar
  6. 6.🔘 Is this good or poor button design: a clear word like Save? (a) good design (b) poor design
  7. 7.Which of these is true of a wireframe? (a) shows where things go (b) uses the final pictures (c) looks like the real app (d) has the real colours
  8. 8.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) add a homework task (b) see tasks by day (c) set a due date (d) share tasks to friends
  9. 9.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(5) + points(3));
  10. 10.🧰 What does return do in a function? (a) deletes the app (b) closes the screen (c) sends back a value (d) repeats the code
  11. 11.👆 The user taps the button 2 times. What does the label show now?
    let on = false;
    button.onTap = function () {
      on = !on;
      if (on) {
        label.text = "ON";
      } else {
        label.text = "OFF";
      }
    };
    (a) ON (b) OFF
  12. 12.⚙️ In an app, is a result on screen an input, processing or an output? (a) processing (b) input (c) output
  13. 13.📊 Survey: which problem bugs you most? How many more votes did “wasting pocket money” get than “missing the bus”?
    forgetting birthdays: 3 votes
    wasting pocket money: 8 votes
    missing the bus: 5 votes
  14. 14.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(35));
  15. 15.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 20;
    }
    show(fee(7) + fee(5));
  16. 16.👆 Two designs for the same task (each arrow is one tap). How many taps does Design B need?
    Design A: Home → Cart → Results → Address → Search
    Design B: Home → Results → Offers → Cart
  17. 17.👥 A school app has 255 students, 90 teachers and 140 parents as users. How many users does it have in all?
  18. 18.👆 Code that runs when an event happens is called a ___. (a) hashtag (b) handler (c) headline (d) header
  19. 19.🧰 In function tip(bill), what is bill? (a) a screen (b) a parameter (c) an event (d) a loop
  20. 20.🔢 In a photo-post flow, which comes first: “write a caption” or “post the photo”? (a) post the photo (b) write a caption
  21. 21.True or false: a lost-and-found board solves no real problem. (a) False (b) True
  22. 22.👆 The user taps the button 6 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 3) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  23. 23.🔀 What does this PIN rule show?
    let pin = "546";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  24. 24.🗒️ In MVP, the M stands for ___. (a) minimum (b) mobile (c) maximum (d) music
  25. 25.🔀 Why plan the user flow before building? (a) to skip testing (b) so each step is clear (c) to add more taps (d) to hide the buttons
  26. 26.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Caption: 20 px
    Title: 20 px
    Hint: 12 px
    Menu: 13 px
  27. 27.💾 What does this code show? (Positions start at 0.)
    let songs = ["Kites", "Sunrise", "Rain", "Stars"];
    show(songs[2]);
    (a) Sunrise (b) Stars (c) Rain (d) Kites
  28. 28.🚀 Your app is at version 2.7.1. The next release adds a new feature. What is its version number? (a) 2.8.0 (b) 2.7.2 (c) 2.8.1 (d) 3.0.0
  29. 29.🔁 list.length tells you ___. (a) the first item (b) the last item (c) the biggest item (d) how many items it has
  30. 30.Which of these is about UI (the look)? (a) the icon shapes (b) how easy sign-up is (c) how fast a task is done (d) how many taps it takes
  31. 31.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(11));
  32. 32.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 42; // start at 42
    line 2: lives = lives - 3; // add 3
    line 3: lives = lives - 2; // take away 2
    line 4: show(lives); // show it
  33. 33.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(7));
  34. 34.⚙️ What number does this app show?
    let price = 70; // typed by the user
    let qty = 3; // typed by the user
    let total = price * qty;
    show(total);
  35. 35.💡 An app that tries to do everything at once is usually ___. (a) finished fast (b) very small (c) hard to use (d) easy to build
  36. 36.True or false: a unit converter is a tool app. (a) False (b) True
  37. 37.⚙️ In an app, is working out a tip an input, processing or an output? (a) processing (b) output (c) input
  38. 38.🧪 What is the ACTUAL result of Test 2?
    🎟️ 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(8) → expected 50
    Test 2: price(12) → expected 100
    Test 3: price(13) → expected 100
  39. 39.💡 After a survey, which need should version 1 solve? (a) a random need (b) the rarest need (c) the most common need (d) the newest trend
  40. 40.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    missing the bus: 14 votes
    forgetting homework: 17 votes
    wasting pocket money: 13 votes
    (a) wasting pocket money (b) forgetting homework (c) missing the bus

Answer key

  1. 46
  2. 0
  3. in the cloud
  4. Test 2
  5. a search bar
  6. good design
  7. shows where things go
  8. share tasks to friends
  9. 90
  10. sends back a value
  11. OFF
  12. output
  13. 3
  14. 70
  15. 40
  16. 3
  17. 485
  18. handler
  19. a parameter
  20. write a caption
  21. False
  22. 3
  23. Use 4 digits
  24. minimum
  25. so each step is clear
  26. 2
  27. Rain
  28. 2.8.0
  29. how many items it has
  30. the icon shapes
  31. 22
  32. 43
  33. 14
  34. 210
  35. hard to use
  36. True
  37. processing
  38. 100
  39. the most common need
  40. forgetting homework

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