← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 703 · 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 number does this code show?
    let marks = [18, 19, 17, 10, 17];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  2. 2.🚀 Your app is at version 2.2.1. The next release is a big redesign that changes how the app works. What is its version number? (a) 2.3.1 (b) 2.3.0 (c) 3.0.0 (d) 2.2.2
  3. 3.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) confetti effects (b) an avatar shop (c) background music (d) show a question
  4. 4.💾 What number does this code show?
    let lives = 4;
    lives = lives - 3;
    lives = lives + 2;
    show(lives);
  5. 5.🔐 Which permission does a voice recorder really need? (a) location (b) the microphone (c) contacts (d) the camera
  6. 6.🔘 Our rule: buttons are at least 48 px tall. The Start button is 44 px tall. How many px taller must it be?
  7. 7.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 50;
    }
    show(fee(11) + fee(2));
  8. 8.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 34; // start at 34
    line 2: score = score * 2; // double it
    line 3: score = score + 5; // add 5
    line 4: score = score + 2; // double it
    line 5: show(score); // show it
  9. 9.🔢 In a quiz-app flow, what comes right after “tap “Start quiz””? (a) pick an answer (b) see the final score (c) read a question (d) see if it is right
  10. 10.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Back button: 52 px tall
    Help button: 28 px tall
    Save button: 56 px tall
    Next button: 68 px tall
    (a) Back (b) Next (c) Save (d) Help
  11. 11.🧩 How many buttons does this app screen have?
    [title] Order Snacks
    [text box] Name
    [switch] Dark mode
    [text box] City
    [slider] Text size
    [text box] Age
    [button] Send
  12. 12.Which of these is true of a website? (a) has a home-screen icon (b) is installed on a phone (c) comes from an app store (d) has a web address
  13. 13.🧪 What is the ACTUAL result of Test 2?
    🚚 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(850) → expected 0
    Test 2: delivery(550) → expected 40
    Test 3: delivery(950) → expected 0
  14. 14.👆 The user taps the button 6 times. What number does the label show now?
    let coins = 8;
    button.onTap = function () {
      coins = coins + 1;
      label.text = coins;
    };
  15. 15.🧪 Who else should try an app before release? (a) only the coder (b) the app icon (c) real users (d) nobody
  16. 16.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Edit photo”
    2. tap Back
    3. open “Match report”
    4. tap Back
    5. tap the Search tab
    How many times must you tap Back to reach the main screen of this tab?
  17. 17.True or false: strong colour contrast is good button design. (a) False (b) True
  18. 18.👆 The user taps the button 2 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 3) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  19. 19.💾 What number does this code show?
    let notes = ["Art", "Science"];
    notes.push("Sports");
    show(notes.length);
  20. 20.Which of these is true of the back button? (a) switches main sections (b) hides extra links (c) opens a list of pages (d) goes to the last screen
  21. 21.🔁 What number does this code show?
    let scores = [13, 20, 3, 14];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  22. 22.✏️ A box with a cross in a wireframe usually means ___. (a) delete this (b) a picture goes here (c) an error (d) a closed app
  23. 23.🔀 What does this sign-up rule show?
    let age = 9;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  24. 24.🧑 Who is an app really made for? (a) its charger (b) its icon (c) its coder only (d) its users
  25. 25.🔘 Is this good or poor button design: a clear word like Save? (a) good design (b) poor design
  26. 26.🔘 Is this good or poor button design: strong colour contrast? (a) poor design (b) good design
  27. 27.🗒️ Version 1 of a water reminder must be ready in 14 days. How many days are left for extras after the must-haves?
    set a reminder time: 2 days
    log a glass of water: 3 days
    see today’s total: 3 days
  28. 28.True or false: a big-text reader is the best fit for a pupil juggling five projects. (a) False (b) True
  29. 29.True or false: a class leaderboard fits saving on the phone. (a) False (b) True
  30. 30.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) check the answer (b) show a question (c) show the score (d) background music
  31. 31.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Label: 25 px
    Caption: 21 px
    Menu: 20 px
    Title: 13 px
    (a) Title (b) Menu (c) Caption (d) Label
  32. 32.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 44; // start at 42
    line 2: lives = lives - 1; // take away 1
    line 3: lives = lives * 2; // double it
    line 4: show(lives); // show it
  33. 33.True or false: an app comes from an app store. (a) False (b) True
  34. 34.🔁 What number does this code show?
    let runs = [11, 2, 5, 6];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  35. 35.🎨 UX stands for user ___. (a) experience (b) express (c) example (d) extra
  36. 36.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(38));
  37. 37.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 33; // start at 32
    line 2: points = points * 2; // double it
    line 3: points = points - 3; // take away 3
    line 4: show(points); // show it
    (a) line 3 (b) line 1 (c) line 2
  38. 38.True or false: photos on two devices fits saving in the cloud. (a) True (b) False
  39. 39.🔢 In a sign-up flow, what comes right after “make a password”? (a) type name and email (b) tap “Sign up” (c) enter the code sent (d) open the app
  40. 40.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) check the answer (b) show the score (c) show a question (d) confetti effects

Answer key

  1. 19
  2. 3.0.0
  3. show a question
  4. 3
  5. the microphone
  6. 4
  7. 50
  8. 75
  9. read a question
  10. Help
  11. 1
  12. has a web address
  13. 40
  14. 14
  15. real users
  16. 0
  17. True
  18. 2
  19. 3
  20. goes to the last screen
  21. 20
  22. a picture goes here
  23. Ask a parent
  24. its users
  25. good design
  26. good design
  27. 6
  28. False
  29. False
  30. background music
  31. Title
  32. 82
  33. True
  34. 24
  35. experience
  36. 114
  37. line 1
  38. True
  39. enter the code sent
  40. confetti effects

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