← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 956 · 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.True or false: a finger hits Like is a text event. (a) False (b) True
  2. 2.👆 The user taps the button 6 times. What number does the label show now?
    let score = 6;
    button.onTap = function () {
      score = score + 2;
      label.text = score;
    };
  3. 3.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) show a question (b) an avatar shop (c) check the answer (d) show the score
  4. 4.🎨 Is this about UI or UX: the button colours? (a) UX (b) UI
  5. 5.🔁 What number does this code show?
    let marks = [2, 13, 2, 2];
    let total = 0;
    for (let i = 0; i < marks.length; i++) {
      total = total + marks[i];
    }
    show(total);
  6. 6.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
    Design A: Home → Results → Offers → Confirm
    Design B: Home → Address → Confirm
  7. 7.✏️ Is this true of a wireframe or of a final design: shows the real fonts? (a) a final design (b) a wireframe
  8. 8.⚙️ In an app, is taking a photo an input, processing or an output? (a) output (b) input (c) processing
  9. 9.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let coins = 37; // start at 36
    line 2: coins = coins + 5; // add 5
    line 3: coins = coins - 2; // take away 2
    line 4: show(coins); // show it
  10. 10.💾 What does this code show? (Positions start at 0.)
    let notes = ["Music", "Sports", "Art", "Maths"];
    show(notes[1]);
    (a) Sports (b) Art (c) Music (d) Maths
  11. 11.Which of these is true of a menu button? (a) opens a list of pages (b) switches main sections (c) shows 3 to 5 icons (d) sits at the bottom
  12. 12.🧪 How many of these test cases pass?
    📝 Rule: a quiz is passed with 7 or more right answers.
    function result(right) {
      if (right > 7) {
        return "Pass";
      }
      return "Try again";
    }
    Test 1: result(7) → expected Pass
    Test 2: result(9) → expected Pass
    Test 3: result(4) → expected Try again
  13. 13.👆 An event in an app is ___. (a) a kind of list (b) an app store (c) a colour theme (d) something that happens
  14. 14.💾 Saving data in the cloud lets you ___. (a) skip the internet (b) shrink the app (c) use it on any device (d) never need a password
  15. 15.🧰 How do you run (call) a function called greet? (a) run greet (b) greet() (c) greet[] (d) #greet
  16. 16.🧩 How many inputs (text boxes, switches and sliders) does this screen have?
    [title] Order Snacks
    [switch] Show hints
    [button] Cancel
    [text box] Name
    [button] Save
    [text box] Email
  17. 17.🔁 What is the LAST line this code shows?
    let names = ["Meera", "Riya", "Kabir", "Arjun", "Zoya"];
    for (let i = 0; i < names.length; i++) {
      show("Hi, " + names[i]);
    }
    (a) Hi, Meera (b) Hi, Riya (c) Hi, Kabir (d) Hi, Zoya
  18. 18.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let lives = 33; // start at 31
    line 2: lives = lives + 3; // add 3
    line 3: lives = lives * 2; // double it
    line 4: lives = lives * 2; // double it
    line 5: show(lives); // show it
    (a) line 4 (b) line 3 (c) line 2 (d) line 1
  19. 19.🔘 Our rule: buttons are at least 48 px tall. How many of these buttons follow the rule?
    Cancel button: 60 px tall
    Done button: 48 px tall
    Back button: 64 px tall
    Save button: 60 px tall
  20. 20.♿ Does this help everyone, or make the app harder to use: strong colour contrast? (a) helps everyone (b) makes it harder
  21. 21.🌗 Is dark blue on white easy or hard to read on a button? (a) hard to read (b) easy to read
  22. 22.🚀 A privacy policy tells users ___. (a) what data is collected (b) the app’s price (c) the app’s colours (d) the screen size
  23. 23.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Search → Cart
    Design B: Home → Pens → Confirm → Search → Menu → Results
    (a) Design B (b) Design A
  24. 24.🎨 Is this about UI or UX: the theme colours? (a) UX (b) UI
  25. 25.🧩 In an app, what is the settings page? (a) a button (b) an input (c) data (d) a screen
  26. 26.🗒️ Version 1 of a quiz app must be ready in 14 days. How many days are left for extras after the must-haves?
    show a question: 3 days
    check the answer: 3 days
    show the score: 5 days
  27. 27.Which of these app ideas solves no real problem? (a) a button with no action (b) a medicine reminder (c) a lost-and-found board (d) a free study-room finder
  28. 28.Which of these is a feature? (a) “What should I cook?” (b) “I keep missing the bus” (c) “Small text is hard” (d) a dark mode switch
  29. 29.🔀 Which badge does this quiz app show?
    let marks = 30;
    if (marks >= 80) {
      show("Gold");
    } else if (marks >= 50) {
      show("Silver");
    } else {
      show("Bronze");
    }
    (a) Gold (b) Silver (c) Bronze
  30. 30.💾 What number does this code show?
    let songs = ["Rain", "Kites", "Sunrise", "Monsoon"];
    songs.push("Ocean");
    songs.push("Stars");
    show(songs.length);
  31. 31.🗒️ You are planning version 1 of a quiz app. Which feature can WAIT for a later version? (a) check the answer (b) show a question (c) confetti effects (d) show the score
  32. 32.🔀 What does this PIN rule show?
    let pin = "8075";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) Use 4 digits (b) PIN saved
  33. 33.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Score card”
    2. tap the Search tab
    3. open “Map”
    How many times must you tap Back to reach the main screen of this tab?
  34. 34.🚀 Which version is newer: 4.5.4 or 4.5.11? (a) 4.5.4 (b) 4.5.11
  35. 35.🔢 In a food-order flow, which comes first: “pick a dish” or “add it to the cart”? (a) pick a dish (b) add it to the cart
  36. 36.🔀 What does this PIN rule show?
    let pin = "909";
    if (pin.length === 4) {
      show("PIN saved");
    } else {
      show("Use 4 digits");
    }
    (a) PIN saved (b) Use 4 digits
  37. 37.🔁 What number does this code show?
    let scores = [18, 7, 6];
    let best = 0;
    for (let i = 0; i < scores.length; i++) {
      if (scores[i] > best) {
        best = scores[i];
      }
    }
    show(best);
  38. 38.🗒️ Version 1 of a homework planner must be ready in 17 days. How many days are left for extras after the must-haves?
    add a homework task: 3 days
    set a due date: 3 days
    see tasks by day: 5 days
  39. 39.👆 The user types Aman in nameBox and taps the button 1 time. What does the label show?
    button.onTap = function () {
      label.text = "Welcome, " + nameBox.text + "!";
    };
    (a) Welcome, nameBox.text! (b) Welcome, Aman! (c) Welcome! (d) Aman
  40. 40.👆 What kind of event is this: the app starts up? (a) a timer event (b) a text event (c) a load event (d) a tap event

Answer key

  1. False
  2. 18
  3. an avatar shop
  4. UI
  5. 19
  6. 3
  7. a final design
  8. input
  9. 40
  10. Sports
  11. opens a list of pages
  12. 2
  13. something that happens
  14. use it on any device
  15. greet()
  16. 3
  17. Hi, Zoya
  18. line 1
  19. 4
  20. helps everyone
  21. easy to read
  22. what data is collected
  23. Design A
  24. UI
  25. a screen
  26. 3
  27. a button with no action
  28. a dark mode switch
  29. Bronze
  30. 6
  31. confetti effects
  32. PIN saved
  33. 1
  34. 4.5.11
  35. pick a dish
  36. Use 4 digits
  37. 18
  38. 6
  39. Welcome, Aman!
  40. a load event

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