Responsive image
Responsive image

COMPUTER SCIENCE SOLUTION OF GRADE 10 S.E.E.


What is LAN Topology? List the types of network topology.

The physical structure of the network is known as LAN topology or Network Topology. A LAN topology describes how the computers are physically connected and how do they communicate with each other on the network. It determines the data paths that may be used between any pair of nodes of the network.
There basic network topologies are Bus topology, Ring topology, Star topology. Tree topology, Mesh topology and Hybrid topology.

 

What is Internet? List the services provided by the internet.

The Internet is the interconnection of millions of computers across word wide in order to share data and information. It is the largest network formed by connecting computers on LANs, MANs and WANs of the whole world through the TCP/IP protocol to share data and information.
The services provided by the Internet  to the client computers are  WWW, E-mail, Chat , E-Fax,  Video Conference,  E-commerce , File transferring , Telnet, Newsgroup, tele-medicine, social network service, e-learning and so on.

Responsive image

Write a program to check palindrome word using SUB procedure.

DECLARE SUB CHECK (W$)
CLS
INPUT “Enter a word”; W$
CALL CHECK (W$)
END

SUB CHECK (W$)
FOR P = LEN (W$) TO 1 STEP-1
       Rev$= Rev$+MID$(W$, P, 1)
NEXT P
IF W$ = Rev$ THEN 
       PRINT “The word is palindrome.”
ELSE
       PRINT “The word is not palindrome.”
END IF
END SUB

 

WAP to display the longest name among any 10 names entered by user in main module using FUNCTION Procedure.

REM to display longest student name .
DECLARE FUNCTION Longest$(n$( ))
CLS
OPTION BASE 1
DIM n$(10)
FOR P= 1 TO 10
       INPUT “Enter students name”;n$(P)
NEXT P
PRINT “The longest name is “; Longest$(n$( ) )
END

FUNCTION Longest$(n$())
LET long$= n$(1)
FOR P = 2 TO 10
       IF LEN (n$(P))>LEN (long$) THEN long$= n$(P)
NEXT P
Longest$= long$
END FUNCTION

 

Write a program to create a sequential data file named “person.dat” to store some person information having fields name, address and telephone number.

REM creates a data file and stores data till the user wish.
CLS OPED “person.dat” FOR OUTPUT AS # 1
DO 
       INPUT “Enter name “;N$
       INPUT “Enter address”; A$
       INPUT “Enter telephone number”; T$
       INPUT “Enter date of birth(mm/dd/yyyy)”;D$
       WRITE#1, N$, A$, T$,D$
       INPUT “Do you need more records(y/n)”; ch$
LOOP WHILE UCASE$(ch$) = “Y”
CLOSE#1
END

 

Write a program to count and display all the records of person from “person.dat” file.

CLS
OPEN “person.dat” FOR INPUT AS # 1
PRINT “Name”, “Address”, “Telephone number” , “Date of Birth”
DO WHILE NOT EOF (1)
       INPUT#1, n$, A$, T$, D$
       PRINT n$, A$, T$,D$
       Count=Count+1
LOOP
CLOSE#1
PRINT “Total number of records ”;Count
END



Post Your Comment Here