← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 430 · 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.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Cart → Size → Results → Address
    Design B: Home → Offers → Pens → Size → Pay → Confirm → Address
    (a) Design A (b) Design B
  2. 2.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
    [ search box ]
    [ title text ]
    [ Add button ]
    [ menu icon ]
    [ top bar ]
    (a) search box (b) title text (c) top bar (d) Add button
  3. 3.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(10));
  4. 4.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 8 or more right answers.
    function result(right) {
      if (right > 8) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(8) → expected Pass
    Test 2: result(10) → expected Pass
    Test 3: result(5) → expected Try again
    (a) Test 2 (b) Test 1 (c) Test 3
  5. 5.Which colour pair is hard to read? (a) dark blue on white (b) dark blue on black (c) black on yellow (d) white on dark green
  6. 6.🧰 Why write a function? (a) to make code longer (b) to hide errors (c) to slow the app (d) to reuse code
  7. 7.🧪 One test case fails. Which one?
    🎟️ 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(18) → expected 100
    Test 2: price(12) → expected 50
    Test 3: price(13) → expected 100
    (a) Test 3 (b) Test 1 (c) Test 2
  8. 8.🔍 Which is the odd one out? (a) tapping a button (b) taking a photo (c) typing your age (d) checking a password
  9. 9.🔀 What does this sign-up rule show?
    let age = 17;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  10. 10.🧪 One test case fails. Which one?
    🎟️ 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(12) → expected 100
    Test 2: price(14) → expected 100
    Test 3: price(9) → expected 50
    (a) Test 3 (b) Test 2 (c) Test 1
  11. 11.True or false: a big, easy tap area is good button design. (a) True (b) False
  12. 12.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. tap the Chat tab
    2. open “Map”
    3. tap Back
    4. tap the Feed tab
    How many times must you tap Back to reach the main screen of this tab?
  13. 13.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 0, 1, 2 (b) 1, 2, 3 (c) 3 (d) 0, 1, 2, 3
  14. 14.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 45; // start at 44
    line 2: stars = stars - 1; // take away 1
    line 3: stars = stars + 3; // add 3
    line 4: stars = stars * 2; // double it
    line 5: show(stars); // show it
  15. 15.🧩 How many buttons does this app screen have?
    [title] Settings
    [text box] City
    [switch] Dark mode
    [button] Help
    [button] Send
  16. 16.✏️ Why draw a wireframe before coding? (a) it runs the app (b) changes are quick (c) it saves data (d) it adds colours
  17. 17.💾 What number does this code show?
    let points = 9;
    points = points - 1;
    points = points + 4;
    show(points);
  18. 18.Which colour pair is easy to read? (a) red on green (b) pale pink on white (c) light grey on white (d) black on pale grey
  19. 19.🔢 In a photo-post flow, which comes first: “write a caption” or “open the camera screen”? (a) open the camera screen (b) write a caption
  20. 20.🎯 Is this a user need or a feature: “I forget my homework”? (a) a feature (b) a user need
  21. 21.👆 “On tap → do this” links an event to ___. (a) a font (b) an action (c) a charger (d) a web address
  22. 22.🐞 What is a bug? (a) a nice icon (b) a fast phone (c) a mistake in the code (d) a new feature
  23. 23.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Item → Results → Address → Confirm → Menu → Offers
    Design B: Home → Address → Size → Offers → Shop
    (a) Design B (b) Design A
  24. 24.🔢 In a sign-up flow, which comes first: “make a password” or “open the app”? (a) make a password (b) open the app
  25. 25.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Hint: 18 px
    Footer: 23 px
    Caption: 18 px
    Title: 12 px
  26. 26.🌐 Which program do you need to open a website? (a) an app store (b) a camera app (c) a web browser (d) a calculator
  27. 27.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Map”
    2. tap Back
    3. open “Edit photo”
    4. tap the Lessons tab
    How many times must you tap Back to reach the main screen of this tab?
  28. 28.🔘 Our rule: buttons are at least 48 px tall. The Save button is 36 px tall. How many px taller must it be?
  29. 29.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 32; // start at 30
    line 2: coins = coins + 4; // add 4
    line 3: coins = coins - 2; // take away 2
    line 4: show(coins); // show it
  30. 30.🔁 What number does this code show?
    let steps = [11, 3, 17, 1];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  31. 31.📲 What happens when you tap an app’s icon? (a) the app is deleted (b) the sound turns off (c) the phone charges (d) the app opens
  32. 32.Which of these is true of a wireframe? (a) looks like the real app (b) has the real colours (c) shows the real fonts (d) uses plain grey boxes
  33. 33.🧩 Scores, notes and settings that an app keeps are called ___. (a) screens (b) buttons (c) data (d) tabs
  34. 34.👆 A tap handler runs how many times if the user taps 4 times? (a) 1 (b) 0 (c) 4 (d) 8
  35. 35.🧪 What is the ACTUAL result of Test 1?
    🎟️ 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(15) → expected 100
    Test 2: price(9) → expected 100
    Test 3: price(7) → expected 50
  36. 36.👆 What kind of event is this: the user taps Play? (a) a text event (b) a tap event (c) a timer event (d) a load event
  37. 37.💡 A good app idea starts with ___. (a) many colours (b) a cool logo (c) a long name (d) a problem to solve
  38. 38.🗂️ What kind of app is a torch? (a) a health app (b) a game (c) a tool app (d) a learning app
  39. 39.True or false: a homework planner is the best fit for a reader who finds small print hard. (a) True (b) False
  40. 40.📱 Which one opens in a web browser: an app or a website? (a) a website (b) an app

Answer key

  1. Design A
  2. top bar
  3. 30
  4. Test 1
  5. dark blue on black
  6. to reuse code
  7. Test 3
  8. checking a password
  9. Welcome!
  10. Test 1
  11. True
  12. 0
  13. 0, 1, 2
  14. 92
  15. 2
  16. changes are quick
  17. 12
  18. black on pale grey
  19. open the camera screen
  20. a user need
  21. an action
  22. a mistake in the code
  23. Design B
  24. open the app
  25. 1
  26. a web browser
  27. 0
  28. 12
  29. 34
  30. 32
  31. the app opens
  32. uses plain grey boxes
  33. data
  34. 4
  35. 100
  36. a tap event
  37. a problem to solve
  38. a tool app
  39. False
  40. a website

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