← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 857 · 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.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 6 or more right answers.
    function result(right) {
      if (right > 6) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(3) → expected Try again
    Test 2: result(7) → expected Pass
    Test 3: result(6) → expected Pass
    (a) Test 1 (b) Test 2 (c) Test 3
  2. 2.True or false: a lost-and-found board solves no real problem. (a) False (b) True
  3. 3.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) show a question (b) an avatar shop (c) check the answer (d) show the score
  4. 4.Which of these is true of an app? (a) needs no installing (b) updates from the store (c) opens from a link (d) has a web address
  5. 5.🎨 Is this about UI or UX: the icon shapes? (a) UI (b) UX
  6. 6.🎨 Is this about UI or UX: how many taps it takes? (a) UI (b) UX
  7. 7.✏️ Is this true of a wireframe or of a final design: is a quick sketch? (a) a wireframe (b) a final design
  8. 8.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 30;
    }
    show(fee(6) + fee(6));
  9. 9.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Map”
    2. tap the Settings tab
    3. open “Map”
    4. open “Friend list”
    5. open “Map”
    How many times must you tap Back to reach the main screen of this tab?
  10. 10.🔀 What number does this shop app show?
    let total = 340;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  11. 11.📱 Which one has a web address: an app or a website? (a) a website (b) an app
  12. 12.💡 An app that tries to do everything at once is usually ___. (a) very small (b) hard to use (c) easy to build (d) finished fast
  13. 13.🚀 What should an app ask for only when it really needs it? (a) its icon (b) a permission (c) its name (d) a font
  14. 14.🔁 What number does this code show?
    let steps = [27, 87, 66, 10];
    let count = 0;
    for (let i = 0; i < steps.length; i++) {
      if (steps[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  15. 15.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(18));
  16. 16.🗒️ 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
  17. 17.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let lives = 34; // start at 34
    line 2: lives = lives - 6; // take away 3
    line 3: lives = lives - 5; // take away 5
    line 4: lives = lives * 2; // double it
    line 5: show(lives); // show it
  18. 18.🧩 Which part lets the user give the app information? (a) an icon (b) an input (c) a title (d) a logo
  19. 19.👆 The user types Kabir in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hello, " + nameBox.text + "!";
    };
    (a) Hello, nameBox.text! (b) Kabir (c) Hello, Kabir! (d) Hello!
  20. 20.🔀 What is a user flow? (a) a type of font (b) a charging cable (c) the path through screens (d) a colour theme
  21. 21.True or false: a button with no action solves a real problem. (a) False (b) True
  22. 22.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(95, 3));
  23. 23.🧰 What does this code show?
    function greet(name) {
      return "Welcome, " + name + "!";
    }
    show(greet("Meera"));
    (a) Meera (b) Welcome, name! (c) Welcome, Meera! (d) greet
  24. 24.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(40, 2));
  25. 25.True or false: an app needs no installing. (a) False (b) True
  26. 26.🧩 Which input is best for choosing a volume level? (a) a text box (b) a switch (c) a title (d) a slider
  27. 27.🧭 Which part of navigation opens a list of pages? (a) the back button (b) a menu button (c) a tab bar
  28. 28.🔁 What is the LAST line this code shows?
    let names = ["Zoya", "Aman", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Arjun (c) Hi, Aman
  29. 29.🧭 What does the back button usually do? (a) goes to the last screen (b) opens settings (c) deletes the page (d) closes all apps
  30. 30.True or false: a wireframe has no real colours. (a) False (b) True
  31. 31.🔍 Which is the odd one out? (a) a pop-up message (b) a beep sound (c) a buzz (vibration) (d) typing your age
  32. 32.🐞 What is a bug? (a) a fast phone (b) a nice icon (c) a mistake in the code (d) a new feature
  33. 33.🔢 After an app is released, what comes right after “list what to fix”? (a) test it again (b) release an update (c) read user reviews (d) fix and improve
  34. 34.🧰 In function tip(bill), what is bill? (a) a screen (b) an event (c) a parameter (d) a loop
  35. 35.🖼️ In this wireframe (top to bottom), what is right above the search box?
    [ title text ]
    [ Save button ]
    [ tab bar ]
    [ search box ]
    [ top bar ]
    (a) title text (b) Save button (c) top bar (d) tab bar
  36. 36.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let coins = 46; // start at 43
    line 2: coins = coins + 4; // add 4
    line 3: coins = coins * 2; // double it
    line 4: coins = coins - 4; // take away 4
    line 5: show(coins); // show it
    (a) line 3 (b) line 1 (c) line 4 (d) line 2
  37. 37.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
    Design A: Home → Address → Menu → Item
    Design B: Home → Results → Search → Shop → Address → Pens → Offers
  38. 38.🔢 After an app is released, which comes FIRST? (a) release an update (b) read user reviews (c) test it again (d) list what to fix
  39. 39.True or false: a homework photo scanner needs the camera. (a) True (b) False
  40. 40.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 40;
    }
    show(fee(7) + fee(12));

Answer key

  1. Test 3
  2. False
  3. an avatar shop
  4. updates from the store
  5. UI
  6. UX
  7. a wireframe
  8. 60
  9. 3
  10. 340
  11. a website
  12. hard to use
  13. a permission
  14. 2
  15. 54
  16. pick a theme colour
  17. 46
  18. an input
  19. Hello, Kabir!
  20. the path through screens
  21. False
  22. 285
  23. Welcome, Meera!
  24. 80
  25. False
  26. a slider
  27. a menu button
  28. Hi, Arjun
  29. goes to the last screen
  30. True
  31. typing your age
  32. a mistake in the code
  33. fix and improve
  34. a parameter
  35. tab bar
  36. line 1
  37. 3
  38. read user reviews
  39. True
  40. 80

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