Wednesday, October 30, 2019

Solved Model Set 2 Computer Science - Grade Nine


MODEL QUESTION SET -2
Group A: “Computer Fundamental” [20 Marks]
1.      Answer the following questions:
a)      Write down the features of first generation of computer.

Characteristics of First Generation of Computers:

1.      Use of vacuum tubes to make circuits
2.      Use of machine language and symbols in instructions
3.      Very small amount of storage space
4.      Use of punch cards as I/O devices
5.      Huge in size and poor in mobility
6.      Very slow and less reliable output
7.      Use of high electricity
8.      Generates too much heats

b)     Define CPU. What are the main section of CPU?
The central processing unit (CPU) is the unit which performs most of the processing inside a computer. To control instructions and data flow to and from other parts of the computer, the CPU relies heavily on a chipset, which is a group of microchips located on the motherboard.
The main section of CPU are ALU, MU and CU.

c)      Why printer is called hardcopy output? Justify your answer.
Printer is called hardcopy because Printers can print text and graphics on paper or other hardcopy materials.

d)     Write any four precautions to save the floppy disk.
Any four precautions to save the floppy disk
1.      Never leave diskettes in the disk drive, as data can leak out of the disk and corrode the inner mechanics of the drive. Diskettes should be rolled up and stored in pencil holders.
2.      Diskettes should be cleaned and waxed once a week.
3.      Do not fold diskettes unless they do not fit into the drive. "Big" diskettes may be folded and used in "little" disk drives.
4.      Never insert a diskette into the drive upside down. The data can fall off the surface of the disk and jam the intricate mechanics of the drive.

2.      What are wild card characters?
A wildcard character is a special character that represents one or more other characters. The most commonly used wildcard characters are the asterisk (*), which typically represents zero or more characters in a string of characters, and the question mark (?), which typically represents any one character.
3.      Write down the functions out by the following DOS commands:
a.      D:\>DIR/AH
To view the hidden files of d drive
b.      D:\COPY CON UJJWAL
Creates a new file UJJWAL in d drive.
4.      Answer the given questions:
a.      What  is windows XP?
Windows XP is a personal computer operating system produced by Microsoft as part of the Windows NT family of operating systems. 
b.      Name any four elements of windows.
Any four elements of windows are Title bar, Scroll bar, Status bar and Content area

5.      Answer the given questions:
a.      What are the three basic documents tags?
<HTML>, <HEAD> and <TITLE>
b.      Define the term “Hyperlink”.
hyperlink is an element in an HTML document that links to either another portion of the document or to another document altogether.
c.      What is the function of <IMG SRC> code in HTML?
To insert image.
6.      Fill in the blanks with suitable word:
a.      The container elements are paired and have starting and ending tags.
b.      TCP/IP is the native protocol of the Internet and required for internet connectivity.
c.      The term “Hyperlink” was coined in 1965
d.      bgcolor allows setting of the background color for the document.
7.      P
a.      What is program development cycle?
Program Development Life Cycle (PDLC) is a systematic way of developing quality software. It provides an organized plan for breaking down the task of program development into manageable chunks, each of which must be successfully completed before moving on to the next phase.

b.      Define the term “Algorithm” and “Flowchart”.
An algorithm (pronounced AL-go-rith-um) is a procedure or formula for solving a problem, based on conducting a sequence of specified actions.
A flow chart is a type of diagram representing a process using different symbols containing information about steps or a sequence of events. Each of these symbols is linked with arrows to illustrate the flow direction of the process.
c.      Write down the function of WHILE ……….. WEND statement.
“While WEND” examines the condition of a variable. “While” the variable meets the stated criteria performing a loop until the variable’s condition no longer meets the stated criteria.
8.       
a.      Draw a flowchart to print the first ten natural numbers.

b.      Write down the output of the following program:
CLS
X$ = "DINESH ADHIKARI"
PRINT: PRINT: PRINT
PRINT TAB(40);
FOR I = 8 TO 1 STEP -1
    PRINT MID$(X$, I, 1)
NEXT
END
Output


Tuesday, October 29, 2019

Solved Model Set 1 Computer Science - Grade Nine


Model Question set -1
Group A: “Computer Fundamentals” [20 Marks]

1.      Answer the following questions:

a.      Write down the four characters of computer and explain them in short.
The four characteristics of computer are speed, accuracy, diligence and storage.
·        SPEED : In general, no human being can compete to solving the complex computation, faster than computer.
·        ACCURACY : Since Computer is programmed, so whatever input we give it gives result with accurately.
·        STORAGE : Computer can store mass storage of data with appropriate format.
·        DILIGENCE : Computer can work for hours without any break and creating error.
·        VERSATILITY : We can use computer to perform completely different type of work at the same time.

b.     Why RAM is called volatile memory? Justify your answer.
RAM is called 'volatile' memory by analogy because if the computer loses power, all the data stored in RAM (or other volatile memory) is lost or 'evaporates'.

c.      What is printer? Write down the types of printer.
printer is a device that accepts text and graphic output from a computer and transfers the information to paper, usually to standard size sheets of paper. 
The types of printer are: Impact printer and Non-impact printer.

d.     What is programming language? Name any two high level programming languages.
programming language is a formal language, which comprises a set of instructions that produce various kinds of output.
Any two high level programming languages are python and C.



2.      Fill in the blanks  with suitable words:
a.      Linux operating system was developed in 1991.
b.      The three section of CPU are ALU , CU and MU.
c.      Cache Memory is a small high speed memory located between main memory and micro processor.
d.      Hard disk is a Secondary Storage device.

3.      Write down the full form for the followings:
a.      CD-ROM : Compact Disk – Read Only Memory
b.      DVD : Digital Versatile Disk
c.      EDVAC : Electronic Discrete Variable Automatic Computer        
d.      VLSI: Very Large Scale Integrated Circuit.

4.      Match the followings:
a)      Hard Disk                           d) Hard copy output
b)     Floppy                                c) Soft copy output
c)      Monitor                              b) Small storage device
d)     Printer                                a) Large storage device
                                                              Processing unit

5.      Write down the single technical term for the following:
a.      It is volatile primary memory of computer. RAM
b.      A program that can translate assembly language into machine code. Assembler
c.      It gives continuous power to the computer even at the time of power cut. UPS (Uninterruptible Power Supply
d.      The output that can be changed easily. Softcopy Output

6.      a. Convert the following as indicated:
i.                 (101010)2 into hexadecimal
Soln:
Converting Binary to Hexadecimal
0010 = 2
1010 = A
(101010)2 = (2A)16



ii.               (734)8 into decimal
Soln:
Converting Octal to decimal
=7 × 82 + 3 × 81 + 4 × 80
=7 × 64 + 3 × 8 + 4 × 1
=448 + 24 + 4
=476
(734)8 = (476)10

e.      Perform the following binary calculation:
i.                



1
0
1
1
1





1
1
1



1
0
1
1
1


1
0
1
1
1
×
+
1
0
1
1
1
×
×
1
0
1
0
0
0
0
1




-
1
1
0
1
0
0
1
1
0
1
1



i.                 
1
0
1
1
0
1

+
1
1
1
0
1
1
1
0
1
1


-
1
1
0
1
1
0
1
0
1



7.      Define an operating system.
An operating system (OS) is system software that manages computer hardware, software resources, and provides common services for computer programs.



8.      Write down the function carried out by the following DOS commands:
a.      D:\>DIR*.*           
It displays all the files having any extension of D drive.
                 
b.     c:\>REN * .BAS*.TXT
It renames the old file having BAS as extension to new file name TXT as extension.

9.      Answer the given questions:
a.      What is the function of recycle bin?          
The function of recycle bin is to store deleted items as well as restore the deleted items if necessary.     
 
b.     Define taskbar and icon
taskbar is an element of a graphical user interface which has various purposes. It typically shows which programs are currently running.
An icon is a small graphical representation of a program or file.

10.   Answer the given questions:
a.      Define web page.   
web page (also written as webpage) is a document that is suitable to act as a web resource on the World Wide Web.   

b.     What is a browser? Name any two browsers.
browser is an application program that provides a way to look at and interact with all the information on the World Wide Web. Examples are Google Chrome and Internet Explorer.

c.      What is the function of <HR> code in HTML?
The <hrtag in HTML stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections.

11.   Fill in the blanks with suitable word:
a.      We can use <br> code to break line in HTML.
b.      The largest heading size of HTML tag is <h1>
c.      The extension of HTML tag is .html
d.      URL(Uniform Resource Locator) is an address that identifies the location of a web page on the Internet.
Group D: “Programming” [20 Marks]
12.    
a.      What is debug? Define computer.
Debugging is the process of finding and resolving defects or problems within a computer program that prevent correct operation of computer software or a system.
computer is a machine that can be instructed to carry out sequences of arithmetic or logical operations automatically via computer programming.
b.     What do you mean by variable and consonant?
A variable is a value that can change, depending on conditions or on information passed to the program. 
A constant is a value that never changes.
c.      Write down the syntax and use of LET statement.
The use of LET statement is to assign the value of an expression to a variable.
Syntax: [LET] variable = expression
13.    
a)     Draw a flowchart to calculate the simple interest.


b)     Write down the output of the following program:
CLS
A = 2
B = 1
PRINT A;
PRINT B;
C = 3
WHILE C <= 10
    Z = A + B
    PRINT Z
    S = S + Z
    A = B
    B = Z
    C = C + 1
WEND
END

Output:
2   1   3
4
7
11
18
29
47
76

14.   Read the following program and answer the given questions:
CLS
PRINT "Input any string";
INPUT N$
L = LEN(N$)
R$ = " "
FOR X = L TO 1 STEP -1
    R$ = R$ + MID$(N$, X, 1)
NEXT X
PRINT "The reverse order is "; R$
END
a)     What is the use of the above program?
The use of the above program is to reverse the given string.

b)     Write down the function of MID$ and LEN function.
The MIDfunction returns part of a string (a substring). The MID$ statement replaces part of a string variable with another string.
The LEN Function returns the number of characters in a string or the number of bytes required to store a variable.

c)      Name the string variables used in the above program.
The string variables are: N$ and R$

d)     What is the function of NEXT X in the above program?
The function of NEXT X is to terminate the definition of the FOR loop

15.    
a)     Write a program to input a word and count total number of alphabet “A” in the input word.

CLS
INPUT "ENTER ANY STRING"; S$
C = 0
FOR I = 1 TO LEN(S$)
B$ = MID$(S$, I, 1)
C$ = UCASE$(B$)
IF C$ = "A" THEN VC = VC + 1
NEXT I
PRINT "TOTAL NO. OF A= "; C
END

b)     Write a program to sort numbers in ascending order.

CLS
DIM N(10)
FOR I = 1 TO 10
INPUT "ENTER THE NUMBERS"; N(I)
NEXT I
FOR I = 1 TO 10
FOR J = 1 TO 10 - I
IF N(J) > N(J + 1) THEN SWAP N(J), N(J + 1)
NEXT J
NEXT I
PRINT "NUMBERS ARRANGED IN ASCENDING ORDER"
FOR I = 1 TO 10
PRINT N(I)
NEXT I
END
c)      Write a program to input any ten different numbers in separate lines and find the highest by using array.

REM
CLS
DIM N(10)
FOR I = 1 TO 10
INPUT "ENTER THE NUMBERS"; N(I)
NEXT I
G = N(1)
FOR I = 2 TO 10
IF N(I) > G THEN G = N(I)
NEXT I
PRINT “THE HIGHEST NUMBER IS”; G
END


 ***