← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 269 · 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 countdown hits zero is a tap event. (a) False (b) True
  2. 2.👆 The user taps the button 4 times. What number does the label show now?
    let coins = 2;
    button.onTap = function () {
      coins = coins + 5;
      label.text = coins;
    };
  3. 3.True or false: the search box changes is a timer event. (a) True (b) False
  4. 4.Which of these is true of an app? (a) needs no installing (b) has a web address (c) opens in a web browser (d) updates from the store
  5. 5.🐞 What is a bug? (a) a nice icon (b) a fast phone (c) a mistake in the code (d) a new feature
  6. 6.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
    function price(age) {
      if (age <= 9) {
        return 50;
      }
      return 100;
    }
    Test 1: price(7) → expected 50
    Test 2: price(15) → expected 100
    Test 3: price(9) → expected 100
  7. 7.🗂️ What kind of app is a word battle? (a) a tool app (b) a game (c) a learning app (d) a health app
  8. 8.🔁 What number does this code show?
    let marks = [11, 11, 3];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  9. 9.🔀 Which badge does this quiz app show?
    let marks = 95;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Bronze (c) Silver
  10. 10.True or false: a draft you are typing fits saving in the cloud. (a) False (b) True
  11. 11.🗒️ You are planning version 1 of a pocket-money tracker. Which feature can WAIT for a later version? (a) show the balance (b) add money spent (c) add money received (d) pie-chart colours
  12. 12.🧰 Why write a function? (a) to reuse code (b) to slow the app (c) to hide errors (d) to make code longer
  13. 13.True or false: a bus tracker is the best fit for a parent waiting at the bus stop. (a) False (b) True
  14. 14.True or false: an app that just says hi solves no real problem. (a) False (b) True
  15. 15.True or false: a homework planner is the best fit for a cook with no idea for dinner. (a) True (b) False
  16. 16.True or false: an app comes from an app store. (a) False (b) True
  17. 17.True or false: you pick the features at the plan stage. (a) True (b) False
  18. 18.True or false: a final design has the real colours. (a) False (b) True
  19. 19.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Help page”
    2. open “Edit photo”
    3. open “Friend list”
    Which screen are you on now?
    (a) Help page (b) Lessons (c) Edit photo (d) Friend list
  20. 20.💡 How can you check that people really have the problem? (a) just guess (b) copy another app (c) ask possible users (d) pick a colour
  21. 21.⚙️ What number does this app show?
    let km = 7; // typed by the user
    let metres = km * 1000;
    show(metres);
  22. 22.🔀 What number does this shop app show?
    let total = 860;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  23. 23.🖼️ In this wireframe (top to bottom), what is right below the Save button?
    [ search box ]
    [ Save button ]
    [ big picture ]
    [ list of items ]
    [ tab bar ]
    (a) tab bar (b) big picture (c) search box (d) list of items
  24. 24.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) background music (b) confetti effects (c) show a question (d) an avatar shop
  25. 25.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Edit Profile
    [button] Done
    [text box] Email
    [slider] Text size
  26. 26.🔢 In a photo-post flow, which comes FIRST? (a) write a caption (b) take the photo (c) add a filter (d) open the camera screen
  27. 27.🔍 Which is the odd one out? (a) labels on every icon (b) strong colour contrast (c) tiny tap areas (d) big touch targets
  28. 28.🎨 Is this about UI or UX: whether users get lost? (a) UX (b) UI
  29. 29.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 38; // start at 35
    line 2: score = score - 2; // take away 2
    line 3: score = score + 6; // add 6
    line 4: show(score); // show it
    (a) line 2 (b) line 1 (c) line 3
  30. 30.✏️ Is this true of a wireframe or of a final design: uses the final pictures? (a) a final design (b) a wireframe
  31. 31.True or false: you list what users need at the release stage. (a) False (b) True
  32. 32.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(9));
  33. 33.🔁 A loop over a list of 5 items runs its body how many times? (a) 6 (b) 1 (c) 4 (d) 5
  34. 34.🔁 What number does this code show?
    let runs = [78, 92, 71, 47];
    let count = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] >= 70) {
        count = count + 1;
      }
    }
    show(count);
  35. 35.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 13, and 100 for everyone else.
    function price(age) {
      if (age < 13) {
        return 50;
      }
      return 100;
    }
    Test 1: price(12) → expected 50
    Test 2: price(13) → expected 100
    Test 3: price(16) → expected 100
  36. 36.👆 The user taps the button 1 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 3) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  37. 37.💾 What is a variable? (a) a picture (b) a phone setting (c) a type of screen (d) a named box for a value
  38. 38.Which of these is true of a website? (a) updates from the store (b) is installed on a phone (c) has a home-screen icon (d) needs no installing
  39. 39.🔀 Which badge does this quiz app show?
    let marks = 46;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Silver (c) Bronze
  40. 40.🖼️ In this wireframe (top to bottom), what is right above the Add button?
    [ search box ]
    [ top bar ]
    [ filter buttons ]
    [ Add button ]
    [ list of items ]
    [ menu icon ]
    (a) filter buttons (b) list of items (c) menu icon (d) top bar

Answer key

  1. False
  2. 22
  3. False
  4. updates from the store
  5. a mistake in the code
  6. 2
  7. a game
  8. 25
  9. Gold
  10. False
  11. pie-chart colours
  12. to reuse code
  13. True
  14. True
  15. False
  16. True
  17. True
  18. True
  19. Friend list
  20. ask possible users
  21. 7000
  22. 810
  23. big picture
  24. show a question
  25. 2
  26. open the camera screen
  27. tiny tap areas
  28. UX
  29. line 1
  30. a final design
  31. False
  32. 27
  33. 5
  34. 3
  35. 3
  36. 1
  37. a named box for a value
  38. needs no installing
  39. Bronze
  40. filter buttons

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