← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 484 · 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 SHOULD it show, if every line did what its comment says?
    line 1: let lives = 38; // start at 37
    line 2: lives = lives - 2; // take away 2
    line 3: lives = lives * 2; // double it
    line 4: show(lives); // show it
  2. 2.True or false: a 5-minute alarm ends is a timer event. (a) True (b) False
  3. 3.🎯 Is this a user need or a feature: a search bar? (a) a feature (b) a user need
  4. 4.💾 What number does this code show?
    let notes = ["Art", "Music"];
    notes.push("Sports");
    show(notes.length);
  5. 5.👆 The user taps the button 1 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 2) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  6. 6.💾 What number does this code show?
    let coins = 9;
    coins = coins - 2;
    coins = coins + 3;
    show(coins);
  7. 7.💾 What number does this code show?
    let friends = ["Meera", "Arjun"];
    friends.push("Aman");
    show(friends.length);
  8. 8.🔀 Which badge does this quiz app show?
    let marks = 87;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Bronze (b) Silver (c) Gold
  9. 9.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 38; // start at 38
    line 2: stars = stars * 3; // double it
    line 3: stars = stars + 6; // add 6
    line 4: show(stars); // show it
    (a) line 3 (b) line 2 (c) line 1
  10. 10.🔁 list.length tells you ___. (a) the first item (b) the last item (c) the biggest item (d) how many items it has
  11. 11.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Map”
    2. tap the Search tab
    3. open “Map”
    How many times must you tap Back to reach the main screen of this tab?
  12. 12.🔍 Which is the odd one out? (a) a water reminder (b) a sleep tracker (c) a torch (d) a step counter
  13. 13.⚙️ In an app, is sorting the scores an input, processing or an output? (a) output (b) processing (c) input
  14. 14.True or false: a homework planner is the best fit for a gamer who forgets to drink. (a) True (b) False
  15. 15.True or false: a website opens from a link. (a) True (b) False
  16. 16.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let points = 33; // start at 33
    line 2: points = points + 4; // add 4
    line 3: points = points + 2; // double it
    line 4: show(points); // show it
  17. 17.🔀 Which badge does this quiz app show?
    let marks = 33;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Silver (c) Bronze
  18. 18.💡 Which app idea solves this problem: the library is always full? (a) a study-room finder (b) a lost-and-found board (c) a bill splitter (d) a medicine reminder
  19. 19.🔀 What does this battery rule show?
    let battery = 16;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Battery OK (b) Low battery
  20. 20.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Back button: 44 px tall
    Next button: 60 px tall
    Cancel button: 56 px tall
  21. 21.🎯 Why learn about users before you build? (a) to pick a logo (b) to make it longer (c) to slow it down (d) to build what they need
  22. 22.🔀 What does this PIN rule show?
    let pin = "739";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  23. 23.🧪 What is the ACTUAL result of Test 1?
    🚚 Rule: delivery is free (0) when the order is 800 or more; otherwise it costs 40.
    function delivery(total) {
      if (total >= 800) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(950) → expected 0
    Test 2: delivery(750) → expected 40
    Test 3: delivery(1000) → expected 0
  24. 24.📅 An app team plans for 5 days, builds for 4 days, tests for 3 days and releases on 1 more day. Planning starts on day 1. On which day does building finish?
  25. 25.🖼️ In this wireframe (top to bottom), what is right above the top bar?
    [ Save button ]
    [ big picture ]
    [ list of items ]
    [ filter buttons ]
    [ top bar ]
    (a) Save button (b) filter buttons (c) big picture (d) list of items
  26. 26.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Save button: 56 px tall
    Cancel button: 56 px tall
    Back button: 60 px tall
    Next button: 48 px tall
  27. 27.👥 A cricket club app has 110 players, 65 coaches and 200 fans as users. How many more fans than players are there?
  28. 28.🔢 After an app is released, what comes right after “list what to fix”? (a) fix and improve (b) read user reviews (c) test it again (d) release an update
  29. 29.📅 An app team plans for 5 days, builds for 8 days, tests for 1 days and releases on 1 more day. How many days does the whole project take?
  30. 30.🧩 How many buttons does this app screen have?
    [title] New Note
    [button] Save
    [button] Next
    [text box] Due date
    [button] Start
    [text box] Subject
    [switch] Dark mode
    [text box] Age
  31. 31.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 188; // typed by the user
    line 2: let friends = 4; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 3 (b) line 2 (c) line 1 (d) line 4
  32. 32.👆 A tap handler runs how many times if the user taps 4 times? (a) 8 (b) 0 (c) 4 (d) 1
  33. 33.True or false: how fast a task is done is about UI (the look). (a) False (b) True
  34. 34.True or false: a free study-room finder solves a real problem. (a) True (b) False
  35. 35.👆 The user types Riya in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hello, " + nameBox.text + "!";
    };
    (a) Hello! (b) Hello, nameBox.text! (c) Riya (d) Hello, Riya!
  36. 36.👆 Two designs for the same task (each arrow is one tap). How many taps does the shorter design save?
    Design A: Home → Menu → Pens → Shop → Offers
    Design B: Home → Pay → Address → Pens → Size → Search
  37. 37.🔍 Which is the odd one out? (a) strong colour contrast (b) captions on videos (c) text that can grow (d) colour as the only clue
  38. 38.🔐 Is this permission request fair or too much: voice notes → microphone? (a) too much (b) fair
  39. 39.🔢 In a sign-up flow, which comes LAST? (a) see the home screen (b) enter the code sent (c) open the app (d) type name and email
  40. 40.🔍 Which is the odd one out? (a) text that can grow (b) captions on videos (c) tiny tap areas (d) labels on every icon

Answer key

  1. 70
  2. True
  3. a feature
  4. 3
  5. 1
  6. 10
  7. 3
  8. Gold
  9. line 2
  10. how many items it has
  11. 1
  12. a torch
  13. processing
  14. False
  15. True
  16. 74
  17. Bronze
  18. a study-room finder
  19. Low battery
  20. 2
  21. to build what they need
  22. Use 4 digits
  23. 0
  24. 9
  25. filter buttons
  26. 4
  27. 90
  28. fix and improve
  29. 15
  30. 3
  31. line 3
  32. 4
  33. False
  34. True
  35. Hello, Riya!
  36. 1
  37. colour as the only clue
  38. fair
  39. see the home screen
  40. tiny tap areas

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