Skip to content

Federal (FBISE) · Chapter test · Free

9th Class Computer Chapter 3 Test3. Programming Fundamentals

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

Your school name

9th Class Computer Chapter 3 Test

9th 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. What is the primary use of JavaScript?
    1. Data analysis
    2. Web devalopment
    3. System programming
    4. Database management
  2. What is an 'event' in programming?
    1. A code error
    2. A user or program action that triggers a task
    3. A programming language feature
    4. A data structure
  3. How does HTML identify and support objects in a webpage?
    1. Through variables
    2. Through functions
    3. Through tags
    4. Through stylesheets
  4. Where is Embedded CSS placed in an HTML document ?
    1. In the body section
    2. In the header section
    3. In the footer section
    4. In the External CSS file
  5. The first value assigned to a variable after declaration is called _________.
    1. Beginning value
    2. Starting value
    3. Initialization
    4. Substitution
  6. What can CSS be added to an HTML documents ?
    1. Through Inline CSS
    2. Through External CSS
    3. Through Embedded CSS
    4. All of the above
  7. What happens when code execution reaches a breakpoint?
    1. Runs normally
    2. Execution halts
    3. Code compiles
    4. Code deletes
  8. Where should event-based JavaScript code be placed in an HTML document?
    1. Inside
    2. Inside
    3. Between tags
    4. Between tags
  9. Span is used to provide _________ to a line.
    1. Font
    2. Border
    3. Style
    4. Colour1
  10. What is a set of webpages called?
    1. Web browser
    2. Web applications
    3. Websites
    4. URL

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

  1. What is HTML?
  2. Explain the role of tag-pair in a document.
  3. Name three stylesheets languages mentioned in the text.
  4. What is the primary language used for basic website development?
  5. Which stylesheet language is the most commonly used with HTML ?
  6. What is an Integrated Development Environment (IDE), and which one is mentioned in the text ?
  7. How does HTML identify and support objects in a webpage?
  8. What is a breakpoint and how is it used in Visual Studio.Net?

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

  1. In context of Fig. (d), add another button namely 'Revert' which when is pressed, it will reverse both the color and index values.
  2. What is HTML and how does it work with tags to display content on a webpage? Provide an example to illustrate your explanation.
  3. With the help of sample code, highlight different methods to incorporate CSS code in a HTML webpage.