Skip to content

Federal (FBISE) · Chapter test · Free

10th Class Computer Chapter 3 Test3. Programming Fundamentals

30 marks · 40 minutes · 21 questions. Covers: 3. Programming Fundamentals.

Your school name

10th Class Computer Chapter 3 Test

10th Class · Computer · Federal (FBISE)

Name: ____________Roll No: ________Class/Section: ________Date: ________Total marks: 30Time: 40 minutes

Q1. Multiple choice questions (Attempt all · 10 × 1 = 10)

  1. In debugging, which mode allows checking code line by line?
    1. Run mode
    2. Debug mode with Step-Over
    3. Auto-execution mode
    4. CSS mode
  2. What does tag create?
    1. A table
    2. A dropdown menu
    3. A text field
    4. A reset button
  3. When a user interacts with a webpage, the front-end sends requests to:
    1. Database only
    2. Internet only
    3. Back-end
    4. Browser cache
  4. Which function can be defined in JavaScript to locate an element in a list?
    1. checkItem()
    2. findItem()
    3. searchItem()
    4. getItem()
  5. ADT stands for ___.
    1. Abstract Data type
    2. Abstract document type
    3. All Data type
    4. Any Data type
  6. Which input type is used for entering email addresses?
    1. text
    2. email
    3. mail
    4. id
  7. Which of the following HTML attributes is required in the element for email?
    1. type="url"
    2. type="text"
    3. type="email"
    4. type="password"
  8. In the absence of JavaScript, updating website content requires:
    1. CSS styling
    2. Page refresh
    3. New browser installation
    4. None of these
  9. Which data structure is best suited for working with numbers?
    1. Lists
    2. Arrays
    3. Objects
    4. Strings
  10. An element style during animation is specified by ___.
    1. @key frame
    2. style frame
    3. highlighted frame
    4. @anchor frame

Q2. Short questions (Attempt any 6 of 8 · 6 × 2 = 12)

  1. Why is early error detection important?
  2. Why is JavaScript important for modern websites?
  3. What is the role of the for attribute in ?
  4. What does an index number represent in an array?
  5. What is another name for back-end?
  6. How is an element found in a list?
  7. Which input type is used to select date?
  8. Write one example of where unit testing can be applied.

Q3. Long questions (Attempt any 2 of 3 · 2 × 4 = 8)

  1. Explain the role of different input elements in HTML forms. Discuss text fields, radio buttons, checkboxes, dropdowns, labels, and textarea with examples.
  2. What is CSS animation? Explain the process of creating animations using @keyframes, style tag, and div element. Illustrate with an example of spinning a box and changing text color.
  3. Discuss their ability to hold data, indexing, flexibility in adding/removing items, and examples such as finding an element in a shopping list.