← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 789 · 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.👆 An event in an app is ___. (a) an app store (b) a kind of list (c) a colour theme (d) something that happens
  2. 2.🔢 In a photo-post flow, which comes LAST? (a) write a caption (b) open the camera screen (c) take the photo (d) post the photo
  3. 3.🧩 What does a button do when you tap it? (a) starts an action (b) changes the phone (c) shows the time (d) saves the battery
  4. 4.👥 A cricket club app has 200 players, 80 coaches and 270 fans as users. How many more players than coaches are there?
  5. 5.⚙️ What number does this app show?
    let price = 180; // typed by the user
    let off = 50; // typed by the user
    let pay = price - off;
    show(pay);
  6. 6.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 600) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(750) → expected 0
    Test 2: delivery(400) → expected 40
    Test 3: delivery(600) → expected 0
    (a) Test 3 (b) Test 1 (c) Test 2
  7. 7.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
    function price(age) {
      if (age <= 9) {
        return 50;
      }
      return 100;
    }
    Test 1: price(6) → expected 50
    Test 2: price(13) → expected 100
    Test 3: price(11) → expected 100
  8. 8.📱 Which one is installed on a phone: an app or a website? (a) an app (b) a website
  9. 9.🐞 What is a good first step when an app gives a wrong result? (a) buy a new phone (b) delete the app (c) add more colours (d) find where it goes wrong
  10. 10.True or false: you pick the features at the plan stage. (a) True (b) False
  11. 11.👆 The user taps the button 5 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) OFF (b) ON
  12. 12.🔐 Is this permission request fair or too much: camera app → camera? (a) fair (b) too much
  13. 13.💾 Data saved only on the phone is lost when ___. (a) the app is closed (b) the phone is lost (c) the screen turns off (d) you send a message
  14. 14.True or false: photos on two devices fits saving in the cloud. (a) True (b) False
  15. 15.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
    [ tab bar ]
    [ list of items ]
    [ search box ]
    [ Save button ]
    (a) list of items (b) Save button (c) tab bar (d) search box
  16. 16.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. tap the Chat tab
    2. open “Match report”
    3. tap Back
    4. open “Friend list”
    How many times must you tap Back to reach the main screen of this tab?
  17. 17.🔁 What number does this code show?
    let scores = [64, 18, 34];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  18. 18.👥 A library app has 160 readers, 220 librarians and 40 volunteers as users. How many users does it have in all?
  19. 19.🧩 Which part lets the user give the app information? (a) a title (b) an icon (c) a logo (d) an input
  20. 20.True or false: a result on screen is an output. (a) False (b) True
  21. 21.🧰 What does this code show?
    function greet(name) {
      return "Hi, " + name + "!";
    }
    show(greet("Meera"));
    (a) Meera (b) greet (c) Hi, Meera! (d) Hi, name!
  22. 22.💾 Which can hold many values in order? (a) a single number (b) a button (c) a switch (d) a list
  23. 23.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let score = 49; // start at 49
    line 2: score = score - 2; // take away 2
    line 3: score = score + 2; // take away 2
    line 4: show(score); // show it
  24. 24.🔍 Which is the odd one out? (a) a step counter (b) a calculator (c) a unit converter (d) a torch
  25. 25.🐞 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 + 2; // add 2
    line 3: lives = lives * 2; // double it
    line 4: lives = lives + 5; // take away 5
    line 5: show(lives); // show it
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  26. 26.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) see where the bus is (b) pick your bus stop (c) change the bus icon (d) show arrival time
  27. 27.True or false: space between buttons is good button design. (a) False (b) True
  28. 28.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 32; // start at 32
    line 2: stars = stars - 8; // take away 5
    line 3: stars = stars * 2; // double it
    line 4: stars = stars * 2; // double it
    line 5: show(stars); // show it
    (a) line 2 (b) line 3 (c) line 1 (d) line 4
  29. 29.True or false: a bus tracker is the best fit for a pupil juggling five projects. (a) False (b) True
  30. 30.True or false: a free study-room finder solves no real problem. (a) True (b) False
  31. 31.True or false: a weather-near-me app needs your location. (a) True (b) False
  32. 32.True or false: a pop-up message is processing. (a) False (b) True
  33. 33.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
    [ top bar ]
    [ menu icon ]
    [ Save button ]
    [ search box ]
    [ title text ]
    (a) Save button (b) title text (c) menu icon (d) search box
  34. 34.🔢 In a sign-up flow, which comes FIRST? (a) make a password (b) type name and email (c) see the home screen (d) open the app
  35. 35.True or false: the screen first opens is a timer event. (a) True (b) False
  36. 36.🔀 What does this battery rule show?
    let battery = 58;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  37. 37.💡 Which app idea solves this problem: Grandpa forgets his tablets? (a) a lost-and-found board (b) a homework planner (c) a medicine reminder (d) a study-room finder
  38. 38.👆 The user taps the button 4 times. What number does the label show now?
    let points = 9;
    button.onTap = function () {
      points = points + 2;
      label.text = points;
    };
  39. 39.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Arjun", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Arjun (c) Hi, Aman
  40. 40.Which of these is true of a tab bar? (a) goes to the last screen (b) shows 3 to 5 icons (c) undoes one move (d) opens a list of pages

Answer key

  1. something that happens
  2. post the photo
  3. starts an action
  4. 120
  5. 130
  6. Test 3
  7. 3
  8. an app
  9. find where it goes wrong
  10. True
  11. ON
  12. fair
  13. the phone is lost
  14. True
  15. Save button
  16. 1
  17. 1
  18. 420
  19. an input
  20. True
  21. Hi, Meera!
  22. a list
  23. 45
  24. a step counter
  25. line 4
  26. change the bus icon
  27. True
  28. line 2
  29. False
  30. False
  31. True
  32. False
  33. title text
  34. open the app
  35. False
  36. Battery OK
  37. a medicine reminder
  38. 17
  39. Hi, Meera
  40. shows 3 to 5 icons

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