← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 614 · 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.👆 The user types Meera in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hello, " + nameBox.text + "!";
    };
    (a) Meera (b) Hello, nameBox.text! (c) Hello, Meera! (d) Hello!
  2. 2.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) check the answer (b) background music (c) an avatar shop (d) confetti effects
  3. 3.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Arjun", "Meera", "Riya", "Kabir"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Arjun (b) Hi, Kabir (c) Hi, Meera (d) Hi, Aman
  4. 4.🌗 Is dark blue on black easy or hard to read on a button? (a) hard to read (b) easy to read
  5. 5.🧪 What is the ACTUAL result of Test 2?
    🎟️ Rule: a ticket costs 50 for children under 8, and 100 for everyone else.
    function price(age) {
      if (age <= 8) {
        return 50;
      }
      return 100;
    }
    Test 1: price(6) → expected 50
    Test 2: price(11) → expected 100
    Test 3: price(14) → expected 100
  6. 6.⚙️ What number does this app show?
    let km = 14; // typed by the user
    let metres = km * 1000;
    show(metres);
  7. 7.🔀 With if / else if / else, how many parts run? (a) only one (b) two (c) none (d) all of them
  8. 8.🔢 In a sign-up flow, which comes FIRST? (a) open the app (b) see the home screen (c) type name and email (d) tap “Sign up”
  9. 9.🔀 Which badge does this quiz app show?
    let marks = 45;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Bronze (b) Gold (c) Silver
  10. 10.🐞 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 50
    line 2: points = points - 5; // take away 5
    line 3: points = points + 2; // double it
    line 4: show(points); // show it
  11. 11.🔁 What number does this code show?
    let marks = [8, 16, 2, 13, 20];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  12. 12.💾 What number does this code show?
    let score = 5;
    score = score - 4;
    score = score + 4;
    show(score);
  13. 13.🗂️ What kind of app is a flashcard trainer? (a) a tool app (b) a game (c) a health app (d) a learning app
  14. 14.🔀 In this course’s code, which sign tests “is equal to”? (a) => (b) !== (c) = (d) ===
  15. 15.🎯 Which app would help this user most: a parent waiting at the bus stop? (a) a recipe finder (b) a homework planner (c) a bus tracker (d) a water reminder
  16. 16.🔍 Which is the odd one out? (a) tiny tap areas (b) strong colour contrast (c) fast-flashing lights (d) colour as the only clue
  17. 17.🔢 After an app is released, which comes FIRST? (a) list what to fix (b) fix and improve (c) read user reviews (d) test it again
  18. 18.🔍 Which is the odd one out? (a) a buzz (vibration) (b) a result on screen (c) a beep sound (d) speaking a command
  19. 19.Which of these app ideas solves a real problem? (a) a medicine reminder (b) a page of random dots (c) a blank grey screen (d) a button with no action
  20. 20.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 8; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 2 (c) line 3
  21. 21.✏️ Is this true of a wireframe or of a final design: shows where things go? (a) a final design (b) a wireframe
  22. 22.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 14, and 100 for everyone else.
    function price(age) {
      if (age <= 14) {
        return 50;
      }
      return 100;
    }
    Test 1: price(23) → expected 100
    Test 2: price(12) → expected 50
    Test 3: price(20) → expected 100
  23. 23.True or false: chat messages to friends fits saving in the cloud. (a) True (b) False
  24. 24.🔍 Which is the odd one out? (a) speaking a command (b) typing your age (c) a pop-up message (d) tapping a button
  25. 25.Which of these happens at the idea stage? (a) write the code (b) sketch the screens (c) try every button (d) spot a problem to solve
  26. 26.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) set a reminder time (b) custom alert sounds (c) share your streak (d) water animations
  27. 27.🔀 Why plan the user flow before building? (a) to skip testing (b) to hide the buttons (c) so each step is clear (d) to add more taps
  28. 28.Which of these app ideas solves no real problem? (a) a blank grey screen (b) a bill splitter (c) a free study-room finder (d) a medicine reminder
  29. 29.🎨 Fewer taps to finish a task usually means ___. (a) better UX (b) a bigger app (c) more colours (d) worse UX
  30. 30.💡 Does an app idea like an app that just says hi solve a real problem? (a) Yes (b) No
  31. 31.👆 The user taps the button 5 times. What number does the label show now?
    let coins = 0;
    button.onTap = function () {
      coins = coins + 4;
      label.text = coins;
    };
  32. 32.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(25, 4));
  33. 33.🔍 Which is the odd one out? (a) try every button (b) spot a problem to solve (c) talk to possible users (d) list what users need
  34. 34.👆 The user types Kabir in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hi, " + nameBox.text + "!";
    };
    (a) Hi, Kabir! (b) Hi! (c) Kabir (d) Hi, nameBox.text!
  35. 35.🧩 In an app, what is the settings page? (a) data (b) an input (c) a screen (d) a button
  36. 36.🐞 A comment in code (after //) is for ___. (a) the app store (b) people reading the code (c) the phone screen (d) the battery
  37. 37.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Sign Up
    [text box] Subject
    [button] Cancel
    [button] Back
    [button] Next
    [switch] Show hints
  38. 38.🔢 When you make an app, which comes first: “test the app” or “get an idea”? (a) test the app (b) get an idea
  39. 39.True or false: one second passes is a timer event. (a) True (b) False
  40. 40.🧩 In an app, what is your saved notes? (a) data (b) a button (c) an input (d) a screen

Answer key

  1. Hello, Meera!
  2. check the answer
  3. Hi, Kabir
  4. hard to read
  5. 100
  6. 14000
  7. only one
  8. open the app
  9. Bronze
  10. 90
  11. 20
  12. 5
  13. a learning app
  14. ===
  15. a bus tracker
  16. strong colour contrast
  17. read user reviews
  18. speaking a command
  19. a medicine reminder
  20. line 2
  21. a wireframe
  22. 3
  23. True
  24. a pop-up message
  25. spot a problem to solve
  26. set a reminder time
  27. so each step is clear
  28. a blank grey screen
  29. better UX
  30. No
  31. 20
  32. 100
  33. try every button
  34. Hi, Kabir!
  35. a screen
  36. people reading the code
  37. 2
  38. get an idea
  39. True
  40. data

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