← App development final test lesson New set →

App Dev Worksheet: Final Test

App development lesson 24: App development final test · Set 561 · 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?
    function greet(name) {
      return "Hello, " + name + "!";
    }
    show(greet("Riya"));
    (a) Riya (b) Hello, Riya! (c) Hello, name! (d) greet
  2. 2.⚙️ What number does this app show?
    let bill = 88; // typed by the user
    let friends = 2; // typed by the user
    let share = bill / friends;
    show(share);
  3. 3.✏️ Why draw a wireframe before coding? (a) it saves data (b) it adds colours (c) it runs the app (d) changes are quick
  4. 4.🔍 Which is the odd one out? (a) the screen layout (b) how easy sign-up is (c) the font size (d) the theme colours
  5. 5.🧰 How do you run (call) a function called greet? (a) run greet (b) greet() (c) #greet (d) greet[]
  6. 6.💡 Which app idea solves this problem: bottles go missing at school? (a) a homework planner (b) a bill splitter (c) a lost-and-found board (d) a study-room finder
  7. 7.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 20;
    }
    show(fee(5) + fee(7));
  8. 8.📊 Survey: which problem bugs you most? How many more votes did “missing the bus” get than “losing water bottles”?
    missing the bus: 11 votes
    losing water bottles: 6 votes
    forgetting homework: 25 votes
  9. 9.🌗 Is black on yellow easy or hard to read on a button? (a) hard to read (b) easy to read
  10. 10.👆 Two designs for the same task (each arrow is one tap). Which needs FEWER taps?
    Design A: Home → Menu → Size → Cart
    Design B: Home → Offers → Item
    (a) Design B (b) Design A
  11. 11.🌐 Which program do you need to open a website? (a) an app store (b) a camera app (c) a web browser (d) a calculator
  12. 12.Which of these fits saving in the cloud? (a) notes to read offline (b) the sound on/off setting (c) a shared to-do list (d) your last game level
  13. 13.True or false: a bus tracker is the best fit for a student who often misses the school bus. (a) False (b) True
  14. 14.True or false: the home page of an app is a button. (a) True (b) False
  15. 15.📱 Which one opens in a web browser: an app or a website? (a) a website (b) an app
  16. 16.Which of these is a user need? (a) a dark mode switch (b) a share button (c) “What should I cook?” (d) a search bar
  17. 17.🧭 The app has tabs Home, Search, Profile. You start on Home, then:
    1. open “Score card”
    2. tap the Home tab
    3. open “Score card”
    Which screen are you on now?
    (a) Home (b) Score card (c) Profile (d) Search
  18. 18.🧩 In an app, what is the settings page? (a) data (b) a button (c) an input (d) a screen
  19. 19.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 43; // start at 43
    line 2: points = points + 2; // add 2
    line 3: points = points - 6; // add 6
    line 4: points = points + 3; // add 3
    line 5: show(points); // show it
    (a) line 4 (b) line 3 (c) line 1 (d) line 2
  20. 20.💾 What number does this code show?
    let songs = ["Rain", "Kites", "Monsoon", "Stars"];
    songs.push("Ocean");
    show(songs.length);
  21. 21.🐞 Each comment says what its line SHOULD do. Which line has the bug?
    line 1: let points = 34; // start at 34
    line 2: points = points + 3; // add 2
    line 3: points = points * 2; // double it
    line 4: show(points); // show it
    (a) line 3 (b) line 1 (c) line 2
  22. 22.👆 Two designs for the same task (each arrow is one tap). How many taps does Design A need?
    Design A: Home → Pens → Search → Item → Cart → Address → Shop
    Design B: Home → Address → Results
  23. 23.🧩 Which input is best for typing your name? (a) a switch (b) a picture (c) a slider (d) a text box
  24. 24.💡 Does an app idea like a medicine reminder solve a real problem? (a) Yes (b) No
  25. 25.⚙️ What number does this app show?
    let bill = 176; // typed by the user
    let friends = 4; // typed by the user
    let share = bill / friends;
    show(share);
  26. 26.💾 pop() takes off the last item. What does this code show?
    let notes = ["Maths", "Hindi", "Art", "Science"];
    notes.pop();
    show(notes[notes.length - 1]);
    (a) Art (b) Science (c) Hindi (d) Maths
  27. 27.🎨 A beautiful app that confuses everyone has ___. (a) perfect UX (b) good UX but poor UI (c) no UI at all (d) good UI but poor UX
  28. 28.🔍 Which is the odd one out? (a) a step counter (b) a sleep tracker (c) a torch (d) a water reminder
  29. 29.🔘 Our rule: buttons are at least 48 px tall. The Next button is 36 px tall. How many px taller must it be?
  30. 30.🐞 This code has a bug. What number does it ACTUALLY show?
    line 1: let score = 46; // start at 46
    line 2: score = score + 4; // add 4
    line 3: score = score * 3; // double it
    line 4: show(score); // show it
  31. 31.💾 Where should the app save photos on two devices: on the phone or in the cloud? (a) in the cloud (b) on the phone
  32. 32.🧪 One test case fails. Which one?
    🚚 Rule: delivery is free (0) when the order is 600 or more; otherwise it costs 40.
    function delivery(total) {
      if (total > 600) {
        return 0;
      }
      return 40;
    }
    Test 1: delivery(600) → expected 0
    Test 2: delivery(650) → expected 0
    Test 3: delivery(400) → expected 40
    (a) Test 1 (b) Test 2 (c) Test 3
  33. 33.🧰 A museum app works out the entry fee. What number does this code show?
    function fee(age) {
      if (age < 5) {
        return 0;
      }
      return 60;
    }
    show(fee(10) + fee(4));
  34. 34.👆 The user taps the button 4 times. What number does the label show now?
    let points = 7;
    button.onTap = function () {
      points = points + 5;
      label.text = points;
    };
  35. 35.🧩 Scores, notes and settings that an app keeps are called ___. (a) buttons (b) screens (c) data (d) tabs
  36. 36.👆 The user taps the button 3 times. What number does the label show now?
    let likes = 0;
    button.onTap = function () {
      if (likes < 3) {
        likes = likes + 1;
      }
      label.text = likes;
    };
  37. 37.🔘 Our rule: buttons are at least 48 px tall. Which button is too small?
    Next button: 44 px tall
    Back button: 68 px tall
    Save button: 52 px tall
    (a) Save (b) Next (c) Back
  38. 38.🔀 A screen with no way forward or back is called a ___. (a) dead end (b) tab bar (c) shortcut (d) home screen
  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! (b) Welcome, nameBox.text! (c) Aman (d) Welcome, Aman!
  40. 40.🔍 Which is the odd one out? (a) write the store text (b) share the download link (c) talk to possible users (d) put it on an app store

Answer key

  1. Hello, Riya!
  2. 44
  3. changes are quick
  4. how easy sign-up is
  5. greet()
  6. a lost-and-found board
  7. 40
  8. 5
  9. easy to read
  10. Design B
  11. a web browser
  12. a shared to-do list
  13. True
  14. False
  15. a website
  16. “What should I cook?”
  17. Score card
  18. a screen
  19. line 3
  20. 5
  21. line 2
  22. 6
  23. a text box
  24. Yes
  25. 44
  26. Art
  27. good UI but poor UX
  28. a torch
  29. 12
  30. 150
  31. in the cloud
  32. Test 1
  33. 60
  34. 27
  35. data
  36. 3
  37. Next
  38. dead end
  39. Welcome, Aman!
  40. talk to possible users

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