← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 644 · 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). How many taps does Design A need?
    Design A: Home → Cart → Pens → Offers → Menu
    Design B: Home → Shop → Confirm → Menu → Offers → Results
  2. 2.Which of these is true of a website? (a) updates from the store (b) has a home-screen icon (c) comes from an app store (d) opens from a link
  3. 3.🧰 Why write a function? (a) to slow the app (b) to make code longer (c) to hide errors (d) to reuse code
  4. 4.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Start button: 60 px tall
    Done button: 24 px tall
    Send button: 52 px tall
    (a) Send (b) Start (c) Done
  5. 5.🔀 When does the else part run? (a) never (b) when the test is false (c) always (d) when the test is true
  6. 6.True or false: the screen first opens is a text event. (a) True (b) False
  7. 7.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let coins = 47; // start at 47
    line 2: coins = coins - 3; // take away 3
    line 3: coins = coins + 2; // double it
    line 4: coins = coins - 3; // take away 3
    line 5: show(coins); // show it
  8. 8.💾 What does this code show? (Positions start at 0.)
    let friends = ["Kabir", "Arjun", "Riya", "Zoya", "Aman"];
    show(friends[1]);
    (a) Riya (b) Kabir (c) Zoya (d) Arjun
  9. 9.🧩 Which input is best for turning something ON or OFF? (a) a title (b) a text box (c) a switch (d) a slider
  10. 10.🎯 Which app would help this user most: a student who keeps forgetting due dates? (a) a bus tracker (b) a homework planner (c) a big-text reader (d) a pocket-money tracker
  11. 11.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(17));
  12. 12.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(40, 2));
  13. 13.🔁 Why use a loop to show 100 messages? (a) it hides them (b) less code to write (c) it uses more lines (d) it is slower
  14. 14.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
    Design A: Home → Confirm → Address
    Design B: Home → Offers → Shop → Item
  15. 15.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) old cases (b) edge cases (c) easy cases (d) phone cases
  16. 16.🔢 When you make an app, which comes FIRST? (a) plan the screens (b) release it (c) build the app (d) get an idea
  17. 17.🎨 Is this about UI or UX: whether users get lost? (a) UX (b) UI
  18. 18.🔁 What number does this code show?
    let marks = [12, 20, 8, 13, 17];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  19. 19.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(45, 2));
  20. 20.🔢 When you make an app, what comes right after “plan the screens”? (a) test the app (b) get an idea (c) release it (d) build the app
  21. 21.💡 A good app idea starts with ___. (a) a cool logo (b) a long name (c) many colours (d) a problem to solve
  22. 22.🔘 Is this good or poor button design: grey text on grey? (a) poor design (b) good design
  23. 23.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 43; // start at 41
    line 2: score = score + 2; // add 2
    line 3: score = score + 6; // add 6
    line 4: show(score); // show it
    (a) line 1 (b) line 2 (c) line 3
  24. 24.Which of these happens at the plan stage? (a) put it on an app store (b) sketch the screens (c) list what users need (d) try every button
  25. 25.🔁 What number does this code show?
    let runs = [4, 9, 17, 6];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  26. 26.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(100, 3));
  27. 27.Which colour pair is hard to read? (a) white on dark green (b) black on yellow (c) yellow on white (d) black on pale grey
  28. 28.💾 Saving data in the cloud lets you ___. (a) never need a password (b) use it on any device (c) shrink the app (d) skip the internet
  29. 29.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 38; // start at 38
    line 2: lives = lives + 7; // add 4
    line 3: lives = lives * 2; // double it
    line 4: show(lives); // show it
    (a) line 1 (b) line 2 (c) line 3
  30. 30.🎨 Is this about UI or UX: how users feel after? (a) UX (b) UI
  31. 31.Which of these app ideas solves a real problem? (a) a medicine reminder (b) an app that just says hi (c) a button with no action (d) a blank grey screen
  32. 32.🔢 In a quiz-app flow, which comes FIRST? (a) pick an answer (b) see if it is right (c) see the final score (d) tap “Start quiz”
  33. 33.🔁 What number does this code show?
    let marks = [8, 6, 16, 5, 15];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  34. 34.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 400) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(250) → expected 40
    Test 2: delivery(700) → expected 0
    Test 3: delivery(800) → expected 0
  35. 35.Which of these is an input? (a) a result on screen (b) working out a tip (c) a beep sound (d) typing your age
  36. 36.🧭 Which part of navigation goes to the last screen? (a) a tab bar (b) a menu button (c) the back button
  37. 37.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) log a glass of water (b) set a reminder time (c) see today’s total (d) custom alert sounds
  38. 38.👆 What kind of event is this: the user taps Play? (a) a text event (b) a tap event (c) a load event (d) a timer event
  39. 39.🧪 How many of these test cases pass?
    📝 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(7) → expected Pass
    Test 2: result(5) → expected Pass
    Test 3: result(3) → expected Try again
  40. 40.Which of these is true of the back button? (a) hides extra links (b) switches main sections (c) opens a list of pages (d) goes to the last screen

Answer key

  1. 4
  2. opens from a link
  3. to reuse code
  4. Done
  5. when the test is false
  6. False
  7. 85
  8. Arjun
  9. a switch
  10. a homework planner
  11. 34
  12. 80
  13. less code to write
  14. 1
  15. edge cases
  16. get an idea
  17. UX
  18. 20
  19. 90
  20. build the app
  21. a problem to solve
  22. poor design
  23. line 1
  24. sketch the screens
  25. 36
  26. 300
  27. yellow on white
  28. use it on any device
  29. line 2
  30. UX
  31. a medicine reminder
  32. tap “Start quiz”
  33. 50
  34. 3
  35. typing your age
  36. the back button
  37. custom alert sounds
  38. a tap event
  39. 2
  40. goes to the last screen

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