Saturday, February 15, 2020

Solved Model Set 3 Computer Science - Grade Nine



Solved Model Set 3 Computer Science - Grade Nine


1) Define the term system software and mention its type?
-System software is the collection of program that control and manages all the internal operations of computer .Its types are-
a)     Operating Software
b)     Device Driver
c)     Utility Software
d)     Language Translator
2) What is IT Policy? Write the importance of IT Policy in our country Nepal?
-The rules and regulation related to information technology to handle or use technology of computer systematically to fulfill the given objectives is known as IT Policy.
The importance of IT Policy in Nepal are-
a)     There will be a significant difference between the economic condition of countries with develop information technology.
b)     The use of technology will make the economic condition strong, proportional distribution of economic resources and enhancement of public awareness, raising leaving standard as well as significant contribution to remove poverty.
3) Explain the role of control unit of computer operations?
-The role of control unit in computer operations are-
a)     It decide to set the order of instruction to be carried out.
b)     It works out what needs to be done to carry the instruction out.
4) Mention any 4 features of micro-computer?
-Any 4 features of micro-computer are-
a)     It works with micro processor.
b)     It is designed as a single user machine.
c)     They are used in offices, homes, schools etc.
d)     They perform different data processing job.
5) Difference between volatile and non-volatile memory?
-Differences between them are-
                        Volatile memory
                Non-Volatile memory
1.     It holds currently running data and programs.
It is a data storage device that holds fixed content in manufactured time.
2.     It allows both read and write operations.
It allows only read operations.
3.     Example: RAM
Example: ROM
2.               i) Solve the followig binary calculations:                       2
                        a) (1011011) + (100100) - (11111)
= 1011011+ 100100 – 11111
= 01111111 – 11111
= 1100000
                        b) (100101001)/(1001)

                  ii) Convert the following:                                                2
                        a) (55)10 = (?)2                      b) (456)8 = (?)16


1)     Match the following:                   
            Group A                                                   Group B
i)                System Sotware                                   Operating System
ii)              RAM                                                       Volatile
iii)            MS-Access                                            Application software
iv)             EEPROM                                                Non-Volatile

2)     State True or False

i)                Computer follow GIGI rule. False
ii)              Microprocessor  was developed on 3rd generation of computer. False
iii)            Cyber law is used to stop cyber crime. True
iv)             Memory is an essential components of computer system. True

3)     Write the technical term for the following:

i)                Non-Volatile memory of computer.    ROM
ii)               The device that provides output in hardcopy.  Printer
iii)            The process of buying and selling the products over the internet.
E-commerce
iv)               A block of CPU that is used to do logical operations.  ALU
Full Forms:
i)                ICT: Information and communication Technology
ii)              BASIC: Beginner’s All purpose Symbolic Instruction Code
iii)            NITC: National Information Technology Centre
iv)             ASCII: American Standard code for Information Interchange
Group B :
DOS + Windows [5 marks]
7.               a) Mention any two features of MS DOS.
Any two features of MS DOS are:
a.      It is a 16-bit OS.
b.     The mouse cannot be used to operate, i.e. Input is through basic system commands.
                  b) Define the terms folder and sub folder.
folder (also called directory, or catalog) is a way to organize computer files. A folder is a storage space where many files can be placed into groups and organize the computer.
Subfolder is an organizational folder on a computer that is located within another folder.
                  c) Write the functions of the following DOS commands.
                        i) RD : Its function is to rename the directory or a folder.
                        ii) D:\>DIR*.TXT : Its function is to display the directory having any character of name and .txt extension.
                        iii) CHKDSK : Its function is to check the disk error.
                        iv) DATE: Its function is to show date and prompt for change in date.
                  v) XCOPY: Its function is to copy one or more files or folders from one location to another location.
Group C :
HTML [5 marks]
8.               a) Differentiate between container tag and empty tag with examples.
The difference between container tag and empty tag are:
Container tag
Empty tag
Those tags which have both closing and opening is known as container tag
Those tag which have a opening but doesn’t have a closing tag is known as empty tag
Its examples are: <html>….</html>, <body>….</body> etc.
Its examples are: <br>, <img> etc.

b) What do you know about hyperlink ?
Hyperlinks are the tags used for linking two or more than two Web pages.
                  c) Write the use of following HTML tags :
                        i) <P>: This tag is used for making a paragraph.
                        ii) <TITLE>: This tag is used for titling the document.
                        iii) <HTML>: this tag is used for representing that it is a HTML webpage.
                        iv) <B>: this tag makes any text bold.
                        v) <IMG>: this tag inserts image in a webpage.

Group D :
Qbasic Programming [18 marks]
9.               Answer the following questions.                                     2
                  a) Define variable and constant with examples.
Variables are those elements in programming which are used to store some data into it.
Constants are those which doesn’t changes during the execution of the program.
Example: 1,5,6 etc.
                  b) Write down the syntax of the following statements:
                        i) MID$(): MID$(variable_name, Position, length of string)
                        ii) LEN(): LEN(variable_name)
10.             Write an algorithm to find the greater number among any two different numbers.
Step 1: start
Step 2: Read any two numbers and store it in variable a and b respectively.
Step 3: Compare a and b; Is a greater than b?
          { Yes: Display a is greatest
            No: Display b is greatest.}
Step 4: stop                                                                           2
11.             a) Write the output of the following program:                            2
                        CLS
                        A=1
                        NUM=3
                        FOR I = 1 TO NUM
                                    A=A*I
                        NEXT I
                                    PRINT A
                        END
OUTPUT:
6
                  b) Debug the following program:                                    2
                        REM to calculate average.”
                        CLS
                       DIM A = 4
                        LET B = 6
                        LET C = 9
                        FOR K = 3 TO I
                                    AVG=(A+B+C/N)
                        NEXT K
                        PRINT “AVERAGE OF GIVEN NUMBERS IS”, AVG
                        END
Answer:
                        REM to calculate average.”
                        CLS
LET A = 4
                        LET B = 6
                        LET C = 9
                                    AVG=(A+B+C/3)
                        PRINT “AVERAGE OF GIVEN NUMBERS IS”, AVG
                        END

12.             Read the following program and answer the given questions:    2
                        CLS
                        LET W = 34
                        P = W MOD 2
                        IF P = 0 THEN
                                    PRINT “THE NUMBER IS POSITIVE”
                        ELSE
                                    PRINT “THE NUMBER IS NEGATIVE”
                        END IF
                        END
A.    List out the variables used in the above program with their types.
The variables used in the above program are:
W [numeric variable]
P [numeric variable]
B.    List out the operators used in the program along with their types.
The operators used in the program are:
MOD [Arithmetic operator]
= [Relational operator]
13.             a) Write a program to calculate simple interest.             2
                        where SI = (PTR)/100.          
`                 CLS
                  INPUT “ENTER PRINCIPLE”;P
                  INPUT “ENTER TIME”;T
                  INPUT “ENTER RATE”;R
                  SI= (P*T*R)/ 100
                  PRINT “Simple Interest=”; SI
                  END
                 
                  b) Write a program to input three different names and print the longest name.                   3
                  CLS
                  INPUT “ ENTER A NAME”;N1$
                  INPUT “ENTER SECOND NAME”;N2$
                  INPUT “ENTER THIRD NAME”;N3$
                  IF LEN(N1$) > LEN(N2$) AND LEN(N1$) > LEN(N3$) THEN
                  PRINT “THE LONGEST NAME IS”; N1$
                  ESLEIF LEN(N2$) > LEN(N1$) AND LEN(N2$)>LEN(N3$) THEN
                  PRINT “THE LONGEST NAME IS”; N2$
                  ELSE
                  PRINT “THE LONGEST NAME IS”; N3$
                  ENDIF
                  END
                  c) Write a program to input ten different numbers then find and print the greatest number using array variable.                   3
                        DIM N(10)
CLS
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 "GREATEST NUMBER"; G
END

Solved NPABSON Computer Science 2076




National PABSAN
SECONDARY EDUCATION EXAMINATION BOARD
Qualifying Examination – 2076
COMPUTER SCIENCE
Time: 1 Hours 30 Minutes FM: 50
Group 'A'
[Fundamentals-22 marks]
1. Answer the following question: (5×2=10)
a. What is transmission media? Classify it.
Transmission medium is a pathway that can transmit information from a sender to a receiver through wired or wireless medium on a network.
The types of communication medium are: 
 i) Guided Medium (Bounded or Wired)  
ii) Unguided Medium (Unbounded or Wireless)
b. What is internet? Write down any two services of it.
Internet is an interconnection of several thousands of computers of different types belonging to the various networks all over the world in order to share data and information.
Services:
a)      E-mail (Electronic mail)
b)     FTP (File Transfer Protocol)

c. What is backup? Write down its importance.
Backup is a copy of a file which is used in the event of the original file being corrupted. Backup is essential to computer security system to recover the important data and programs from accidental and intentional harm. They are stored in different storage devices like hard disk, CDs and pen drives. When the data and software gets lost or damaged the backup system helps to recover the lost or damaged data or software from the backup copy of data and software.

d. What is cyber law? When it was passed in Nepal?
The law which governs the legal issues in the cyber space regarding the internet or WWW for digital data processing and transaction is called cyber law.
It was passed on 30th Bhadra, 2061 B.S.
e. How does virus spread from one computer to other computers?
a)      Sharing infected internal portable disk like floppy disk, pen drive, CDs, etc.
b)     Opening a virus infected email, messages and attached files.
c)      Downloading files and programs form the websites which are not secure.
d)     Exchanging data and information over a network

2. Answer the following question:
a. Perform the conversion as per the direction: (2×1=2)
i. (246) 10 into Binary ii. (A1) 16 into Octal
b. Perform the binary calculation: (2×1=2)
i. 1100×110+1010 ii. 110101÷101
3. Match the following: (4×0.5=2)
a. UPS                                       (b) Virus transfer
b. Pen drive                              (d) Network connection device
c. LAN                                       (a) Computer security
d. HUB                                      (-) Antivirus
(c) Intranet
4. Choose the best answer of the following: (4×0.5=2)
a. Rules use to run a network.
i. Protocol                 ii. Structure                         iii. Technology                   iv. all
b. Band-Width measured in term………………..
i. BPS                         ii. CPS                                 iii. KPS                                iv. None
c. The moving graphic image.
i. Video                      ii. Animation                     iii. Graphics                        iv. Text
d. Which of the following is online business?
i. E-commerce           iii. E-shopping                  ii. E-business                     iv. All
5. Write the appropriate technical terms of the following: (4×0.5=2)
a. A powerful computer which controls and co-ordinates computers connected in a network. Server
b. Message sent electronically through computer network. E-Mail
c. A virus that corrupts system files of operating system. System Infector Virus
d. Educational entertainment done by using multimedia games.  Edutainment
6. Write the full form: (4×0.5=2)
a. FTP – File Transfer Protocol
b. DVD – Digital Versatile Disk
c. CCTV – Closed Circuit Television
d. ISDN – Integrated Services Digital Network
Group 'B'
Database (10 Marks)
7. Answer the following questions: (3×2=6)
a. Write down two objectives of database.
a)      It controls data redundancy which means duplication of data.
b)     Large volume of data can be stored and updated easily.

b. What is primary key? Write down its importance.
A key that uniquely identifies each record in a database is primary key. It is needed because it neither accepts duplicate values now null values.
Importance:
a)      It does not allow duplicate data. 
b) It does not allow null value
c. What is Table?
Table is an object of Ms-Access that stores large volume of data in the form of rows and columns.
8. State whether the following statements are true or false: (4×0.5=2)
a. Every record in a table is unique. False
b. A query is used to select fields and records from one or more tables. True
c. Caption can be up to 2048 characters long. True
d. OLE object cannot store information. False
9. Match the following: (4×0.5=2)
a. Indexed                            (b) Primary interface
b. Form                                              (c) Primary key
c. Unique record                               (-) Sort
d. Table                                (a) Speed up search
(d) Primary storage
Group 'C'
Programming (18 Marks)
10. Answer the following question: (3×1=3)
a. Write two advantages of modular programming.
i) Different programmers can design different program modules independently, which is required in a large and complex program.
ii) It is easy to design code and test the program modules independently.

b. Write down two data type of C language.
char, int
c. Write the function of the following command /statement.
i. CHDIR - It allows QBASIC to change from one directory to another.
ii. FILES - The FILES statement displays the files of the current sub directory or specified sub directory.
11. RE-write the given program after correcting the bugs: (4×0.5=2)
DECLARE FUNCTION VOWELS (W$)
REM TO count number of vowels
INPUT "Enter a word "; W$
PRINT "Number of vowels "; VOWELS (W$)
END
FUNCTION VOWELS (W$)
FOR I =1 TO LEN
M$=LCASE$(MID$ (W$, I, 1)
SELECT CASE M$
CASE IS= "A", "E", "I", "O", "U"
C=C-1
END IF
NEXT I
C=VOWELS
END FUNCTION

Debugged Program
DECLARE FUNCTION VOWELS (W$)
REM TO count number of vowels
INPUT "Enter a word "; W$
PRINT "Number of vowels "; VOWELS(W$)
END
FUNCTION VOWELS (W$)
FOR I = 1 TO LEN(W$)
    M$ = UCASE$(MID$(W$, I, 1))
    SELECT CASE M$
        CASE "A", "E", "I", "O", "U"
            C = C + 1
    END SELECT
NEXT I
VOWELS = C
END FUNCTION


12. Write the output of the following program: (2)
DIM N (4)
DECLARE FUNCTION RES(N (), I)
CLS
FOR I=1 TO 4
READ N(I)
PRINT RES (N ( ), I),
NEXT I
DATA 100, 64, 4, 25
END
FUNCTION RES$ (N$ (), I)
RES=N(I) ^(1/2)
END FUNCTION
Memory Table
I
N(1)
Output
1
100
10
2
64
8
3
4
2
4
25
5

Output
10                         8                            2                            5

13. Study the following program and answer the given questions: (2)
DECLARE FUNCTION COUNT(S$)
CLS
INPUT "Enter a sentence, "; S$
PRINT "Number of space="; COUNT(S$)
END
FUNCTION COUNT(S$)
FOR I=1 TO LEN(S$)
N$=MID$(S$, I, 1)
IF N$=SPACE$(1) THEN C=C+1
NEXT I
COUNT=C
END FUNCTION
a. List the local variable used by above program.
N$, I, C are local variables
b. Write down two library function use by above program.
MID$( ) and SPACE$( )
14. Develop the following program: (3×3=9)
a. Write a program that asks a word and display that is palindrome or not by using SUB..END SUB.

DECLARE SUB REV (S$)
CLS
INPUT "ENTER ANY WORD"; S$
CALL REV(S$)
END

SUB REV (S$)
FOR I = LEN(S$) TO 1 STEP -1
B$ = MID$(S$, I, 1)
W$ = W$ + B$
NEXT I
IF S$ = W$ THEN
PRINT  “WORD IS PALINDROME”
ELSE
PRINT “WORD IS NOT PALINDROME”
END IF
END SUB
b. Write a program which asks radius and display area of circleby using FUNCTION..END FUNCTION.
DECLARE FUNCTION AREA (R)
CLS
INPUT “ENTER RADIUS”; R
PRINT “AREA OF CIRCLE ”; AREA(R)
END

FUNCTION AREA (L, B)
AREA = 3.14 * R ^ 2
END FUNCTION

c. Write a program to create a sequential data file "exam.dat" to store name and marks of three subjects on the basis of user's choice.
OPEN “exam.dat” FOR OUTPUTAS #1
DO
CLS
INPUT “Enter name”; N$
INPUT “Enter marks of three subjects”; A, B, C
WRITE #1, N$, A, B, C
INPUT “Do You want to continue(Y/N)”; CH$
LOOP WHILE UCASE$(CH$)=”Y”
CLOSE #1
END