Class: 9th
Subject:
Time Allowed: 2 Hours
Total Marks: 75
Section A: Multiple Choice Questions (12 Marks)
(Time Allowed: 20 Minutes)
Attempt all questions. Each question carries 1 mark.
Choose the correct option:
- Which of the following is a low-level programming language?
a) Python b) C c) Assembly d) Java - A variable is:
a) A fixed value b) A name for a memory location c) An operator d) None of the above - Which of the following is not an input device?
a) Keyboard b) Mouse c) Printer d) Scanner - What is the full form of HTML?
a) HyperText Markup Language b) HighText Markup Language c) HyperTool Markup Language d) None of these - In C++, which symbol is used for comments?
a) // b) # c) & d) $ - Which loop is known as an entry-controlled loop?
a) while b) do-while c) for d) All of the above - Which gate is known as an inverter?
a) AND b) OR c) NOT d) XOR - HTML tags are enclosed within:
a) { } b) < > c) [ ] d) ( ) - Which of the following is used for decision-making in programming?
a) Loops b) Variables c) Control structures d) Functions - Which is an example of an output device?
a) Monitor b) Mouse c) Keyboard d) Scanner - What does CPU stand for?
a) Central Processing Unit b) Central Programming Unit c) Control Processing Unit d) Computer Processing Unit - Which of the following is used for user input in a program?
a) cout b) cin c) printf d) scanf
Section B: Short Questions (36 Marks)
Attempt any 9 questions. Each question carries 3 marks.
- Define programming techniques and their types.
- What is the difference between low-level and high-level languages?
- Explain the role of a variable in a program.
- Describe the purpose of input and output devices in a computer system.
- What are HTML tags and attributes? Give examples.
- Explain the concept of control structures in programming.
- Write a short note on loops in programming.
- What is the role of logical gates in computers?
- Differentiate between ‘while’ and ‘do-while’ loops.
- What is the use of conditional statements in programming?
- Write a simple HTML code to display “Hello World.”
- What is the function of the NOT gate in logic circuits?
Section C: Long Questions (20 Marks)
Attempt any 2 questions. Each question carries 10 marks.
- Write a C++ program to add two numbers entered by the user and display the result. Explain each part of the code.
- Discuss in detail the different types of control structures in programming with examples.
- Explain the structure of an HTML document and how to create a webpage using basic HTML elements.