← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 247 · 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 does it ACTUALLY show?
    line 1: let lives = 42; // start at 41
    line 2: lives = lives + 5; // add 5
    line 3: lives = lives + 6; // add 6
    line 4: show(lives); // show it
  2. 2.🗒️ When should nice-to-have features be built? (a) on day one (b) never (c) after the must-haves (d) before anything
  3. 3.🔀 Why plan the user flow before building? (a) to skip testing (b) to add more taps (c) so each step is clear (d) to hide the buttons
  4. 4.👥 A cricket club app has 25 players, 260 coaches and 165 fans as users. How many more coaches than players are there?
  5. 5.📱 Which one needs no installing: an app or a website? (a) an app (b) a website
  6. 6.🔀 What does this PIN rule show?
    let pin = "91114";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  7. 7.🔀 Which badge does this quiz app show?
    let marks = 56;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Bronze (b) Silver (c) Gold
  8. 8.♿ A screen has 9 icon buttons. Only 5 of them have a text label for screen readers. How many still need a label?
  9. 9.♿ Our rule: text is at least 16 px. Which text on this screen is too small?
    Menu: 17 px
    Body text: 18 px
    Footer: 9 px
    (a) Body text (b) Menu (c) Footer
  10. 10.🔐 Which permission does a barcode scanner really need? (a) location (b) contacts (c) the microphone (d) the camera
  11. 11.🔀 What number does this shop app show?
    let total = 450;
    if (total > 500) {
      total = total - 50;
    }
    show(total);
  12. 12.📱 The word “app” is short for ___. (a) appointment (b) application (c) appetite (d) apparatus
  13. 13.True or false: a website has a home-screen icon. (a) False (b) True
  14. 14.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let lives = 46; // start at 45
    line 2: lives = lives + 5; // add 5
    line 3: lives = lives + 2; // add 2
    line 4: show(lives); // show it
  15. 15.✏️ Is this true of a wireframe or of a final design: has the real colours? (a) a wireframe (b) a final design
  16. 16.🔀 What does >= mean? (a) not equal (b) smaller or equal (c) less than (d) greater than or equal
  17. 17.🔁 What number does this code show?
    let marks = [18, 14, 7, 5];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  18. 18.🧰 What does this code show?
    function greet(name) {
      return "Hi, " + name + "!";
    }
    show(greet("Arjun"));
    (a) Hi, name! (b) greet (c) Hi, Arjun! (d) Arjun
  19. 19.🧑 Who is an app really made for? (a) its coder only (b) its icon (c) its users (d) its charger
  20. 20.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Add Homework
    [button] Next
    [text box] Phone
    [button] Cancel
    [slider] Volume
  21. 21.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Video”
    2. open “Friend list”
    3. tap Back
    Which screen are you on now?
    (a) Feed (b) Friend list (c) Video (d) Chat
  22. 22.🔀 Which badge does this quiz app show?
    let marks = 26;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Silver (c) Bronze
  23. 23.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. tap the Me tab
    2. open “Score card”
    3. open “Edit photo”
    How many times must you tap Back to reach the main screen of this tab?
  24. 24.Which of these makes the app harder to use? (a) labels on every icon (b) icons with no labels (c) text that can grow (d) strong colour contrast
  25. 25.True or false: a final design shows the real fonts. (a) True (b) False
  26. 26.🧰 What does this code show?
    function greet(name) {
      return "Well done, " + name + "!";
    }
    show(greet("Arjun"));
    (a) Well done, name! (b) Well done, Arjun! (c) Arjun (d) greet
  27. 27.🔁 What number does this code show?
    let marks = [14, 9, 14];
    let best = 0;
    for (let i = 0; i < marks.length; i++) {
      if (marks[i] > best) {
        best = marks[i];
      }
    }
    show(best);
  28. 28.👆 The user taps the button 2 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 4) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  29. 29.👆 Code that runs when an event happens is called a ___. (a) headline (b) handler (c) header (d) hashtag
  30. 30.True or false: the settings page is an input. (a) True (b) False
  31. 31.🧩 How many buttons does this app screen have?
    [title] Settings
    [button] Save
    [text box] Phone
    [switch] Show hints
    [text box] Age
    [text box] City
  32. 32.🔢 In a sign-up flow, what comes right after “open the app”? (a) tap “Sign up” (b) enter the code sent (c) type name and email (d) make a password
  33. 33.Which of these app ideas solves no real problem? (a) a lost-and-found board (b) a free study-room finder (c) a medicine reminder (d) an app that just says hi
  34. 34.👆 The user taps the button 3 times. What number does the label show now?
    let coins = 1;
    button.onTap = function () {
      coins = coins + 5;
      label.text = coins;
    };
  35. 35.Which of these requests asks for too much? (a) map app → location (b) torch → contacts (c) calling app → contacts (d) voice notes → microphone
  36. 36.True or false: tap to Send is a button. (a) False (b) True
  37. 37.🧭 Which part of navigation opens a list of pages? (a) a tab bar (b) the back button (c) a menu button
  38. 38.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Cancel button: 68 px tall
    Start button: 72 px tall
    Done button: 68 px tall
    Save button: 32 px tall
    (a) Done (b) Start (c) Cancel (d) Save
  39. 39.👆 The user types Kabir in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Hello, " + nameBox.text + "!";
    };
    (a) Kabir (b) Hello, Kabir! (c) Hello! (d) Hello, nameBox.text!
  40. 40.♿ Does this help everyone, or make the app harder to use: icons with no labels? (a) helps everyone (b) makes it harder

Answer key

  1. 53
  2. after the must-haves
  3. so each step is clear
  4. 235
  5. a website
  6. Use 4 digits
  7. Silver
  8. 4
  9. Footer
  10. the camera
  11. 450
  12. application
  13. False
  14. 53
  15. a final design
  16. greater than or equal
  17. 18
  18. Hi, Arjun!
  19. its users
  20. 2
  21. Video
  22. Bronze
  23. 2
  24. icons with no labels
  25. True
  26. Well done, Arjun!
  27. 14
  28. 2
  29. handler
  30. False
  31. 1
  32. tap “Sign up”
  33. an app that just says hi
  34. 16
  35. torch → contacts
  36. True
  37. a menu button
  38. Save
  39. Hello, Kabir!
  40. makes it harder

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