← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 370 · 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 kind of app is a cricket run chase? (a) a learning app (b) a tool app (c) a health app (d) a game
  2. 2.🔍 Which is the odd one out? (a) spot a problem to solve (b) talk to possible users (c) try every button (d) list what users need
  3. 3.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 46; // start at 46
    line 2: coins = coins - 2; // add 2
    line 3: coins = coins - 1; // take away 1
    line 4: show(coins); // show it
    (a) line 1 (b) line 3 (c) line 2
  4. 4.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Friend list”
    2. open “Friend list”
    3. tap Back
    How many times must you tap Back to reach the main screen of this tab?
  5. 5.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Label: 27 px
    Body text: 9 px
    Hint: 28 px
    (a) Body text (b) Label (c) Hint
  6. 6.👥 A library app has 65 readers, 90 librarians and 75 volunteers as users. How many more volunteers than readers are there?
  7. 7.📅 An app team plans for 4 days, builds for 7 days, tests for 2 days and releases on 1 more day. How many days does the whole project take?
  8. 8.🔀 What does this sign-up rule show?
    let age = 14;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  9. 9.👥 A school app has 270 students, 115 teachers and 175 parents as users. How many users does it have in all?
  10. 10.🔁 What is the LAST line this code shows?
    let names = ["Riya", "Kabir", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Kabir (b) Hi, Riya (c) Hi, Meera
  11. 11.🔍 Which is the odd one out? (a) a step counter (b) a sleep tracker (c) a flashcard trainer (d) a water reminder
  12. 12.🧪 What is the ACTUAL result of Test 1?
    🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 500) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(600) → expected 0
    Test 2: delivery(300) → expected 40
    Test 3: delivery(500) → expected 0
  13. 13.🧩 In an app, what is your saved notes? (a) an input (b) a button (c) a screen (d) data
  14. 14.👆 The user taps the button 6 times. What number does the label show now?
    let score = 7;
    button.onTap = function () {
      score = score + 1;
      label.text = score;
    };
  15. 15.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 4; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 2 (b) line 1 (c) line 3
  16. 16.👆 An event in an app is ___. (a) an app store (b) a colour theme (c) a kind of list (d) something that happens
  17. 17.📅 An app team plans for 3 days, builds for 10 days, tests for 2 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
  18. 18.🔀 What does if / else let an app do? (a) pick one of two actions (b) save a photo (c) repeat forever (d) draw a screen
  19. 19.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(24));
  20. 20.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Done button: 32 px tall
    Send button: 48 px tall
    Next button: 48 px tall
  21. 21.Which of these is true of a website? (a) opens in a web browser (b) updates from the store (c) has a home-screen icon (d) comes from an app store
  22. 22.🧰 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(1) + fee(6));
  23. 23.🔀 What does >= mean? (a) less than (b) not equal (c) greater than or equal (d) smaller or equal
  24. 24.🧪 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(11) → expected 100
    Test 2: price(8) → expected 50
    Test 3: price(9) → expected 100
  25. 25.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Address → Item → Pens → Search
    Design B: Home → Address → Menu → Shop → Size → Cart
    (a) Design B (b) Design A
  26. 26.📱 Where do people usually download phone apps from? (a) a printer (b) a web server (c) an app store (d) a charger
  27. 27.🔁 What number does this code show?
    let steps = [8, 14, 6];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  28. 28.🧭 Tapping a tab usually takes you to ___. (a) a random page (b) the last app used (c) the phone settings (d) that tab’s main screen
  29. 29.🧭 What does the back button usually do? (a) opens settings (b) deletes the page (c) goes to the last screen (d) closes all apps
  30. 30.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Meera", "Zoya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Meera (c) Hi, Aman
  31. 31.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(20, 6));
  32. 32.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(8));
  33. 33.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] New Note
    [text box] Email
    [text box] Name
    [button] Done
    [slider] Text size
    [text box] Phone
  34. 34.Which of these app ideas solves no real problem? (a) a library due-date alert (b) a button with no action (c) a lost-and-found board (d) a free study-room finder
  35. 35.📊 Survey: which problem bugs you most? How many more votes did “losing water bottles” get than “missing the bus”?
    forgetting homework: 22 votes
    missing the bus: 8 votes
    losing water bottles: 10 votes
  36. 36.True or false: a calculator is a tool app. (a) False (b) True
  37. 37.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) pick a theme colour (b) set a due date (c) see tasks by day (d) add a homework task
  38. 38.🧩 In an app, what is a box to type a name? (a) a button (b) an input (c) a screen (d) data
  39. 39.🚀 A privacy policy tells users ___. (a) what data is collected (b) the app’s price (c) the app’s colours (d) the screen size
  40. 40.🧪 A test fails when ___. (a) both are the same (b) actual is not expected (c) the app is new (d) the font is big

Answer key

  1. a game
  2. try every button
  3. line 2
  4. 1
  5. Body text
  6. 10
  7. 14
  8. Welcome!
  9. 560
  10. Hi, Meera
  11. a flashcard trainer
  12. 0
  13. data
  14. 13
  15. line 2
  16. something that happens
  17. 13
  18. pick one of two actions
  19. 72
  20. 2
  21. opens in a web browser
  22. 50
  23. greater than or equal
  24. 3
  25. Design A
  26. an app store
  27. 28
  28. that tab’s main screen
  29. goes to the last screen
  30. Hi, Zoya
  31. 120
  32. 24
  33. 4
  34. a button with no action
  35. 2
  36. True
  37. pick a theme colour
  38. an input
  39. what data is collected
  40. actual is not expected

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