← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 734 · 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.🧪 One test case fails. Which one?
    🎟️ Rule: a ticket costs 50 for children under 10, and 100 for everyone else.
    function price(age) {
      if (age <= 10) {
        return 50;
      }
      return 100;
    }
    Test 1: price(10) → expected 100
    Test 2: price(11) → expected 100
    Test 3: price(6) → expected 50
    (a) Test 3 (b) Test 2 (c) Test 1
  2. 2.True or false: you write the code at the build stage. (a) True (b) False
  3. 3.Which of these is an input? (a) sorting the scores (b) a result on screen (c) speaking a command (d) a buzz (vibration)
  4. 4.Which of these is true of a website? (a) opens from a link (b) has a home-screen icon (c) is installed on a phone (d) updates from the store
  5. 5.Which of these is a feature? (a) a dark mode switch (b) “I keep missing the bus” (c) “Small text is hard” (d) “What should I cook?”
  6. 6.🎨 Is this about UI or UX: how easy sign-up is? (a) UI (b) UX
  7. 7.🔀 What does this PIN rule show?
    let pin = "741";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  8. 8.✏️ Why draw a wireframe before coding? (a) it saves data (b) changes are quick (c) it runs the app (d) it adds colours
  9. 9.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 20;
    }
    show(fee(2) + fee(1));
  10. 10.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Done button: 64 px tall
    Back button: 40 px tall
    Next button: 68 px tall
    (a) Done (b) Back (c) Next
  11. 11.🗂️ What kind of app is a torch? (a) a game (b) a tool app (c) a health app (d) a learning app
  12. 12.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    losing water bottles: 8 votes
    no quiet study place: 6 votes
    wasting pocket money: 13 votes
    (a) losing water bottles (b) wasting pocket money (c) no quiet study place
  13. 13.🧭 Where is a tab bar usually placed in a phone app? (a) inside a button (b) at the bottom (c) in the middle (d) nowhere
  14. 14.🔢 After an app is released, which comes first: “read user reviews” or “release an update”? (a) release an update (b) read user reviews
  15. 15.🔢 After an app is released, which comes first: “test it again” or “release an update”? (a) test it again (b) release an update
  16. 16.Which of these is about UI (the look)? (a) how fast a task is done (b) the font size (c) how users feel after (d) whether users get lost
  17. 17.🔀 What is a user flow? (a) a type of font (b) a colour theme (c) the path through screens (d) a charging cable
  18. 18.🔁 What number does this code show?
    let scores = [54, 16, 60];
    let count = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] >= 40) {
        count = count + 1;
      }
    }
    show(count);
  19. 19.🧪 How many of these test cases pass?
    🎟️ Rule: a ticket costs 50 for children under 9, and 100 for everyone else.
    function price(age) {
      if (age < 9) {
        return 50;
      }
      return 100;
    }
    Test 1: price(5) → expected 50
    Test 2: price(10) → expected 100
    Test 3: price(9) → expected 100
  20. 20.🖼️ How many parts (boxes) does this wireframe have?
    [ search box ]
    [ big picture ]
    [ tab bar ]
    [ Add button ]
    [ title text ]
    [ list of items ]
  21. 21.🔁 What is the LAST line this code shows?
    let names = ["Arjun", "Zoya", "Aman", "Riya", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Aman (c) Hi, Arjun (d) Hi, Zoya
  22. 22.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let points = 41; // start at 41
    line 2: points = points * 2; // double it
    line 3: points = points + 4; // take away 4
    line 4: show(points); // show it
  23. 23.🧩 Which of these is a button on this screen?
    [title] New Note
    [text box] City
    [button] Back
    [button] Cancel
    (a) City (b) Back
  24. 24.Which of these fits saving in the cloud? (a) a draft you are typing (b) photos on two devices (c) notes to read offline (d) the sound on/off setting
  25. 25.🖼️ In this wireframe (top to bottom), what is right above the top bar?
    [ Save button ]
    [ search box ]
    [ Add button ]
    [ top bar ]
    [ big picture ]
    [ list of items ]
    (a) list of items (b) Save button (c) Add button (d) big picture
  26. 26.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 3; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 2 (c) line 1
  27. 27.🔍 Which is the odd one out? (a) checking a password (b) working out a tip (c) a result on screen (d) sorting the scores
  28. 28.Which of these helps everyone use the app? (a) icons with no labels (b) fast-flashing lights (c) strong colour contrast (d) colour as the only clue
  29. 29.🗒️ You are planning version 1 of a quiz app. Which feature is a MUST-HAVE? (a) background music (b) confetti effects (c) an avatar shop (d) show a question
  30. 30.🧪 One test case fails. Which one?
    🎟️ 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(10) → expected 100
    Test 2: price(8) → expected 100
    Test 3: price(5) → expected 50
    (a) Test 2 (b) Test 1 (c) Test 3
  31. 31.True or false: the icon shapes is about UI (the look). (a) True (b) False
  32. 32.👆 The user taps the button 6 times. What number does the label show now?
    let points = 8;
    button.onTap = function () {
      points = points + 3;
      label.text = points;
    };
  33. 33.👆 Code that runs when an event happens is called a ___. (a) handler (b) headline (c) hashtag (d) header
  34. 34.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Map”
    2. tap Back
    3. tap the Home tab
    4. tap the Profile tab
    5. open “Score card”
    Which screen are you on now?
    (a) Score card (b) Home (c) Map (d) Search
  35. 35.Which colour pair is easy to read? (a) red on green (b) pale pink on white (c) dark blue on black (d) white on black
  36. 36.True or false: a countdown hits zero is a text event. (a) False (b) True
  37. 37.🔍 Which is the odd one out? (a) sketch the screens (b) put it on an app store (c) pick the features (d) draw the user flow
  38. 38.⚙️ What number does this app show?
    let price = 45; // typed by the user
    let qty = 6; // typed by the user
    let total = price * qty;
    show(total);
  39. 39.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
    Design A: Home → Offers → Confirm → Size → Results → Item
    Design B: Home → Offers → Search → Menu
  40. 40.🔢 In a food-order flow, which comes first: “pick a dish” or “check the cart”? (a) check the cart (b) pick a dish

Answer key

  1. Test 1
  2. True
  3. speaking a command
  4. opens from a link
  5. a dark mode switch
  6. UX
  7. Use 4 digits
  8. changes are quick
  9. 0
  10. Back
  11. a tool app
  12. wasting pocket money
  13. at the bottom
  14. read user reviews
  15. test it again
  16. the font size
  17. the path through screens
  18. 2
  19. 3
  20. 6
  21. Hi, Meera
  22. 86
  23. Back
  24. photos on two devices
  25. Add button
  26. line 2
  27. a result on screen
  28. strong colour contrast
  29. show a question
  30. Test 2
  31. True
  32. 26
  33. handler
  34. Score card
  35. white on black
  36. False
  37. put it on an app store
  38. 270
  39. 2
  40. pick a dish

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