← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 994 · 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.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 48; // start at 48
    line 2: points = points + 3; // add 3
    line 3: points = points + 2; // double it
    line 4: show(points); // show it
  2. 2.🗒️ You are planning version 1 of a homework planner. Which feature is a MUST-HAVE? (a) earn stickers (b) share tasks to friends (c) pick a theme colour (d) add a homework task
  3. 3.Which of these is true of a website? (a) has a home-screen icon (b) comes from an app store (c) updates from the store (d) needs no installing
  4. 4.🧩 Which part lets the user give the app information? (a) a title (b) a logo (c) an input (d) an icon
  5. 5.🔍 Which is the odd one out? (a) how users feel after (b) the button colours (c) the font size (d) the screen layout
  6. 6.Which of these is about UI (the look)? (a) how fast a task is done (b) how users feel after (c) how many taps it takes (d) the screen layout
  7. 7.True or false: “icons with no labels” makes the app harder to use. (a) False (b) True
  8. 8.True or false: the user types a letter is a text event. (a) True (b) False
  9. 9.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) confetti effects (b) background music (c) show the score (d) an avatar shop
  10. 10.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 245; // typed by the user
    line 2: let friends = 5; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 1 (b) line 2 (c) line 4 (d) line 3
  11. 11.🗒️ The first small, working version of an app is often called an ___. (a) CPU (b) FAQ (c) MVP (d) URL
  12. 12.🐞 What is a good first step when an app gives a wrong result? (a) delete the app (b) find where it goes wrong (c) buy a new phone (d) add more colours
  13. 13.🧪 Who else should try an app before release? (a) only the coder (b) the app icon (c) nobody (d) real users
  14. 14.🎯 Is this a user need or a feature: a share button? (a) a feature (b) a user need
  15. 15.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 49; // start at 46
    line 2: score = score + 6; // add 6
    line 3: score = score + 4; // add 4
    line 4: score = score + 5; // add 5
    line 5: show(score); // show it
    (a) line 4 (b) line 3 (c) line 1 (d) line 2
  16. 16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 43; // start at 42
    line 2: stars = stars + 6; // add 6
    line 3: stars = stars + 2; // add 2
    line 4: show(stars); // show it
  17. 17.🧰 How do you run (call) a function called greet? (a) greet[] (b) greet() (c) run greet (d) #greet
  18. 18.🔀 What does >= mean? (a) less than (b) greater than or equal (c) smaller or equal (d) not equal
  19. 19.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Title: 22 px
    Footer: 25 px
    Label: 21 px
    Caption: 26 px
    Hint: 14 px
    (a) Label (b) Title (c) Hint (d) Footer
  20. 20.👥 A school app has 265 students, 280 teachers and 85 parents as users. How many more students than parents are there?
  21. 21.🔁 What number does this code show?
    let scores = [9, 7, 7, 10, 1];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  22. 22.🔀 Which badge does this quiz app show?
    let marks = 81;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Bronze (b) Silver (c) Gold
  23. 23.True or false: one second passes is a tap event. (a) False (b) True
  24. 24.Which of these fits saving on the phone? (a) chat messages to friends (b) a class leaderboard (c) the sound on/off setting (d) photos on two devices
  25. 25.True or false: an app has a web address. (a) True (b) False
  26. 26.🗒️ Version 1 of a pocket-money tracker must be ready in 9 days. How many days are left for extras after the must-haves?
    add money received: 2 days
    add money spent: 1 days
    show the balance: 4 days
  27. 27.🔍 Which is the odd one out? (a) labels on every icon (b) captions on videos (c) big touch targets (d) colour as the only clue
  28. 28.💾 pop() takes off the last item. What does this code show?
    let friends = ["Kabir", "Zoya", "Aman"];
    friends.pop();
    show(friends[friends.length - 1]);
    (a) Aman (b) Kabir (c) Zoya
  29. 29.🧩 How many buttons does this app screen have?
    [title] Edit Profile
    [text box] City
    [button] Back
    [button] Save
    [switch] Remind me
    [text box] Age
  30. 30.True or false: “big touch targets” helps everyone use the app. (a) False (b) True
  31. 31.Which of these is processing? (a) tapping a button (b) speaking a command (c) a buzz (vibration) (d) working out a tip
  32. 32.💾 Where should the app save a class leaderboard: on the phone or in the cloud? (a) in the cloud (b) on the phone
  33. 33.🔁 What number does this code show?
    let scores = [3, 4, 11];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  34. 34.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 14; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 1 (c) line 2
  35. 35.🧰 What does this code show?
    function greet(name) {
      return "Well done, " + name + "!";
    }
    show(greet("Kabir"));
    (a) Well done, Kabir! (b) Well done, name! (c) Kabir (d) greet
  36. 36.🎯 Which app would help this user most: a cook with no idea for dinner? (a) a homework planner (b) a water reminder (c) a recipe finder (d) a bus tracker
  37. 37.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
    Design A: Home → Results → Confirm → Search → Shop → Item → Pens
    Design B: Home → Size → Confirm
  38. 38.🔍 Which is the odd one out? (a) the font size (b) the icon shapes (c) the button colours (d) how easy sign-up is
  39. 39.🧪 How many of these test cases pass?
    🚚 Rule: delivery is free (0) when the order is 300 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 300) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(650) → expected 0
    Test 2: delivery(200) → expected 40
    Test 3: delivery(550) → expected 0
  40. 40.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Help page”
    2. open “Badges”
    3. tap the Settings tab
    4. tap the Settings tab
    Which screen are you on now?
    (a) Badges (b) Help page (c) Feed (d) Settings

Answer key

  1. 53
  2. add a homework task
  3. needs no installing
  4. an input
  5. how users feel after
  6. the screen layout
  7. True
  8. True
  9. show the score
  10. line 3
  11. MVP
  12. find where it goes wrong
  13. real users
  14. a feature
  15. line 1
  16. 50
  17. greet()
  18. greater than or equal
  19. Hint
  20. 180
  21. 34
  22. Gold
  23. False
  24. the sound on/off setting
  25. False
  26. 2
  27. colour as the only clue
  28. Zoya
  29. 2
  30. True
  31. working out a tip
  32. in the cloud
  33. 11
  34. line 2
  35. Well done, Kabir!
  36. a recipe finder
  37. 6
  38. how easy sign-up is
  39. 3
  40. Settings

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