← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 719 · 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.🔀 Which badge does this quiz app show?
    let marks = 62;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Silver (b) Bronze (c) Gold
  2. 2.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(3) + points(3));
  3. 3.Which of these is about UI (the look)? (a) how users feel after (b) whether users get lost (c) how fast a task is done (d) the icon shapes
  4. 4.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(24));
  5. 5.👆 The user taps the button 1 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
  6. 6.🐞 A comment in code (after //) is for ___. (a) the phone screen (b) the app store (c) people reading the code (d) the battery
  7. 7.📱 Which one opens from a link: an app or a website? (a) a website (b) an app
  8. 8.🧪 What is the ACTUAL result of Test 2?
    🚚 Rule: delivery is free (0) when the order is 400 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 400) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(550) → expected 0
    Test 2: delivery(700) → expected 0
    Test 3: delivery(350) → expected 40
  9. 9.True or false: how easy sign-up is is about UX (the experience). (a) False (b) True
  10. 10.🧭 Why should every screen show where you are? (a) to hide the menu (b) to look busy (c) to use more battery (d) so users do not get lost
  11. 11.⚙️ What number does this app show?
    let km = 10; // typed by the user
    let metres = km * 1000;
    show(metres);
  12. 12.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 50; // start at 48
    line 2: points = points - 2; // take away 2
    line 3: points = points + 6; // add 6
    line 4: show(points); // show it
  13. 13.🧭 About how many tabs suit a tab bar best? (a) 1 (b) 20 (c) 10 to 12 (d) 3 to 5
  14. 14.True or false: the home page of an app is a screen. (a) True (b) False
  15. 15.🧭 Which part of navigation goes to the last screen? (a) a menu button (b) the back button (c) a tab bar
  16. 16.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. tap the Profile tab
    2. open “Edit photo”
    3. tap the Home tab
    4. open “Badges”
    Which screen are you on now?
    (a) Badges (b) Search (c) Edit photo (d) Home
  17. 17.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 11, and 100 for everyone else.
    function price(age) {
      if (age < 11) {
        return 50;
      }
      return 100;
    }
    Test 1: price(8) → expected 50
    Test 2: price(12) → expected 100
    Test 3: price(14) → expected 100
  18. 18.🔢 When you make an app, which comes first: “build the app” or “release it”? (a) build the app (b) release it
  19. 19.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) confetti effects (b) background music (c) an avatar shop (d) show the score
  20. 20.🔀 A screen with no way forward or back is called a ___. (a) tab bar (b) dead end (c) home screen (d) shortcut
  21. 21.⚙️ In an app, is checking a password an input, processing or an output? (a) input (b) output (c) processing
  22. 22.✏️ What is a wireframe? (a) the finished app (b) a simple screen sketch (c) a charging cable (d) a type of password
  23. 23.True or false: a result on screen is an output. (a) False (b) True
  24. 24.📱 Which one has a home-screen icon: an app or a website? (a) a website (b) an app
  25. 25.🔀 What does this sign-up rule show?
    let age = 8;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  26. 26.True or false: speaking a command is an input. (a) True (b) False
  27. 27.Which of these is true of a menu button? (a) switches main sections (b) hides extra links (c) sits at the bottom (d) shows 3 to 5 icons
  28. 28.👆 Code that runs when an event happens is called a ___. (a) header (b) hashtag (c) headline (d) handler
  29. 29.👆 The user taps the button 3 times. What number does the label show now?
    let lives = 8;
    button.onTap = function () {
      lives = lives + 3;
      label.text = lives;
    };
  30. 30.👥 A clinic app has 265 patients, 115 doctors and 290 nurses as users. Which user group is the biggest? (a) doctors (b) nurses (c) patients
  31. 31.🔁 What number does this code show?
    let scores = [19, 6, 14];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  32. 32.💡 Which app idea solves this problem: projects pile up at once? (a) a homework planner (b) a bill splitter (c) a medicine reminder (d) a study-room finder
  33. 33.🧰 What does this code show?
    function greet(name) {
      return "Well done, " + name + "!";
    }
    show(greet("Arjun"));
    (a) Well done, Arjun! (b) Arjun (c) Well done, name! (d) greet
  34. 34.🎯 Is this a user need or a feature: a dark mode switch? (a) a feature (b) a user need
  35. 35.✏️ Why draw a wireframe before coding? (a) it saves data (b) it adds colours (c) it runs the app (d) changes are quick
  36. 36.🧩 Which of these is a button on this screen?
    [title] Add Homework
    [switch] Show hints
    [button] Send
    [button] Start
    [text box] City
    (a) City (b) Show hints (c) Send
  37. 37.🗒️ A to-do app with no “add a task” feature is ___. (a) well planned (b) missing a must-have (c) ready to release (d) a nice extra
  38. 38.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 44; // start at 44
    line 2: stars = stars + 2; // add 2
    line 3: stars = stars - 1; // take away 1
    line 4: stars = stars + 2; // double it
    line 5: show(stars); // show it
  39. 39.🧰 How do you run (call) a function called greet? (a) greet[] (b) run greet (c) #greet (d) greet()
  40. 40.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Settings
    [slider] Brightness
    [text box] Name
    [button] Next

Answer key

  1. Silver
  2. 70
  3. the icon shapes
  4. 72
  5. ON
  6. people reading the code
  7. a website
  8. 0
  9. True
  10. so users do not get lost
  11. 10000
  12. 52
  13. 3 to 5
  14. True
  15. the back button
  16. Badges
  17. 3
  18. build the app
  19. show the score
  20. dead end
  21. processing
  22. a simple screen sketch
  23. True
  24. an app
  25. Ask a parent
  26. True
  27. hides extra links
  28. handler
  29. 17
  30. nurses
  31. 19
  32. a homework planner
  33. Well done, Arjun!
  34. a feature
  35. changes are quick
  36. Send
  37. missing a must-have
  38. 47
  39. greet()
  40. 2

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