← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 961 · 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.🧰 In function tip(bill), what is bill? (a) an event (b) a screen (c) a loop (d) a parameter
  2. 2.✏️ A box with a cross in a wireframe usually means ___. (a) an error (b) delete this (c) a closed app (d) a picture goes here
  3. 3.💾 Where should the app save a draft you are typing: on the phone or in the cloud? (a) in the cloud (b) on the phone
  4. 4.🧪 What is the ACTUAL result of Test 3?
    🚚 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(900) → expected 0
    Test 2: delivery(700) → expected 0
    Test 3: delivery(500) → expected 40
  5. 5.🔀 A screen with no way forward or back is called a ___. (a) shortcut (b) tab bar (c) home screen (d) dead end
  6. 6.🔢 In a photo-post flow, which comes first: “take the photo” or “add a filter”? (a) add a filter (b) take the photo
  7. 7.🔀 What does >= mean? (a) smaller or equal (b) greater than or equal (c) not equal (d) less than
  8. 8.🧰 Why write a function? (a) to hide errors (b) to reuse code (c) to slow the app (d) to make code longer
  9. 9.True or false: a slider for volume is an input. (a) False (b) True
  10. 10.True or false: a puzzle with levels is a game. (a) False (b) True
  11. 11.🔁 What is the LAST line this code shows?
    let names = ["Meera", "Kabir", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Kabir (b) Hi, Meera (c) Hi, Arjun
  12. 12.🧰 What does this code show?
    function greet(name) {
      return "Hi, " + name + "!";
    }
    show(greet("Kabir"));
    (a) Hi, name! (b) Hi, Kabir! (c) Kabir (d) greet
  13. 13.Which of these fits saving on the phone? (a) photos on two devices (b) notes to read offline (c) chat messages to friends (d) a shared to-do list
  14. 14.🔍 Which is the odd one out? (a) speaking a command (b) typing your age (c) taking a photo (d) a beep sound
  15. 15.🧪 One test case fails. Which one?
    📝 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(6) → expected Pass
    Test 2: result(5) → expected Pass
    Test 3: result(2) → expected Try again
    (a) Test 3 (b) Test 1 (c) Test 2
  16. 16.🔁 What number does this code show?
    let marks = [60, 13, 14];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 60) {
        count = count + 1;
      }
    }
    show(count);
  17. 17.🔀 What does this battery rule show?
    let battery = 99;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  18. 18.🔀 What number does this shop app show?
    let total = 250;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  19. 19.👆 The user taps the button 8 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 5) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  20. 20.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
    Design A: Home → Results → Search → Pay → Shop → Cart
    Design B: Home → Menu → Item → Size
  21. 21.🔁 What number does this code show?
    let marks = [10, 1, 8, 8];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  22. 22.🧪 Values right at a limit, like age 12 for “under 12”, are called ___. (a) edge cases (b) phone cases (c) old cases (d) easy cases
  23. 23.Which of these requests is fair? (a) camera app → camera (b) quiz app → microphone (c) calculator → location (d) torch → contacts
  24. 24.Which of these is true of a wireframe? (a) has the real colours (b) uses the final pictures (c) shows where things go (d) shows the real fonts
  25. 25.👆 The user taps the button 6 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
  26. 26.📱 Where do people usually download phone apps from? (a) a printer (b) a web server (c) a charger (d) an app store
  27. 27.👆 The user taps the button 6 times. What number does the label show now?
    let score = 6;
    button.onTap = function () {
      score = score + 4;
      label.text = score;
    };
  28. 28.🔢 When you make an app, which comes first: “plan the screens” or “test the app”? (a) test the app (b) plan the screens
  29. 29.🎨 Is this about UI or UX: how fast a task is done? (a) UI (b) UX
  30. 30.🎨 Who should you test the UX with? (a) real users (b) nobody (c) the app icon (d) only yourself
  31. 31.🧩 Which input is best for typing your name? (a) a text box (b) a picture (c) a slider (d) a switch
  32. 32.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Zoya", "Kabir"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Zoya (b) Hi, Aman (c) Hi, Kabir
  33. 33.💡 Does an app idea like a lost-and-found board solve a real problem? (a) Yes (b) No
  34. 34.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 43; // start at 41
    line 2: stars = stars - 3; // take away 3
    line 3: stars = stars + 3; // add 3
    line 4: show(stars); // show it
    (a) line 2 (b) line 3 (c) line 1
  35. 35.Which of these happens at the plan stage? (a) list what users need (b) spot a problem to solve (c) share the download link (d) sketch the screens
  36. 36.⚙️ What number does this app show?
    let price = 400; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  37. 37.True or false: you put it on an app store at the release stage. (a) True (b) False
  38. 38.🗒️ When should nice-to-have features be built? (a) before anything (b) on day one (c) after the must-haves (d) never
  39. 39.💾 In most code, the first item of a list is at position ___. (a) 2 (b) 10 (c) 1 (d) 0
  40. 40.🚀 Which version is newer: 1.2.1 or 1.15.0? (a) 1.2.1 (b) 1.15.0

Answer key

  1. a parameter
  2. a picture goes here
  3. on the phone
  4. 40
  5. dead end
  6. take the photo
  7. greater than or equal
  8. to reuse code
  9. True
  10. True
  11. Hi, Arjun
  12. Hi, Kabir!
  13. notes to read offline
  14. a beep sound
  15. Test 2
  16. 1
  17. Battery OK
  18. 250
  19. 5
  20. 2
  21. 10
  22. edge cases
  23. camera app → camera
  24. shows where things go
  25. OFF
  26. an app store
  27. 30
  28. plan the screens
  29. UX
  30. real users
  31. a text box
  32. Hi, Kabir
  33. Yes
  34. line 1
  35. sketch the screens
  36. 380
  37. True
  38. after the must-haves
  39. 0
  40. 1.15.0

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