← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 972 · 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 taps the button 8 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 5) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  2. 2.🔀 In this course’s code, which sign tests “is equal to”? (a) = (b) !== (c) => (d) ===
  3. 3.Which of these is data? (a) a switch for dark mode (b) the settings page (c) a date picker (d) today’s step count
  4. 4.📊 Survey: which problem bugs you most? How many more votes did “missing the bus” get than “no quiet study place”?
    missing the bus: 24 votes
    losing water bottles: 12 votes
    no quiet study place: 5 votes
  5. 5.♿ What does a screen reader do? (a) takes photos (b) makes text tiny (c) plays music (d) reads the screen aloud
  6. 6.🖼️ In this wireframe (top to bottom), what is right above the Save button?
    [ search box ]
    [ Save button ]
    [ top bar ]
    [ filter buttons ]
    [ menu icon ]
    (a) filter buttons (b) top bar (c) search box (d) menu icon
  7. 7.🔀 What number does this shop app show?
    let total = 250;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  8. 8.💾 What does this code show? (Positions start at 0.)
    let songs = ["Monsoon", "Rain", "Ocean"];
    show(songs[2]);
    (a) Monsoon (b) Rain (c) Ocean
  9. 9.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Hint: 23 px
    Label: 25 px
    Title: 23 px
    Caption: 23 px
    Menu: 12 px
    (a) Menu (b) Hint (c) Label (d) Title
  10. 10.🔀 What does this battery rule show?
    let battery = 4;
    if (battery < 20) {
      show("Low battery");
    } else {
      show("Battery OK");
    }
    (a) Low battery (b) Battery OK
  11. 11.🧰 What number does this code show?
    function points(stars) {
      return stars * 10 + 5;
    }
    show(points(1) + points(4));
  12. 12.🔁 What number does this code show?
    let marks = [12, 19, 20];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  13. 13.🔍 Which is the odd one out? (a) the icon shapes (b) the screen layout (c) the button colours (d) how fast a task is done
  14. 14.⚙️ What number does this app show?
    let bill = 32; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  15. 15.🔁 What is the LAST line this code shows?
    let names = ["Meera", "Aman", "Arjun", "Zoya", "Riya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Riya (c) Hi, Aman (d) Hi, Arjun
  16. 16.🚀 Which of these versions is the OLDEST?
    3.5.4, 2.23.8, 3.3.6, 3.18.9
    (a) 3.5.4 (b) 3.18.9 (c) 2.23.8 (d) 3.3.6
  17. 17.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) see today’s total (b) share your streak (c) log a glass of water (d) set a reminder time
  18. 18.🎯 What is a user need? (a) a type of button (b) a colour theme (c) a problem a user has (d) a phone setting
  19. 19.🧩 In an app, what is your high score? (a) an input (b) a screen (c) data (d) a button
  20. 20.🔁 What number does this code show?
    let steps = [1, 9, 5];
    let total = 0;
    for (let i = 0; i < steps.length; i++) {
      total = total + steps[i];
    }
    show(total);
  21. 21.✏️ Is this true of a wireframe or of a final design: looks like the real app? (a) a wireframe (b) a final design
  22. 22.💾 What number does this code show?
    let stars = 5;
    stars = stars - 1;
    stars = stars + 1;
    show(stars);
  23. 23.👆 What kind of event is this: a finger hits Like? (a) a load event (b) a text event (c) a tap event (d) a timer event
  24. 24.🗒️ You are planning version 1 of a bus tracker. Which feature is a MUST-HAVE? (a) change the bus icon (b) rate the driver (c) see where the bus is (d) a dark mode
  25. 25.👆 A tap handler runs how many times if the user taps 4 times? (a) 0 (b) 4 (c) 1 (d) 8
  26. 26.True or false: the button colours is about UI (the look). (a) True (b) False
  27. 27.Which of these is processing? (a) tapping a button (b) adding up a bill (c) taking a photo (d) a result on screen
  28. 28.🔀 When does the else part run? (a) never (b) always (c) when the test is false (d) when the test is true
  29. 29.🗒️ You are planning version 1 of a water reminder. Which feature is a MUST-HAVE? (a) share your streak (b) custom alert sounds (c) water animations (d) set a reminder time
  30. 30.🔀 What does this sign-up rule show?
    let age = 12;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Welcome! (b) Ask a parent
  31. 31.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Match report”
    2. open “Help page”
    3. open “Video”
    4. open “Score card”
    5. tap Back
    How many times must you tap Back to reach the main screen of this tab?
  32. 32.🔢 In a photo-post flow, which comes LAST? (a) write a caption (b) take the photo (c) open the camera screen (d) post the photo
  33. 33.🗒️ A to-do app with no “add a task” feature is ___. (a) missing a must-have (b) ready to release (c) well planned (d) a nice extra
  34. 34.Which of these helps everyone use the app? (a) labels on every icon (b) colour as the only clue (c) fast-flashing lights (d) tiny tap areas
  35. 35.True or false: the screen first opens is a text event. (a) True (b) False
  36. 36.True or false: a spelling coach is a game. (a) True (b) False
  37. 37.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let score = 50; // start at 50
    line 2: score = score * 2; // double it
    line 3: score = score + 9; // add 6
    line 4: show(score); // show it
    (a) line 3 (b) line 2 (c) line 1
  38. 38.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let coins = 46; // start at 46
    line 2: coins = coins + 4; // add 4
    line 3: coins = coins - 4; // take away 4
    line 4: coins = coins - 5; // take away 4
    line 5: show(coins); // show it
  39. 39.🚀 Your app is at version 1.3.4. The next release fixes a small bug. What is its version number? (a) 1.4.4 (b) 2.0.0 (c) 1.4.0 (d) 1.3.5
  40. 40.🧩 What does a button do when you tap it? (a) starts an action (b) saves the battery (c) shows the time (d) changes the phone

Answer key

  1. 5
  2. ===
  3. today’s step count
  4. 19
  5. reads the screen aloud
  6. search box
  7. 250
  8. Ocean
  9. Menu
  10. Low battery
  11. 60
  12. 20
  13. how fast a task is done
  14. 16
  15. Hi, Riya
  16. 2.23.8
  17. share your streak
  18. a problem a user has
  19. data
  20. 15
  21. a final design
  22. 5
  23. a tap event
  24. see where the bus is
  25. 4
  26. True
  27. adding up a bill
  28. when the test is false
  29. set a reminder time
  30. Ask a parent
  31. 3
  32. post the photo
  33. missing a must-have
  34. labels on every icon
  35. False
  36. False
  37. line 3
  38. 42
  39. 1.3.5
  40. starts an action

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