Exam time grade ix
Syllabus
|
Chapter 1- Introduction to Computer System |
|
|
Chapter 7- Programming Concept (Python) |
Question Pattern
1. MCQs(10X1=10)
2.Short q/a(10x2=20)
- 5 Q/A
- 2 number system
- Study the program and answer
- Dry run table
- Python program
3.Long q/a (5x4=20)
- HTML/CSS
- Scratch
- HTML form
- Q/A
- Python program
Revision
1.
Write
answers to the questions based on the following program:
i. a = int(input(“Enter a
number:”))
if (a>0):
print(“positive”)
elif (a<0):
print(“negative”)
else:
print(“zero”)
a.What is the objective of the
given program?
The program checks whether the
entered number is positive, negative, or zero
and displays the result.
b. Does the program give any
error if int() function is removed from the program? Give reason.
Yes, it will give an error. Without int(), the input is taken as a string, and Python cannot compare a string with a number
using >
or <,
which causes a TypeError.
ii. Write answers to the questions based on the following program:
n = int(input("Enter a
number:"))
if (n % 2 == 0):
print("Even Number")
else:
print("Odd Number")
a. What is the purpose of
the given program?
The program checks whether the
entered number is even or odd.
b. What will happen if the user enters 7
as input?
Since 7
% 2 ≠ 0, the output will be:
Odd Number
x = int(input("Enter a
number:"))
if (x >= 50):
print("Pass")
else:
print("Fail")
a.
What does
the program check?
The program
checks whether the entered number is greater
than or equal to 50 to determine pass
or fail.
b. What will be the output if the user enters 45?
Since 45
< 50, the output will be:Fail
2.
Write the
output of the following program using a dry run table:
for i in range(2,21,2):
print(i)
|
Step |
i |
Output |
|
1 |
2 |
2 |
|
2 |
4 |
4 |
|
3 |
6 |
6 |
|
4 |
8 |
8 |
|
5 |
10 |
10 |
|
6 |
12 |
12 |
|
7 |
14 |
14 |
|
8 |
16 |
16 |
|
9 |
18 |
18 |
|
10 |
20 |
20 |
for i in range(1,6):
print(i*i)
|
Step |
i |
I*i |
output |
|
1 |
1 |
1x1=1 |
1 |
|
2 |
2 |
2x2=4 |
4 |
|
3 |
3 |
3x3=9 |
9 |
|
4 |
4 |
4x4=16 |
16 |
|
5 |
5 |
5x5=25 |
25 |
3.
Explain system
software and application software with two example each.
4.
What is cybercrime?
Write any two examples.
5.
List any
four Prevention Measures of Cyber Crime:
6.
What is a search
engine? Write its uses and give one example.
7.
What is micro:bit?
Write any two uses of micro:bit.
8.
What is block
programming? Write any two advantages.
9.
Differentiate
between block programming text-based programming
10.
What is a password?
11.
What is biometric
security?
12.
What is a blog?
Write two advantages and two disadvantages of blogging.
13.
Differences
between Hard Disk Drive (HDD) and Solid State Drive (SSD).
14.
Differences between
primary memory and secondary memory.
15.
Differences between
paired tags and singular tags with example?
16.
What is CSS?
Discuss the three types of CSS (inline, internal, and external) with examples.
17.
Write the main
HTML tags used to create a table.
18.
What are HTML
attributes? Explain with examples like src and href.
19.
How do you create
a form in HTML? Explain different input types and attributes used in a form
with an example.
20.
Convert:
i)
(CAB) 16
= (?) 2
ii)
(1011) 2
= (?)8
iii)
(786) 10=
(?)16
iv)
(111100)
2 – (11000) 2
v)
(111010) 2
÷ (101) 2