← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 821 · 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.🔁 What number does this code show?
    let runs = [11, 12, 2, 1];
    let best = 0;
    for (let i = 0; i < runs.length; i++) {
      if (runs[i] > best) {
        best = runs[i];
      }
    }
    show(best);
  2. 2.🔢 In a quiz-app flow, what comes right after “tap “Start quiz””? (a) see if it is right (b) read a question (c) pick an answer (d) see the final score
  3. 3.👆 What kind of event is this: the app starts up? (a) a load event (b) a text event (c) a timer event (d) a tap event
  4. 4.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 500 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 500) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(800) → expected 0
    Test 2: delivery(500) → expected 0
    Test 3: delivery(300) → expected 40
    (a) Test 1 (b) Test 3 (c) Test 2
  5. 5.💾 What number does this code show?
    let notes = ["Science", "Hindi", "Music"];
    notes.push("Art");
    notes.push("Maths");
    show(notes.length);
  6. 6.🎯 Who are the users of an app? (a) only the testers (b) the people who use it (c) the app icons (d) only the coders
  7. 7.♿ Our rule: text is at least 16 px. How many texts on this screen are too small?
    Title: 11 px
    Footer: 24 px
    Hint: 16 px
    Menu: 24 px
  8. 8.🗒️ You are planning version 1 of a bus tracker. Which feature can WAIT for a later version? (a) pick your bus stop (b) rate the driver (c) see where the bus is (d) show arrival time
  9. 9.🔘 Is this good or poor button design: grey text on grey? (a) poor design (b) good design
  10. 10.🔀 What does >= mean? (a) not equal (b) less than (c) smaller or equal (d) greater than or equal
  11. 11.🔢 In a photo-post flow, what comes right after “add a filter”? (a) write a caption (b) open the camera screen (c) post the photo (d) take the photo
  12. 12.🔍 Which is the odd one out? (a) a spelling coach (b) a unit converter (c) a times-table quiz (d) a flashcard trainer
  13. 13.🔢 In a photo-post flow, what comes right after “take the photo”? (a) post the photo (b) open the camera screen (c) write a caption (d) add a filter
  14. 14.🧩 Scores, notes and settings that an app keeps are called ___. (a) buttons (b) tabs (c) screens (d) data
  15. 15.🔢 In a sign-up flow, which comes FIRST? (a) open the app (b) tap “Sign up” (c) make a password (d) type name and email
  16. 16.🖼️ In this wireframe (top to bottom), which part is at the very bottom?
    [ title text ]
    [ Save button ]
    [ search box ]
    [ menu icon ]
    (a) Save button (b) title text (c) menu icon (d) search box
  17. 17.👆 “On tap → do this” links an event to ___. (a) a charger (b) an action (c) a font (d) a web address
  18. 18.Which of these is a user need? (a) “I keep missing the bus” (b) a dark mode switch (c) a share button (d) a search bar
  19. 19.🧰 Why write a function? (a) to slow the app (b) to make code longer (c) to hide errors (d) to reuse code
  20. 20.True or false: you write down the bugs at the test stage. (a) True (b) False
  21. 21.🔍 Which is the odd one out? (a) the theme colours (b) how users feel after (c) the button colours (d) the screen layout
  22. 22.🔍 Which is the odd one out? (a) draw the user flow (b) add the buttons (c) sketch the screens (d) pick the features
  23. 23.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let lives = 42; // start at 41
    line 2: lives = lives - 3; // take away 3
    line 3: lives = lives - 5; // take away 5
    line 4: show(lives); // show it
  24. 24.📱 Which one comes from an app store: an app or a website? (a) a website (b) an app
  25. 25.True or false: a bus tracker is the best fit for a runner who forgets to sip water. (a) False (b) True
  26. 26.🔁 What number does this code show?
    let marks = [12, 52, 99];
    let count = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] >= 50) {
        count = count + 1;
      }
    }
    show(count);
  27. 27.True or false: a speak-to-type notes app needs the microphone. (a) True (b) False
  28. 28.📊 Survey: which problem bugs you most? Which problem should your app solve first?
    wasting pocket money: 3 votes
    forgetting homework: 25 votes
    missing the bus: 4 votes
    (a) wasting pocket money (b) missing the bus (c) forgetting homework
  29. 29.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 33; // start at 33
    line 2: lives = lives - 3; // take away 3
    line 3: lives = lives - 1; // take away 1
    line 4: lives = lives + 7; // add 4
    line 5: show(lives); // show it
    (a) line 3 (b) line 2 (c) line 4 (d) line 1
  30. 30.🔁 In for (let i = 0; i < 3; i++), which values does i take? (a) 1, 2, 3 (b) 3 (c) 0, 1, 2 (d) 0, 1, 2, 3
  31. 31.🔢 After an app is released, which comes LAST? (a) release an update (b) test it again (c) read user reviews (d) fix and improve
  32. 32.True or false: a homework photo scanner needs the microphone. (a) False (b) True
  33. 33.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(3));
  34. 34.Which of these is processing? (a) speaking a command (b) a buzz (vibration) (c) adding up a bill (d) a result on screen
  35. 35.💡 After a survey, which need should version 1 solve? (a) the most common need (b) a random need (c) the rarest need (d) the newest trend
  36. 36.🐞 This code has a bug. What number SHOULD it show, if every line did what its comment says?
    line 1: let stars = 40; // start at 39
    line 2: stars = stars - 3; // take away 3
    line 3: stars = stars + 2; // add 2
    line 4: show(stars); // show it
  37. 37.True or false: chat messages to friends fits saving on the phone. (a) True (b) False
  38. 38.🗒️ Version 1 of a homework planner must be ready in 11 days. How many days are left for extras after the must-haves?
    add a homework task: 3 days
    set a due date: 1 days
    see tasks by day: 2 days
  39. 39.🔀 With if / else if / else, how many parts run? (a) none (b) only one (c) two (d) all of them
  40. 40.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Menu: 23 px
    Caption: 19 px
    Footer: 10 px
    Body text: 23 px
    (a) Body text (b) Menu (c) Caption (d) Footer

Answer key

  1. 12
  2. read a question
  3. a load event
  4. Test 2
  5. 5
  6. the people who use it
  7. 1
  8. rate the driver
  9. poor design
  10. greater than or equal
  11. write a caption
  12. a unit converter
  13. add a filter
  14. data
  15. open the app
  16. menu icon
  17. an action
  18. “I keep missing the bus”
  19. to reuse code
  20. True
  21. how users feel after
  22. add the buttons
  23. 33
  24. an app
  25. False
  26. 2
  27. True
  28. forgetting homework
  29. line 4
  30. 0, 1, 2
  31. release an update
  32. False
  33. 9
  34. adding up a bill
  35. the most common need
  36. 38
  37. False
  38. 5
  39. only one
  40. Footer

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