← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 640 · 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 is the ACTUAL result of Test 3?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(400) → expected 0
    Test 2: delivery(550) → expected 0
    Test 3: delivery(100) → expected 40
  2. 2.🔁 list.length tells you ___. (a) the last item (b) the biggest item (c) how many items it has (d) the first item
  3. 3.🎯 What is the best first step to learn what users need? (a) pick the colours (b) write the code (c) ask and watch users (d) guess on your own
  4. 4.🗒️ Version 1 of a quiz app must be ready in 8 days. How many days are left for extras after the must-haves?
    show a question: 4 days
    check the answer: 1 days
    show the score: 3 days
  5. 5.🧩 How many buttons does this app screen have?
    [title] Settings
    [switch] Dark mode
    [text box] Subject
    [text box] Phone
    [button] Save
    [text box] Email
  6. 6.👆 The user taps the button 2 times. What number does the label show now?
    let score = 0;
    button.onTap = function () {
      score = score + 2;
      label.text = score;
    };
  7. 7.True or false: taking a photo is processing. (a) True (b) False
  8. 8.Which of these is about UX (the experience)? (a) the icon shapes (b) the screen layout (c) how easy sign-up is (d) the font size
  9. 9.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 460; // typed by the user
    line 2: let off = 20; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 1 (b) line 4 (c) line 3 (d) line 2
  10. 10.🔀 What does this sign-up rule show?
    let age = 13;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  11. 11.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Settings
    [button] Save
    [button] Send
    [button] Done
    [text box] Name
  12. 12.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) see tasks by day (b) share tasks to friends (c) set a due date (d) add a homework task
  13. 13.🧪 What is the ACTUAL result of Test 1?
    🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
    function price(age) {
      if (age < 11) {
        return 50;
      }
      return 100;
    }
    Test 1: price(8) → expected 50
    Test 2: price(12) → expected 100
    Test 3: price(15) → expected 100
  14. 14.Which of these is about UX (the experience)? (a) the font size (b) how fast a task is done (c) the button colours (d) the icon shapes
  15. 15.👆 The user taps the button 6 times. What number does the label show now?
    let lives = 10;
    button.onTap = function () {
      lives = lives + 5;
      label.text = lives;
    };
  16. 16.🐞 After fixing a bug you should ___. (a) delete the test (b) test it again (c) release at once (d) never test
  17. 17.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) an avatar shop (b) show the score (c) check the answer (d) show a question
  18. 18.🔢 In a photo-post flow, which comes first: “add a filter” or “open the camera screen”? (a) add a filter (b) open the camera screen
  19. 19.🔍 Which is the odd one out? (a) a buzz (vibration) (b) speaking a command (c) a result on screen (d) a pop-up message
  20. 20.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 30; // start at 30
    line 2: points = points + 2; // double it
    line 3: points = points * 2; // double it
    line 4: show(points); // show it
    (a) line 3 (b) line 1 (c) line 2
  21. 21.🧰 What does this code show?
    function greet(name) {
      return "Welcome, " + name + "!";
    }
    show(greet("Arjun"));
    (a) Welcome, Arjun! (b) Welcome, name! (c) greet (d) Arjun
  22. 22.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 33; // start at 33
    line 2: score = score - 5; // take away 5
    line 3: score = score * 2; // double it
    line 4: score = score + 5; // take away 5
    line 5: show(score); // show it
  23. 23.Which of these is an input? (a) adding up a bill (b) a buzz (vibration) (c) taking a photo (d) a beep sound
  24. 24.🎨 Is this about UI or UX: the icon shapes? (a) UX (b) UI
  25. 25.🔀 A screen with no way forward or back is called a ___. (a) tab bar (b) home screen (c) dead end (d) shortcut
  26. 26.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
    function price(age) {
      if (age <= 11) {
        return 50;
      }
      return 100;
    }
    Test 1: price(11) → expected 100
    Test 2: price(7) → expected 50
    Test 3: price(17) → expected 100
    (a) Test 2 (b) Test 3 (c) Test 1
  27. 27.👆 The user taps the button 6 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 2) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  28. 28.🔢 When you make an app, what comes right after “get an idea”? (a) release it (b) test the app (c) plan the screens (d) build the app
  29. 29.True or false: an alarm clock is a tool app. (a) False (b) True
  30. 30.⚙️ What number does this app show?
    let km = 10; // typed by the user
    let metres = km * 1000;
    show(metres);
  31. 31.🔀 In a good flow, each screen should lead to ___. (a) a dead end (b) the same screen (c) a random page (d) a clear next step
  32. 32.👆 The user taps the button 5 times. What number does the label show now?
    let stars = 1;
    button.onTap = function () {
      stars = stars + 2;
      label.text = stars;
    };
  33. 33.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. tap the Search tab
    2. open “Friend list”
    3. tap Back
    4. open “Edit photo”
    5. tap the Home tab
    Which screen are you on now?
    (a) Search (b) Edit photo (c) Friend list (d) Home
  34. 34.True or false: a page of random dots solves a real problem. (a) False (b) True
  35. 35.🚀 A privacy policy tells users ___. (a) the app’s price (b) what data is collected (c) the screen size (d) the app’s colours
  36. 36.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 48; // start at 48
    line 2: score = score + 4; // add 4
    line 3: score = score - 5; // take away 2
    line 4: show(score); // show it
  37. 37.🛠️ At which stage do you spot a problem to solve? (a) the test stage (b) the plan stage (c) the idea stage (d) the build stage
  38. 38.💾 What number does this code show?
    let notes = ["Maths", "Hindi", "Art"];
    notes.push("Sports");
    show(notes.length);
  39. 39.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. open “Badges”
    2. tap the Lessons tab
    3. tap the Lessons tab
    Which screen are you on now?
    (a) Lessons (b) Me (c) Badges (d) Quiz
  40. 40.🗒️ You are planning version 1 of a homework planner. Which feature can WAIT for a later version? (a) add a homework task (b) see tasks by day (c) earn stickers (d) set a due date

Answer key

  1. 40
  2. how many items it has
  3. ask and watch users
  4. 0
  5. 1
  6. 4
  7. False
  8. how easy sign-up is
  9. line 3
  10. Welcome!
  11. 1
  12. share tasks to friends
  13. 50
  14. how fast a task is done
  15. 40
  16. test it again
  17. an avatar shop
  18. open the camera screen
  19. speaking a command
  20. line 2
  21. Welcome, Arjun!
  22. 61
  23. taking a photo
  24. UI
  25. dead end
  26. Test 1
  27. 2
  28. plan the screens
  29. True
  30. 10000
  31. a clear next step
  32. 11
  33. Home
  34. False
  35. what data is collected
  36. 47
  37. the idea stage
  38. 4
  39. Lessons
  40. earn stickers

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