← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 464 · 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 app show?
    let price = 510; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  2. 2.🧰 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(4) + fee(4));
  3. 3.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 48; // start at 48
    line 2: points = points * 2; // double it
    line 3: points = points + 7; // add 5
    line 4: show(points); // show it
    (a) line 2 (b) line 3 (c) line 1
  4. 4.Which of these requests is fair? (a) timer → your photos (b) torch → contacts (c) quiz app → microphone (d) calling app → contacts
  5. 5.🔁 What number does this code show?
    let steps = [8, 2, 6, 15, 20];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  6. 6.🔢 In a sign-up flow, which comes FIRST? (a) tap “Sign up” (b) open the app (c) type name and email (d) make a password
  7. 7.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 51; // start at 48
    line 2: coins = coins * 2; // double it
    line 3: coins = coins + 3; // add 3
    line 4: coins = coins - 5; // take away 5
    line 5: show(coins); // show it
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  8. 8.🗒️ The first small, working version of an app is often called an ___. (a) URL (b) FAQ (c) MVP (d) CPU
  9. 9.🧩 How many buttons does this app screen have?
    [title] Sign Up
    [button] Save
    [slider] Brightness
    [text box] Name
  10. 10.🚀 Which version is newer: 4.0.3 or 4.0.18? (a) 4.0.18 (b) 4.0.3
  11. 11.True or false: “sudden loud sounds” makes the app harder to use. (a) True (b) False
  12. 12.True or false: a barcode scanner needs the camera. (a) True (b) False
  13. 13.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Cancel button: 52 px tall
    Save button: 48 px tall
    Send button: 56 px tall
    Back button: 32 px tall
    (a) Cancel (b) Send (c) Save (d) Back
  14. 14.👥 A school app has 270 students, 290 teachers and 55 parents as users. How many more students than parents are there?
  15. 15.🗂️ What kind of app is a spelling coach? (a) a game (b) a tool app (c) a health app (d) a learning app
  16. 16.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Edit photo”
    2. open “Badges”
    3. open “Video”
    How many times must you tap Back to reach the main screen of this tab?
  17. 17.Which of these is true of a website? (a) comes from an app store (b) is installed on a phone (c) updates from the store (d) opens in a web browser
  18. 18.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Edit photo”
    2. tap the Search tab
    3. open “Video”
    4. tap Back
    5. open “Badges”
    Which screen are you on now?
    (a) Badges (b) Home (c) Video (d) Edit photo
  19. 19.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Friend list”
    2. tap the Feed tab
    3. open “Score card”
    4. open “Help page”
    Which screen are you on now?
    (a) Friend list (b) Score card (c) Help page (d) Feed
  20. 20.Which colour pair is hard to read? (a) white on black (b) white on dark green (c) pale pink on white (d) dark blue on white
  21. 21.📱 Which one is installed on a phone: an app or a website? (a) an app (b) a website
  22. 22.♿ What does a screen reader do? (a) makes text tiny (b) plays music (c) reads the screen aloud (d) takes photos
  23. 23.🔘 Is this good or poor button design: strong colour contrast? (a) poor design (b) good design
  24. 24.👥 A school app has 30 students, 165 teachers and 135 parents as users. How many more parents than students are there?
  25. 25.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Back button: 36 px tall
    Save button: 52 px tall
    Next button: 72 px tall
    (a) Back (b) Save (c) Next
  26. 26.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(14));
  27. 27.🔍 Which is the odd one out? (a) a cricket run chase (b) a step counter (c) a puzzle with levels (d) a racing challenge
  28. 28.🔁 What does a loop do? (a) deletes code (b) repeats code (c) saves photos (d) draws icons
  29. 29.🔐 Is this permission request fair or too much: calculator → location? (a) too much (b) fair
  30. 30.💾 What number does this code show?
    let friends = ["Meera", "Riya", "Zoya", "Kabir"];
    friends.push("Aman");
    friends.push("Arjun");
    show(friends.length);
  31. 31.♿ Showing right or wrong only in red and green is a problem for ___. (a) the battery (b) fast typists (c) the server (d) colour-blind users
  32. 32.🗂️ What kind of app is a step counter? (a) a tool app (b) a learning app (c) a game (d) a health app
  33. 33.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 40; // start at 40
    line 2: points = points - 1; // take away 1
    line 3: points = points - 5; // add 5
    line 4: points = points + 5; // add 5
    line 5: show(points); // show it
  34. 34.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) pick a theme colour (b) add a homework task (c) set a due date (d) see tasks by day
  35. 35.🔀 What does this sign-up rule show?
    let age = 12;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  36. 36.🔢 After an app is released, what comes right after “fix and improve”? (a) list what to fix (b) read user reviews (c) test it again (d) release an update
  37. 37.🧪 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(5) → expected Pass
    Test 2: result(4) → expected Try again
    Test 3: result(7) → expected Pass
    (a) Test 2 (b) Test 1 (c) Test 3
  38. 38.👆 The user taps the button 3 times. What number does the label show now?
    let coins = 2;
    button.onTap = function () {
      coins = coins + 3;
      label.text = coins;
    };
  39. 39.🔐 Which permission does a barcode scanner really need? (a) location (b) the microphone (c) contacts (d) the camera
  40. 40.🔀 What does this battery rule show?
    let battery = 80;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK

Answer key

  1. 490
  2. 0
  3. line 3
  4. calling app → contacts
  5. 51
  6. open the app
  7. line 1
  8. MVP
  9. 1
  10. 4.0.18
  11. True
  12. True
  13. Back
  14. 215
  15. a learning app
  16. 3
  17. opens in a web browser
  18. Badges
  19. Help page
  20. pale pink on white
  21. an app
  22. reads the screen aloud
  23. good design
  24. 105
  25. Back
  26. 28
  27. a step counter
  28. repeats code
  29. too much
  30. 6
  31. colour-blind users
  32. a health app
  33. 49
  34. pick a theme colour
  35. Ask a parent
  36. test it again
  37. Test 1
  38. 11
  39. the camera
  40. Battery OK

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