← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 633 · 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 does this code show? (Positions start at 0.)
    let notes = ["Art", "Science", "Music", "Sports"];
    show(notes[0]);
    (a) Science (b) Music (c) Art (d) Sports
  2. 2.🔀 Which badge does this quiz app show?
    let marks = 64;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Silver (b) Gold (c) Bronze
  3. 3.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 72; // typed by the user
    line 2: let friends = 3; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 3 (b) line 4 (c) line 1 (d) line 2
  4. 4.🔀 What does this PIN rule show?
    let pin = "377";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  5. 5.👆 The user taps the button 4 times. What number does the label show now?
    let points = 7;
    button.onTap = function () {
      points = points + 2;
      label.text = points;
    };
  6. 6.🧰 What number does this code show?
    function total(price, qty) {
      return price * qty;
    }
    show(total(50, 3));
  7. 7.🧭 The app has tabs Feed, Chat, Settings. You start on Feed, then:
    1. open “Video”
    2. tap Back
    3. open “Map”
    4. open “Map”
    5. open “Score card”
    How many times must you tap Back to reach the main screen of this tab?
  8. 8.💾 What number does this code show?
    let lives = 4;
    lives = lives - 2;
    lives = lives + 1;
    show(lives);
  9. 9.🔁 What is the LAST line this code shows?
    let names = ["Riya", "Arjun", "Aman", "Kabir", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Arjun (b) Hi, Riya (c) Hi, Meera (d) Hi, Aman
  10. 10.Which of these is true of a final design? (a) is a quick sketch (b) has no real colours (c) uses the final pictures (d) shows where things go
  11. 11.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 8 or more right answers.
    function result(right) {
      if (right >= 8) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(9) → expected Pass
    Test 2: result(5) → expected Try again
    Test 3: result(8) → expected Pass
  12. 12.🔀 What does this PIN rule show?
    let pin = "6341";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  13. 13.🧭 The app has tabs Lessons, Quiz, Me. You start on Lessons, then:
    1. tap the Me tab
    2. tap the Quiz tab
    3. open “Friend list”
    4. tap Back
    How many times must you tap Back to reach the main screen of this tab?
  14. 14.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Save button: 44 px tall
    Start button: 40 px tall
    Cancel button: 64 px tall
    Back button: 36 px tall
  15. 15.🔢 In a photo-post flow, which comes LAST? (a) open the camera screen (b) post the photo (c) take the photo (d) write a caption
  16. 16.🔢 After an app is released, which comes first: “read user reviews” or “list what to fix”? (a) list what to fix (b) read user reviews
  17. 17.🔍 Which is the odd one out? (a) fast-flashing lights (b) sudden loud sounds (c) icons with no labels (d) strong colour contrast
  18. 18.🐞 A comment in code (after //) is for ___. (a) the battery (b) the app store (c) the phone screen (d) people reading the code
  19. 19.🔁 What is the LAST line this code shows?
    let names = ["Aman", "Riya", "Arjun"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Arjun (b) Hi, Aman (c) Hi, Riya
  20. 20.🎨 Fewer taps to finish a task usually means ___. (a) better UX (b) a bigger app (c) more colours (d) worse UX
  21. 21.🔍 Which is the odd one out? (a) a pop-up message (b) working out a tip (c) a result on screen (d) a buzz (vibration)
  22. 22.🎨 Is this about UI or UX: how fast a task is done? (a) UX (b) UI
  23. 23.🔁 What is the LAST line this code shows?
    let names = ["Kabir", "Arjun", "Zoya", "Aman", "Meera"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Kabir (b) Hi, Arjun (c) Hi, Meera (d) Hi, Zoya
  24. 24.🔘 Our rule: buttons are at least 48 px tall. The Help button is 24 px tall. How many px taller must it be?
  25. 25.🗒️ You are planning version 1 of a water reminder. Which feature can WAIT for a later version? (a) see today’s total (b) set a reminder time (c) share your streak (d) log a glass of water
  26. 26.🔍 Which is the odd one out? (a) labels on every icon (b) strong colour contrast (c) text that can grow (d) icons with no labels
  27. 27.Which colour pair is easy to read? (a) dark blue on black (b) red on green (c) light grey on white (d) black on pale grey
  28. 28.💾 What number does this code show?
    let score = 9;
    score = score - 7;
    score = score + 1;
    show(score);
  29. 29.True or false: a final design uses plain grey boxes. (a) True (b) False
  30. 30.♿ Does this help everyone, or make the app harder to use: labels on every icon? (a) makes it harder (b) helps everyone
  31. 31.♿ Accessibility means an app works for ___. (a) only the coder (b) everyone (c) only experts (d) nobody
  32. 32.🔀 Which badge does this quiz app show?
    let marks = 42;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Silver (c) Bronze
  33. 33.Which of these is a screen? (a) your friends list (b) tap to Send (c) today’s step count (d) the log-in page
  34. 34.🔀 What does this sign-up rule show?
    let age = 9;
    if (age >= 13) {
      show("Welcome!");
    } else {
      show("Ask a parent");
    }
    (a) Ask a parent (b) Welcome!
  35. 35.🧭 Tapping a tab usually takes you to ___. (a) that tab’s main screen (b) the last app used (c) a random page (d) the phone settings
  36. 36.🔁 What number does this code show?
    let scores = [6, 10, 3, 11, 7];
    let total = 0;
    for (let i = 0; i < scores.length; i++) {
      total = total + scores[i];
    }
    show(total);
  37. 37.🌗 Is dark blue on white easy or hard to read on a button? (a) easy to read (b) hard to read
  38. 38.🧰 What does return do in a function? (a) deletes the app (b) sends back a value (c) closes the screen (d) repeats the code
  39. 39.True or false: a water reminder is the best fit for a gamer who forgets to drink. (a) False (b) True
  40. 40.🧭 Where is a tab bar usually placed in a phone app? (a) at the bottom (b) inside a button (c) nowhere (d) in the middle

Answer key

  1. Art
  2. Silver
  3. line 3
  4. Use 4 digits
  5. 15
  6. 150
  7. 3
  8. 3
  9. Hi, Meera
  10. uses the final pictures
  11. 3
  12. PIN saved
  13. 0
  14. 1
  15. post the photo
  16. read user reviews
  17. strong colour contrast
  18. people reading the code
  19. Hi, Arjun
  20. better UX
  21. working out a tip
  22. UX
  23. Hi, Meera
  24. 24
  25. share your streak
  26. icons with no labels
  27. black on pale grey
  28. 3
  29. False
  30. helps everyone
  31. everyone
  32. Bronze
  33. the log-in page
  34. Ask a parent
  35. that tab’s main screen
  36. 37
  37. easy to read
  38. sends back a value
  39. True
  40. at the bottom

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