Saturday, February 23, 2019

Solved Computer Science - SEE (Supplementary/Upgrade) 2074 (2018)


SEE (Supplementary/Upgrade) 2074 (2018)
(Group 'A')
Computer Fundamental (22 Marks)
Answer the following questions):
a) What is a communication channel in networking? Differentiate between guided and unguided communication media.
Ans:  A communication channel or simply channel refers either to a physical transmission medium such as a wire, or to a logical connection over a multiplexed medium such as a radio channel in telecommunications and computer networking.
The differences between bounded media and unbounded media
Guided media
Unguided media
Guided media are the physical links through which signals are confined to narrow paths.
Unguided media are wireless media that do not use any physical connections between the two communicating devices.
It travels in a contained conductor.
It uses a transmission carrier to send data signals through the air instead of cables.
e.g.: coaxial cable, twisted pair cable and fiber optics cable.
e.g.: radio waves, micro waves and infrared waves.

b) What is Search Engine? Give any two examples of search engine.
Ans:  A search engine is a software program or script available through the Internet that searches documents and files for keywords and returns the results of any files containing those keywords. Today, the most popular search engine is Google, Bing, Yahoo.

c) What is a computer security? Explain any two ways of hardware security.
Ans: Computer security is a branch of study known as information security as applied to computers. It is the process of securing computer’s data and information.
The two ways of hardware security:  
 Protect from theft and vandalism.
 Regular maintenance of computer hardware.

d) Define computer ethics.
Ans:  Computer ethics is set of moral principles that regulate the use of computers. Some common issues of computer ethics include intellectual property rights (such as copyrighted electronic content), privacy concerns etc.

e) Mention any four symptoms of computer virus.
Ans: Any four symptoms of computer virus are:
i) Program takes long time to load.
ii) The floppy disk or hard disk is suddenly accessed without a logical reason.
iii) Increased use of disk space and growth in file size.
iv) Corrupting the system’s data.
Perform the conversion as per the direction:
(i) (CCA)16 into decimal (ii) (479)10 into octal
Perform the binary calculation):
(i) (1010) x (111) (ii) (10011) ÷ 10
 


 
 
 Match the following
Group 'A'                    Group 'B'
(a) BNC                        (i) two way communication
(b) URL                        (ii) address of web page
(c) Online business        (iii) connector
(d) Duplex                    (iv) E-commerce
(v) Protocol

Answers:
Group A                                 Group B
i) BNC                                     - Connector
ii) URL                                    - address of web page
iii) Online Business                  - E-commerce
iv) Duplex                                         - Two way communication

Select the best answer for the following:
In which communication channel data transfer is the fastest?
(i) Coaxial Cable           (ii) Fiber Optical Cable                        (iii) Twisted Pair Cable              (iv) Wireless
Which of the following is the main component of Multimedia system?
(i) Keyboard                 (ii) Windows                             (iii) Sound Card                       (iv) Printer
Which one of the following is harmed by computer virus?
(i) Monitor                    (ii) Mouse                                 (iii) Printer                                (iv) Hard Disk
In binary number systems 1 and 0 means ........
(i) ON, OFF                 (ii) YES, TRUE                       (iii) OFF, NO                            (iv) YES, ON
Write the appropriate technical terms of the following:
a)      A main computer in the computer network. Server
b)     The law that control cybercrime Cyber Law
c)      Combination of Text, Audio and Video. Multimedia
d)     Learning through the electronic media. E-Learning
Write the full form:
(i) ISP – Internet Service Provide
(ii) NIC – Network Interface Card
(iii) CD-ROM – Compact Disk Read Only Memory
(iv) LCD – Liquid Crystal Display
(Group 'B')
Database (10 Marks)
Answer the following questions):
a)      Define DBMS with example.
Ans: DBMS is a process of technique to collect, organize and retrieve data is DBMS. In DBMS, data can be accessed, managed and updated easily. Some of the popular DBMS software are Ms-Access, My SQL, Oracle.
b)     Name any four objects of Ms-Access database.
Ans: Any four objects of Ms-Access database are table, form, query and report
c)      What is report?
Ans: A report is the object of MS-Access that lets us design a ready to print document of our desired database information. It is generated from tables or queries.

Write True or False
a)      Graphics can also be stored in Ms-Access Database. True
b)     Maximum field size of text field is 255 characters. True
c)      An action query makes changes in table. True
d)     Primary key accepts null value. False

Match the following
Group 'A'                    Group 'B'
(a) Form                       (i) Column on datasheet
(b) Field                       (ii) Data type
(c) Currency                  (iii) Graphical interface for data entry
(d) Query                      (iv) DBMS
(v) Retrieves data conditionally
Answers
Group A                                  Group B
i) Form                                     Graphical Interface for data entry
ii) Field                                    Column on datasheet
iii) Currency                             Data type
iv) Query                                  Retrieves data conditionally


Group 'C'
Programming (18 Marks)

a)      Write one difference between String function and Numeric function.
Ans: String function is used with string it returns string value where Numeric function is used with number it returns numeric value.
b)     Compare between "C" and "Q-Basic".
C is case sensitive language where Qbasic is not case sensitive. Both are high level language.
c)      Write the function of the given statements or commands.
i) FILES: This statement is used to display the list of files and directories.
ii) COMMON SHARED: This statement is used to declared variable global.

Re-write the given program after correcting the bugs:
Rem To print only class 10 record from "student.dat"
CLS
OPEN "I",#2, "Student.Dat"
WHILE NOT EOF (#2)
WRITE#2, N$,C,R
IF C=10 THEN
DISPLAY N$,C,R
END IF
NEXT
CLOSE #2
END

Debugged program
Rem To print only class 10 record from “student.dat”
CLS
OPEN I” , #2 , “Student.Dat
WHILE NOT EOF (2)
INPUT #2, N$, C, R
IF C=10 THEN
PRINT N$, C, R
END IF
WEND
CLOSE #2
END

Write the output of the following program:
DECLARE SUB REMINDER (R)
CLS
FOR I = 1 TO 4
READ X
CALL REMINDER (X)
NEXT I
DATA 56, 28, 8, 48
END
SUB REMINDER (R)
R1 = R MOD 4
R2 = R MOD 3
IF R1 = 0 AND R2<> 0 THEN
PRINT R
END IF
END SUB

Output
56
28
8


Study the following program and answer the given questions:
DECLARE FUNCTION TEST (X)
X = 100
Z = TEST (X)
PRINT Z
END
FUNCTION TEST (X)
FOR I = 1 TO X
S = S +I
NEXT I
TEST S
END FUNCTION.
a)      How many parameters are used in the above program?
Ans: One
b)     How many times does the statement S=S+I get executed in the above program.
Ans: 100 times


a)      Write a program using FUNCTION..... END FUNCTION to get a word from the user and then print the word in reverse order.


DECLARE FUNCTION REV$ (W$)
CLS
INPUT “ENTER A WORD”; WO$
PRINT “The Word You Enter In Reverse Order Is ”; REV$ (WO$)
END
FUNCTION REV$ (W$)
FOR X = LEN (W$) TO 1 STEP -1
CH$ = CH$ + MID$ (W$, X, 1)
NEXT X
REV$ = CH$
END FUNCTION

b)     Write a program using SUB... END SUB to find the area of circle.

DECLARE SUB ARC (AC, P)  
CLS
CONST PI=22/7
INPUT “Enter the radius”; R
CALL ARC(R, PI)
END
SUB ARC (AC, P)
C=P*AC^2
PRINT “Area of circle is ” ; C
END SUB

c)      A Sequential data file called "SEE.DAT" has stored data under the field heading Symbol No., Name, English, Nepali, Maths and Computer. Write a program to display all the information of those students whose
marks in Computer is more than 80.

OPEN "SEE.DAT" FOR INPUT AS #1
DO WHILE NOT EOF (1)
INPUT #1, SN, NA$, EN, NE, MA, CO
IF CO > 80 THEN
PRINT “Symbol No.” ; SN
PRINT “Name ”; NA$
PRINT “Marks Obt In English ”; EN
PRINT “Marks Obt In Nepali ”; NE
PRINT “Marks Obt In Math ”; MA
PRINT “Marks Obt In Computer ”; CO
END IF
LOOP
CLOSE #1
END

Source: Answer Key SOCE Website

Solved Computer Science - SEE (Supplementary/Upgrade) 2073 (2017)


SEE (Supplementary/Upgrade) 2073 (2017)
(Group 'A')
Computer Fundamental (22 Marks)
Answer the following questions:

a)      What is multimedia? Name any two fields where multimedia is used.
Ans: Multimedia is the integration of multiple forms of media, which presents information in more interesting and understandable way. Any two fields where multimedia is used are communication and
Entertainment.

b)     What is antivirus? Name any two antivirus software.
Ans: Antivirus software is software designed to detect and remove virus from computer system to ensure virus free environment. Any two antivirus software are NAV and  Kaspersky,

c)      Give two advantages of e-mail over traditional mail.
Ans: The  two advantages of e-mail over traditional mail are:
v  E-mail is faster, cheaper, more reliable than traditional mail.
v  Unlike traditional mail, email can be accessed from anywhere in the world.

d)     Give the importance of MODEM to the computer network.
Ans: The importance of MODEM to the computer network is that MODEM modulates the digital codes of the computer into analog signal, which then can travel through the telephone cable. At the receiving end the MODEM kept there will demodulate the analog signal to digital codes, which can be then understood and used by the receiving computer. In this way a MODEM makes the computer network possible.

e)      Write any two ways of protecting computer hardware.
Ans: Two ways of protecting computer hardware are:
v  use power protection device to protect computer from power fluctuation.
v  use grille in the windows and use lock in the door to protect from thieves.

Convert as instructed):
(i)               (364)8 into decimal
(ii) (1101010)2 into octal.
Perform the binary calculation):
(i) 1011 x 101
(ii) 100101 ÷ 101




 


Match the following):
Group 'A'                                Group 'B'
(a) Network services                  (i) Power protection device
(b) Infrared                               (ii) E-Banking
(c) Internet services                   (iii) Transmission media
(d) Volt Guard                          (iv) File sharing
(v) Media

Answers:
Group A                                   Group B
a. Network services                   iv) File sharing
b. Infrared                                 iii) Transmission Media
c. Internet Services                    ii) E-Banking
d. Volt Guard                            i) Power protection devices

Choose the correct answer.
a) Which is not a protocol?
(i) FTP             (ii) POP            (iii) HTTP         (iv) TIP
b) www is a ........
(i) Web browser            (ii) Protocol      (iii) Internet service     (iv) None of the above
c) NIC is a .......
(i) Software       (ii) Hardware   (iii) HUB          (iv) Network operating system
d) In ......... Network Topology, nodes are connected in a single wire.
(i) STAR          (ii) BUS            (iii) MESH        (iv) All of the above.
Write the appropriate technical terms of the following:
a)      An electronic device that supplies electric current when the electricity is cut off. UPS
b)     A software which enables to view HTML pages in the Internet. Web Browser
c)      A device that can connect networks which may use different communication protocols. Gateway
d)     A set of rules that governs the communication among the computers in a network. Protocol
Write the full form:
(i)               UPS – Uninterruptible Power Supply
(ii)             FTP – File Transfer Protocol
(iii)           WWW – World Wide Web
(iv)             NOS- Network Operating System
Group 'B'
Database (10 Marks)
Answer the following questions:
a)      What is a database?
Ans: A database is an organized collection of related information that can be used for different purpose so that it can easily be accessed, managed, and updated.
b)     What is a data sorting?
Ans: Sorting is the process of arranging the record in ascending or descending order according to a given field or fields. Sorted data is easier to handle than unsorted data.
c)      What is a form?
Ans: A form is the database object used to interact with a database. It is the primary object that is used for customize data entry into the table.

State whether the following statements are true or false:
a)      Report is a database object used to print final report. True
b)     Money is a datatype used in Ms-Access. False
c)      Arranging all the records in a table either ascending or descending order is known as filtering. False
d)     Maximum data size of an auto number is 4 bytes. True

Match the following:
Group 'A'                                Group 'B'
(a) Ms-Access                           (i) data entry and editing interface
(b) Query                                  (ii) electronic spreadsheet software
(c) Record                                 (iii) tool to retrieve data from one or more tables.
(d) Form                                   (iv) database management software.
(v) collection of related fields.

Answers:
a) MS-ACCESS                        iv) Database management software.
b) Query                                   iii) Tool to retrieve data from one or more than one tables.
c) Record                                  ii) Collection of related fields.
d) Form                                    i) Data entry and editing interface

Group 'C'
Programming (18 Marks)
a)      Write any two advantages of Modular Programming.
Ans: The advantages of modular programming are:
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 any two features of C language.
Ans: The two features of C language are:
- Simple and easy to use
- Occupies less Memory



c)      Write the functions of following statement /command.
(i) CLOSE : It closes one or all open files.
(ii) KILL: The KILL statement deletes the file or files from the specified drive and directory.

Re-write the given program after correcting the bugs:
DECLARE SUB Series ( )
CLS
EXECUTE Series
END
SUB Series
REM Program to print 4 4 8 12 20 ....... 20th terms
X = 4
Y = 4
FOR ctr = 10 To 1
DISPLAY X; Y;
X = X+Y
Y = X+ Y
Next ctr
End Series

Debugged Program:
DECLARE SUB Series ( )
CLS
CALL Series
END
SUB Series ( )
REM program to generate 4 4 8 12 20 …20th term
X=4
Y=4
For ctr = 10 TO 1 STEP -1
PRINT C ; Y;
X = X + Y
X = X + Y
NEXT ctr
END SUB

Write the output of the given program:
DECLARE SUB CHECK (N)
CLS
N = 1436
CALL CHECK (N)
END

SUB CHECK (N)
DO WHILE n< >0
R = N MOD 10
S = S*10+R
N = N\10
LOOP
PRINT "NOW N BECOMES"; S
END SUB

Output:
NOW N BECOMES 6341






Study the following program and answer the given questions:
DECLARE FUNCTION SUM (A, B)
INPUT A
INPUT B
X = SUM (A, B)
PRINT X
END
FUNCTION SUM (A, B)
S = A+B
SUM = S
END FUNCTION.
a)      Write the name of local variable used in the above FUNCTION procedure.
Local Variable: S
b)     Write the Mathematical operator and Relation operator used in above program.
Mathematical Operator : +
Relational Operator : =

a) Write a program using FUNCTION .... END FUNCTION to get temperature in Celsius from the user and then print the temperature in Fahrenheit. [Hint: F = 9 x c/5+32)]

DECLARE FUNCTION C2F(C)
CLS
INPUT "Enter temperature in Celsius", C
PRINT "The temperature in Fahrenheit=", C2F(c)
END

FUNCTION C2F(c)
F = 9 * C/5 + 32
C2F = F
END FUNCTION

b) Write a program to print only vowel letters from given string using SUB procedure.

DECLARE SUB Vowels (N$)
INPUT "Any String"; N$
CALL Vowels (N$)
END

SUB Vowels (N$)
A$ = UCASE$ (N$)
L = LEN (A$)
FOR X = 1 To L
B$ = MID$ (A$, X, I)
IF B$ = "A" OR B$ = "E" OR B$ = "I" OR B$ = "O" OR B$ = "U" THEN
V$ = V$ + B$
END IF
NEXT X
PRINT "Vowels"; V$
END SUB

c) A sequential data file called 'ADDRESS.DAT' contains NAME, AGE, CITY and TELEPHONE fields. Write a program to display all the contents of that data file.

OPEN "ADDRESS.DAT" FOR INPUT AS #1
REM **** Program to display contents of the data file called ADDRESS.DAT
PRINT "Name", "Age", "City", "Telephone"
WHILE NOT EOF(1)
INPUT #1, Name$, Age, City, Telephone
PRINT Name$, Age, City, Telephone
WEND
CLOSE #1
END

Source: Answer Key of SOCE Website