← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 954 · 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 Arjun in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hi, " + nameBox.text + "!";
    };
    (a) Hi, nameBox.text! (b) Hi! (c) Hi, Arjun! (d) Arjun
  2. 2.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(60, 6));
  3. 3.True or false: a selfie sticker app needs your location. (a) True (b) False
  4. 4.🖼️ In this wireframe (top to bottom), what is right above the Add button?
    [ Save button ]
    [ big picture ]
    [ title text ]
    [ search box ]
    [ Add button ]
    (a) title text (b) big picture (c) search box (d) Save button
  5. 5.🖼️ How many parts (boxes) does this wireframe have?
    [ list of items ]
    [ title text ]
    [ big picture ]
    [ top bar ]
    [ search box ]
    [ Save button ]
  6. 6.🔀 In this course’s code, which sign tests “is equal to”? (a) !== (b) === (c) = (d) =>
  7. 7.🧩 How many buttons does this app screen have?
    [title] Add Homework
    [switch] Remind me
    [button] Back
    [text box] Subject
    [text box] Email
    [button] Next
    [text box] City
  8. 8.Which of these is true of a final design? (a) uses plain grey boxes (b) has no real colours (c) shows the real fonts (d) shows where things go
  9. 9.🧪 One test case fails. Which one?
    🎟️ 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(9) → expected 100
    Test 2: price(10) → expected 100
    Test 3: price(7) → expected 50
    (a) Test 2 (b) Test 3 (c) Test 1
  10. 10.💾 What number does this code show?
    let notes = ["Maths", "Art", "Music", "Science"];
    notes.push("Sports");
    notes.push("Hindi");
    show(notes.length);
  11. 11.🔀 What does this battery rule show?
    let battery = 14;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  12. 12.🔀 With if / else if / else, how many parts run? (a) all of them (b) none (c) only one (d) two
  13. 13.📅 An app team plans for 5 days, builds for 9 days, tests for 1 days and releases on 1 more day. How many more days does building take than testing?
  14. 14.📅 An app team plans for 5 days, builds for 12 days, tests for 1 days and releases on 1 more day. How many days does the whole project take?
  15. 15.🔀 What does >= mean? (a) not equal (b) less than (c) greater than or equal (d) smaller or equal
  16. 16.Which of these is an output? (a) sorting the scores (b) a beep sound (c) typing your age (d) checking a password
  17. 17.👆 The user taps the button 2 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
  18. 18.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 46; // start at 46
    line 2: stars = stars + 5; // add 5
    line 3: stars = stars + 2; // double it
    line 4: show(stars); // show it
    (a) line 1 (b) line 3 (c) line 2
  19. 19.👆 An event in an app is ___. (a) an app store (b) something that happens (c) a colour theme (d) a kind of list
  20. 20.🧩 In an app, what is the home page of an app? (a) a screen (b) an input (c) a button (d) data
  21. 21.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Caption: 25 px
    Title: 26 px
    Menu: 14 px
    Footer: 27 px
    (a) Title (b) Caption (c) Footer (d) Menu
  22. 22.🔁 What number does this code show?
    let scores = [6, 15, 9, 20];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  23. 23.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 4; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 2 (b) line 1 (c) line 3
  24. 24.📊 Survey: which problem bugs you most? How many students voted in all?
    losing water bottles: 13 votes
    wasting pocket money: 9 votes
    forgetting birthdays: 17 votes
  25. 25.🧩 How many buttons does this app screen have?
    [title] Order Snacks
    [button] Help
    [text box] Subject
    [switch] Show hints
    [text box] City
    [text box] Name
    [slider] Volume
    [button] Done
  26. 26.👥 A school app has 270 students, 200 teachers and 195 parents as users. How many users does it have in all?
  27. 27.🔁 What is the LAST line this code shows?
    let names = ["Riya", "Zoya", "Arjun", "Kabir"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Arjun (b) Hi, Zoya (c) Hi, Kabir (d) Hi, Riya
  28. 28.🗒️ Version 1 of a water reminder must be ready in 13 days. How many days are left for extras after the must-haves?
    set a reminder time: 4 days
    log a glass of water: 2 days
    see today’s total: 5 days
  29. 29.Which of these is a screen? (a) the game-over page (b) a box to type a name (c) tap to Start (d) today’s step count
  30. 30.🔢 In a quiz-app flow, which comes first: “see the final score” or “tap “Start quiz””? (a) tap “Start quiz” (b) see the final score
  31. 31.True or false: a big-text reader is the best fit for a runner who forgets to sip water. (a) False (b) True
  32. 32.🔘 Is this good or poor button design: a big, easy tap area? (a) good design (b) poor design
  33. 33.♿ A screen has 6 icon buttons. Only 4 of them have a text label for screen readers. How many still need a label?
  34. 34.Which of these is processing? (a) tapping a button (b) a pop-up message (c) adding up a bill (d) typing your age
  35. 35.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 41; // start at 38
    line 2: lives = lives * 2; // double it
    line 3: lives = lives - 1; // take away 1
    line 4: show(lives); // show it
  36. 36.🗒️ Version 1 of a homework planner must be ready in 10 days. How many days are left for extras after the must-haves?
    add a homework task: 1 days
    set a due date: 3 days
    see tasks by day: 2 days
  37. 37.🎯 Is this a user need or a feature: a search bar? (a) a feature (b) a user need
  38. 38.True or false: the user presses Save is a text event. (a) True (b) False
  39. 39.Which of these is true of a final design? (a) uses plain grey boxes (b) has the real colours (c) shows where things go (d) has no real colours
  40. 40.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Edit photo”
    2. tap the Settings tab
    3. tap the Feed tab
    4. open “Score card”
    How many times must you tap Back to reach the main screen of this tab?

Answer key

  1. Hi, Arjun!
  2. 360
  3. False
  4. search box
  5. 6
  6. ===
  7. 2
  8. shows the real fonts
  9. Test 1
  10. 6
  11. Low battery
  12. only one
  13. 8
  14. 19
  15. greater than or equal
  16. a beep sound
  17. OFF
  18. line 3
  19. something that happens
  20. a screen
  21. Menu
  22. 20
  23. line 2
  24. 39
  25. 2
  26. 665
  27. Hi, Kabir
  28. 2
  29. the game-over page
  30. tap “Start quiz”
  31. False
  32. good design
  33. 2
  34. adding up a bill
  35. 75
  36. 4
  37. a feature
  38. False
  39. has the real colours
  40. 1

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