← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 510 · 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.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) set a due date (b) earn stickers (c) pick a theme colour (d) share tasks to friends
  2. 2.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 700 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 700) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(1000) → expected 0
    Test 2: delivery(700) → expected 0
    Test 3: delivery(600) → expected 40
    (a) Test 1 (b) Test 3 (c) Test 2
  3. 3.🗒️ In MVP, the M stands for ___. (a) minimum (b) mobile (c) maximum (d) music
  4. 4.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(1) + points(0));
  5. 5.📱 Which one opens from a link: an app or a website? (a) an app (b) a website
  6. 6.🧰 Why write a function? (a) to reuse code (b) to slow the app (c) to hide errors (d) to make code longer
  7. 7.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Add Homework
    [button] Start
    [button] Help
    [slider] Text size
    [text box] Age
    [text box] Name
    [button] Back
  8. 8.🔁 What number does this code show?
    let runs = [8, 12, 20, 2, 2];
    let best = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] > best) {
        best = runs[i];
      }
    }
    show(best);
  9. 9.🛠️ At which stage do you spot a problem to solve? (a) the idea stage (b) the test stage (c) the plan stage (d) the release stage
  10. 10.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 36; // start at 35
    line 2: score = score * 2; // double it
    line 3: score = score + 4; // add 4
    line 4: show(score); // show it
    (a) line 3 (b) line 1 (c) line 2
  11. 11.Which colour pair is easy to read? (a) pale pink on white (b) light grey on white (c) dark blue on black (d) black on pale grey
  12. 12.🔀 In this course’s code, which sign tests “is equal to”? (a) !== (b) => (c) = (d) ===
  13. 13.♿ What should every icon-only button have for screen readers? (a) a bright colour (b) a text label (c) a long animation (d) a sound
  14. 14.🖼️ In this wireframe (top to bottom), what is right below the title text?
    [ Save button ]
    [ menu icon ]
    [ title text ]
    [ top bar ]
    (a) top bar (b) Save button (c) menu icon
  15. 15.True or false: a draft you are typing fits saving on the phone. (a) False (b) True
  16. 16.👆 The user types Aman in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hello, " + nameBox.text + "!";
    };
    (a) Hello! (b) Aman (c) Hello, Aman! (d) Hello, nameBox.text!
  17. 17.⚙️ In an app, is a pop-up message an input, processing or an output? (a) output (b) processing (c) input
  18. 18.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    losing water bottles: 4 votes
    forgetting birthdays: 21 votes
    forgetting homework: 6 votes
    (a) forgetting birthdays (b) forgetting homework (c) losing water bottles
  19. 19.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Order Snacks
    [text box] Subject
    [text box] Due date
    [text box] City
    [button] Send
  20. 20.🧰 What number does this code show?
    function double(n) {
      return n * 2;
    }
    show(double(28));
  21. 21.🔁 list.length tells you ___. (a) how many items it has (b) the first item (c) the last item (d) the biggest item
  22. 22.🧩 What do we call one full page of an app? (a) a cable (b) a variable (c) a screen (d) a battery
  23. 23.👆 The user taps the button 4 times. What does the label show now?
    let on = false;
    button.onTap = function () {
      on = !on;
      if (on) {
        label.text = "ON";
      } else {
        label.text = "OFF";
      }
    };
    (a) ON (b) OFF
  24. 24.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. tap the Profile tab
    2. open “Map”
    3. tap Back
    How many times must you tap Back to reach the main screen of this tab?
  25. 25.🧪 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(5) → expected Pass
    Test 2: result(4) → expected Try again
    Test 3: result(7) → expected Pass
  26. 26.👆 The user taps the button 4 times. What number does the label show now?
    let lives = 8;
    button.onTap = function () {
      lives = lives + 1;
      label.text = lives;
    };
  27. 27.🐞 After fixing a bug you should ___. (a) test it again (b) never test (c) release at once (d) delete the test
  28. 28.🌐 Which program do you need to open a website? (a) a web browser (b) a calculator (c) a camera app (d) an app store
  29. 29.🧭 Which part of navigation switches main sections? (a) a tab bar (b) the back button (c) a menu button
  30. 30.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 20;
    }
    show(fee(7) + fee(1));
  31. 31.🔐 Is this permission request fair or too much: quiz app → microphone? (a) too much (b) fair
  32. 32.🔍 Which is the odd one out? (a) typing your age (b) working out a tip (c) tapping a button (d) speaking a command
  33. 33.🔀 What does this PIN rule show?
    let pin = "5546";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  34. 34.True or false: you draw the user flow at the plan stage. (a) True (b) False
  35. 35.📱 Which one updates from the store: an app or a website? (a) an app (b) a website
  36. 36.🔀 Which badge does this quiz app show?
    let marks = 20;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Silver (c) Bronze
  37. 37.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    missing the bus: 5 votes
    wasting pocket money: 13 votes
    forgetting birthdays: 9 votes
    (a) missing the bus (b) wasting pocket money (c) forgetting birthdays
  38. 38.👥 A cricket club app has 20 players, 30 coaches and 255 fans as users. How many users does it have in all?
  39. 39.👆 Code that runs when an event happens is called a ___. (a) hashtag (b) handler (c) header (d) headline
  40. 40.👥 A school app has 240 students, 145 teachers and 80 parents as users. How many more teachers than parents are there?

Answer key

  1. set a due date
  2. Test 2
  3. minimum
  4. 20
  5. a website
  6. to reuse code
  7. 3
  8. 20
  9. the idea stage
  10. line 1
  11. black on pale grey
  12. ===
  13. a text label
  14. top bar
  15. True
  16. Hello, Aman!
  17. output
  18. forgetting birthdays
  19. 3
  20. 56
  21. how many items it has
  22. a screen
  23. OFF
  24. 0
  25. 2
  26. 12
  27. test it again
  28. a web browser
  29. a tab bar
  30. 20
  31. too much
  32. working out a tip
  33. PIN saved
  34. True
  35. an app
  36. Bronze
  37. wasting pocket money
  38. 305
  39. handler
  40. 65

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