Computer Science Question Model Set Grade 9
Grade: 9 |
Subject: Computer Science |
Full Marks: 50 |
Time: 1:30 Hrs |
|
|
Group 'A' (10 Marks)
1. Answer the following questions in one
sentence. [6×1=6]
a)
Why computer called a diligence machine?
Ans: The term "diligence machine" refers
to a computer, as it can perform tasks with speed and accuracy, embodying the
characteristic of diligence.
b)
Define application software.
Ans:
Application software refers to computer programs designed to perform specific
tasks for users, such as word processing, spreadsheet management, and gaming,
among others.
c)
What is CSS?
Ans:
CSS (Cascading Style Sheets) is a styling language used to define the layout
and appearance of web pages, separate from their content written in HTML.
d)
What is a flowchart?
Ans:
Flowchart is a diagrammatical representation of problem.
e)
What is Hypertext Markup Language?
Ans:
Hypertext Markup Language (HTML) is a standardized system for tagging text
files to achieve font, color, graphic, and hyperlink effects on World Wide Web
pages.
f)
Why is QBASIC called a high-level programming language?
Ans:
QBASIC is a high-level programming language due to its abstraction from
hardware and inclusion of built-in functions and control structures for easier
programming.
2.
Write appropriate technical term for the following. [2×1=2]
a)
Contains deleted files and folder.
Ans:
Recycle Bin
b)
A rigid circular platter coated with material that allows the magnetic
recording of computer data.
Ans:
Hard Disk Drive (HDD)
3.
Write the full forms of the following:
[2×1=2]
a)
MHz:
Megahertz
b)
UPS:
Uninterruptible Power Supply
Group "B" (24 Marks)
4.
Answer the following questions. [9×2=18]
a)
What is computer memory? Write its major classification.
Ans:
Computer memory is a temporary storage space for data, which can be classified
into two main types: RAM (Random Access Memory) and ROM (Read-Only Memory).
b)
Differentiate between input unit and output unit.
Ans:
Following are the differentiate between input unit and output unit.
Input unit |
Output Unit |
Receives
data and instructions from external sources |
Provides
processed data to the user or other external devices |
Reads
data into the system |
Sends
data out of the system |
Input-oriented |
Output-oriented |
Examples:
Keyboard, Mouse, Scanner, Microphone |
Examples:
Monitor, Printer, Speakers, Projector |
c)
What is mainframe computer and what are its typical applications?
Ans:
A mainframe computer is a large and expensive computer system designed to
handle the heavy workloads of large organizations, such as corporations,
government agencies, and academic institutions
Following
are the typical applications of mainframe computer.
i)
Transaction processing
ii)
Database management
d)
Mention the major function of operating system.
Ans:
The major functions of an operating system (OS) are:
i)
Resource Management
ii)
Memory Management
iii)
Process Management
iv)
File Management
e)
Define computer graphics. What are the application areas of computer graphics?
Ans:
Computer graphics is the field of computer science concerned with creating
images and visual representations of data using computer algorithms and
hardware.
Applications
areas of computer graphics include:
i)
Multimedia and entertainment
ii)
Design and Engineering
iii)
Advertising and Marketing
iv)
Education and Training
f)
What is the purpose of the web server? Give any two examples of web server
applications.
Ans:
The purpose of a web server is to serve content over the internet or a local
network. A web server receives requests from clients (such as web browsers),
retrieves the requested resources, and returns the content to the client for
display.
Following
are the two examples of server applications.
i)
Apache ii) Nginx
g)
How is the FONT tag used? What are its attributes?
Ans:
The FONT tag is used in HTML to control the appearance of text within a web
page. The FONT tag is used to specify the font size, color, and face of text
within an HTML document.
The
FONT tag has several attributes, including:
i)
Size ii) Color iii) Face
iv) Style
h)
Write the purpose and syntax of the following HTML tags.
i)
<HR>: The <HR> (Horizontal Rule) tag is
used in HTML to create a horizontal line or rule, which can be used to separate
content into different sections.
Syntax:
<p>This
is the first section of content.</p>
<HR>
<p>This
is the second section of content.</p>
ii)
<BR>: The <BR> (Line Break) tag is used
in HTML to insert a line break, which is used to separate text into separate
lines.
Syntax:
Syntax:
<p>Line
1 of text.<BR>
Line
2 of text.<BR>
Line
3 of text.</p>
i)
Write down the HTML code for the following tasks:
i)
Intended for displaying data in rows and columns on a web page.
Ans:
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td>Row 1, Column 3</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
<td>Row 2, Column 3</td>
</tr>
</table>
ii)
Used for creating e-mail links
Ans:
<a href="mailto:example@email.com">Send an email</a>
5.
Output of the following program with a Dry run. [ 2 ]
CLS
n
= 1
FOR
i = 1 TO 5
PRINT
n
n
= n * 10 + 1
NEXT
i
END
Dry
Run:
Var
n |
Check
Loop |
Result/Output |
1 |
i=1
to 5 ? Yes |
1 |
1X10+1=11 |
i=2
to 5? Yes |
11 |
11X10+1=111 |
i=3
to 5? Yes |
111 |
111X10+1=1111 |
i=4
to 5? Yes |
1111 |
1111X10+1=11111 |
I=5
to 5? Yes |
11111 |
11111X10+1=111111 |
I=6
to 5? No Exit
from loop |
|
Final
Output:
1
11
111
1111
11111
6.
Debug the following program. [ 2 ]
CLS
INPUT
"Type any number";n
FOR
x= 1 TO n
r=x
MOD n
IF
r= 0 THEN c=c+1
NEXT
x
IF
c=0 THEN
PRINT
"Prime"
ELSE
PRINT
"Composite"
END
Debugged
program:
CLS
INPUT
"Type any number";n
FOR
x= 1 TO n
r=n
MOD x
IF
r= 0 THEN c=c+1
NEXT
x
IF
c=2 THEN
PRINT
"Prime"
ELSE
PRINT
"Composite"
ENDIF
END
7.
Study the following and answer the given questions. [ 2 ]
CLS
FOR
I = 1 TO 10
READ
n
b=
n MOD 5
IF
b=0 THEN c=c+1
NEXT
i
DATA
7,15,6,10,15,32,8,22,25,5
PRINT
c
END
a)
Write down the output of the program.
Ans:
5
b)
Name the loop used in above program.
Ans:
FOR ……NEXT
Group "C" [16 Marks]
8.
Write a QBASIC program that asks any three numbers and display the average. [4]
Ans:
CLS
INPUT
"Enter the first number"; n1
INPUT
"Enter the second number"; n2
INPUT
"Enter the third number"; n3
average
= (n1 + n2 + n3) / 3
PRINT
"The average of the three numbers is"; average
END
9.
Write a QBASIC to find the middle number among input three numbers. [4]
CLS
INPUT
"Enter any three numbers"; a, b, c
IF
a > b AND a < c OR a < b AND a > c THEN
m
= a
ELSEIF
b > a AND b < c OR b < a AND b > c THEN
m
= b
ELSE
m
= c
END
IF
PRINT
"Middle number="; m
END
10.
Write a QBASIC program to generate the following series. [4]
7,22,11,34…..up to 10th term
Ans:
CLS
n
= 10
PRINT
"The first "; n; " terms of the series are:"
a
= 7
FOR
i = 1 TO n
PRINT a;
a = a * 2 + 1
NEXT
i
END
11.
Write a QBASIC program to find HCF of any two numbers. [4]
Ans:
CLS
INPUT
"Enter first number: ", num1
INPUT
"Enter second number: ", num2
IF
num1 < num2 THEN
temp = num1
num1 = num2
num2 = temp
END
IF
rem
= num1 MOD num2
WHILE
rem <> 0
num1 = num2
num2 = rem
rem = num1 MOD num2
WEND
PRINT
"The HCF of the two numbers is "; num2
END
OR
Write
a QBASIC program to count the total number of words from supplied sentence.
Ans:
CLS
INPUT
"Enter a sentence: ", sentence$
wordCount
= 0
FOR
i = 1 TO LEN(sentence$)
IF MID$(sentence$, i, 1) = " "
THEN
wordCount = wordCount + 1
END IF
NEXT
i
wordCount
= wordCount + 1
PRINT
"The total number of words in the sentence is: "; wordCount
END
No comments:
Post a Comment