← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 56 · 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.🧩 In an app, what is tap to go Next? (a) a screen (b) an input (c) a button (d) data
  2. 2.💾 pop() takes off the last item. What does this code show?
    let friends = ["Riya", "Zoya", "Arjun"];
    friends.pop();
    show(friends[friends.length - 1]);
    (a) Riya (b) Arjun (c) Zoya
  3. 3.Which colour pair is easy to read? (a) pale pink on white (b) red on green (c) yellow on white (d) black on yellow
  4. 4.🧪 How many of these test cases pass?
    🎟️ 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(12) → expected 100
    Test 2: price(6) → expected 50
    Test 3: price(11) → expected 100
  5. 5.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Back button: 40 px tall
    Save button: 64 px tall
    Send button: 68 px tall
    (a) Back (b) Send (c) Save
  6. 6.💡 Which app idea solves this problem: bottles go missing at school? (a) a lost-and-found board (b) a bill splitter (c) a medicine reminder (d) a study-room finder
  7. 7.Which of these app ideas solves no real problem? (a) a lost-and-found board (b) a medicine reminder (c) a bill splitter (d) a page of random dots
  8. 8.🔍 Which is the odd one out? (a) a beep sound (b) a pop-up message (c) speaking a command (d) a buzz (vibration)
  9. 9.🧰 In function tip(bill), what is bill? (a) an event (b) a parameter (c) a loop (d) a screen
  10. 10.💡 Which app idea solves this problem: a patient misses doses? (a) a medicine reminder (b) a bill splitter (c) a study-room finder (d) a homework planner
  11. 11.🔢 In a food-order flow, which comes first: “open the menu” or “check the cart”? (a) check the cart (b) open the menu
  12. 12.⚙️ In an app, is a beep sound an input, processing or an output? (a) output (b) input (c) processing
  13. 13.Which colour pair is hard to read? (a) black on pale grey (b) pale pink on white (c) white on dark green (d) dark blue on white
  14. 14.👥 A cricket club app has 195 players, 225 coaches and 125 fans as users. Which user group is the biggest? (a) players (b) coaches (c) fans
  15. 15.♿ Accessibility means an app works for ___. (a) only experts (b) only the coder (c) everyone (d) nobody
  16. 16.Which of these is processing? (a) speaking a command (b) adding up a bill (c) a beep sound (d) taking a photo
  17. 17.🧪 One test case fails. Which one?
    📝 Rule: a quiz is passed with 5 or more right answers.
    function result(right) {
      if (right > 5) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(5) → expected Pass
    Test 2: result(6) → expected Pass
    Test 3: result(4) → expected Try again
    (a) Test 2 (b) Test 3 (c) Test 1
  18. 18.⚙️ In an app, is sorting the scores an input, processing or an output? (a) output (b) processing (c) input
  19. 19.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 42; // start at 42
    line 2: coins = coins + 2; // double it
    line 3: coins = coins - 4; // take away 4
    line 4: coins = coins + 3; // add 3
    line 5: show(coins); // show it
  20. 20.🔍 Which is the odd one out? (a) a puzzle with levels (b) a cricket run chase (c) a word battle (d) a times-table quiz
  21. 21.🔍 Which is the odd one out? (a) a word battle (b) a water reminder (c) a sleep tracker (d) a step counter
  22. 22.Which of these is an output? (a) tapping a button (b) a beep sound (c) speaking a command (d) working out a tip
  23. 23.👥 A cricket club app has 290 players, 130 coaches and 110 fans as users. How many more players than fans are there?
  24. 24.🧩 Which of these is a button on this screen?
    [title] Edit Profile
    [slider] Volume
    [switch] Show hints
    [button] Cancel
    [text box] Phone
    [text box] Email
    [text box] Notes
    (a) Phone (b) Notes (c) Email (d) Cancel
  25. 25.♿ What does a screen reader do? (a) plays music (b) makes text tiny (c) reads the screen aloud (d) takes photos
  26. 26.🔁 What number does this code show?
    let runs = [1, 10, 13, 6, 10];
    let total = 0;
    for (let i = 0; i < runs.length; i++) {
      total = total + runs[i];
    }
    show(total);
  27. 27.📱 Which one opens from a link: an app or a website? (a) an app (b) a website
  28. 28.🔁 Why use a loop to show 100 messages? (a) it is slower (b) it hides them (c) less code to write (d) it uses more lines
  29. 29.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. tap the Lessons tab
    2. tap the Lessons tab
    3. open “Friend list”
    4. tap Back
    5. open “Score card”
    Which screen are you on now?
    (a) Lessons (b) Quiz (c) Friend list (d) Score card
  30. 30.✏️ What is a wireframe? (a) a simple screen sketch (b) the finished app (c) a type of password (d) a charging cable
  31. 31.🚀 Your app is at version 2.10.3. The next release is a big redesign that changes how the app works. What is its version number? (a) 3.0.0 (b) 2.10.4 (c) 2.11.3 (d) 2.11.0
  32. 32.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let stars = 35; // start at 35
    line 2: stars = stars * 2; // double it
    line 3: stars = stars + 5; // add 2
    line 4: stars = stars * 2; // double it
    line 5: show(stars); // show it
    (a) line 2 (b) line 4 (c) line 3 (d) line 1
  33. 33.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(26));
  34. 34.True or false: a finger hits Like is a load event. (a) True (b) False
  35. 35.🔐 Is this permission request fair or too much: calculator → location? (a) too much (b) fair
  36. 36.🚀 A privacy policy tells users ___. (a) what data is collected (b) the screen size (c) the app’s price (d) the app’s colours
  37. 37.Which of these is true of a website? (a) updates from the store (b) has a home-screen icon (c) is installed on a phone (d) opens in a web browser
  38. 38.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let lives = 33; // start at 33
    line 2: lives = lives + 4; // add 4
    line 3: lives = lives - 5; // take away 3
    line 4: show(lives); // show it
  39. 39.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let stars = 31; // start at 31
    line 2: stars = stars + 2; // double it
    line 3: stars = stars - 5; // take away 5
    line 4: stars = stars - 1; // take away 1
    line 5: show(stars); // show it
  40. 40.🧰 What number does this code show?
    function triple(n) {
      return n * 3;
    }
    show(triple(5));

Answer key

  1. a button
  2. Zoya
  3. black on yellow
  4. 3
  5. Back
  6. a lost-and-found board
  7. a page of random dots
  8. speaking a command
  9. a parameter
  10. a medicine reminder
  11. open the menu
  12. output
  13. pale pink on white
  14. coaches
  15. everyone
  16. adding up a bill
  17. Test 1
  18. processing
  19. 43
  20. a times-table quiz
  21. a word battle
  22. a beep sound
  23. 180
  24. Cancel
  25. reads the screen aloud
  26. 40
  27. a website
  28. less code to write
  29. Score card
  30. a simple screen sketch
  31. 3.0.0
  32. line 3
  33. 78
  34. False
  35. too much
  36. what data is collected
  37. opens in a web browser
  38. 32
  39. 27
  40. 15

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