SEE PRE BOARD EXAM-2078 Class 10 Computer Science

 SEE PRE BOARD EXAM-2078

Computer Science

Full Marks: 50

Group-'A' [10x1 = 10]

1.    Give answer in one sentence for the following questions. (6x1=6)

 

a.    Define bandwidth.

Ans: Bandwidth refers to the total amount of data transferred from one computer to another per unit time with in a network.

 

b.   What is cyber bullying?

Ans: Cyber bullying is an act of harassment, embarrassing, or threatening someone with the use of internet.

 

c.    What is AI?

Ans: AI refers to the artificial intelligence embedded to a computer or a system so that it can behave like human. 

 

d.   What is the storage size of memo and text data type in MS-Access?

Ans: The storage size of memo is 65535 characters and text is 255 characters.

 

e.    What is local variable?

Ans: A local variable is any variable declared in the sub module which is accessible to that particular sub module only.

 

f.     What is an operator in C language?

Ans: An operator is a symbol that performs calculation on the given data.

 

 

2. Write appropriate technical terms for the following. (2x1 = 2)

a.    Secret group of characters which helps to protect file from unauthorized person. Password

b.    A type of network in which every computer works as both client and server. Peer to peer network

 

3. Write the full forms of the following. [2x1 = 2]

a.    ADSL- Asymmetric Digital Subscriber Line

b.    TCP/IP- Transmission Control Protocol/ Internet Protocol

 

Group B(12x2=24)

 

4. Answer the following questions. [9x2=18]

 

a.    Differentiate between LAN and WAN.

Ans: The differences between LAN and MAN are listed below:

LAN

MAN

LAN-Local Area Network is a small network that spreads in a small area

MAN-Metropolitan Area Network is a bigger network than LAN that spreads in a city

It has limited number of computer in the network

It has many computers connected in the network

This network has high data transfer rate

This network has low data transfer rate than LAN

It is usually a network within a room or a building.

It is the network within a city or between cities

 

b.   Write any four commandments of computer ethics.

Ans: The four commandments of cyber ethics are listed below:

1.    We should not use a computer to harm other people.

2.    We should not interfere with other people's computer work.

3.    We should not snoop around in other people's files.

4.    We should not use a computer to steal.

 

c.    What is E-commerce? List any two E-commerce companies in Nepal.

Ans: E-commerce refers to the online business where we can buy or sell products and services online.

      Two E-commerce companies in Nepal are listed below:

1.    Daraz

2.    Foodmandu

 

d.   What are the advantages of cloud computing?

Ans: The advantages of cloud computing are listed below:

1.   It helps to create new apps and services,

2.      It helps to store, back up, and recover data,

3.      It helps to host websites and blogs,

4.      It helps to stream audio and video,

 

e.    What is VR? Mention its application areas.

Ans: VR- Virtual Reality is an artificial environment that is created with the help of computer hardware and software that looks real.

The application areas of VR are listed below:

1.    Entertainment

2.    Education and Training

3.    Business and Advertisement

4.    Designing

 

f.     What is DBMS? Give any two examples.

Ans: DBMS-Database Management System is an application software or a system that allows us to create and maintain database. Examples: MS-Access, Oracle, etc.

 

g.    What is primary key? List any two advantages.

Ans: Primary key is the field of a database table that uniquely identifies each record of the database.

Two advantages of primary key are listed below:

1.    It helps to prevent from data redundancy.

2.    It helps to create relationships between tables.

 

h.   What is query?

Ans: Query is an object of MS-Access that helps to retrieve the required information from the database.

 

i.     What is data sorting? Write its two advantages.

Ans: Data sorting refers to the process of arranging the data of the database either in ascending or descending order.

 

4. Write down the output of the given program. [2]

DECLARE SUB DISPLAY (A)

CLS

A=3

CALL DISPLAY (A) END

SUB DISPLAY (A)

FOR X = 1 TO 6

PRINT A:

If A MOD 2= 0 THEN

A=A/2 ELSE

A=(A*3) + 1.

END IF

NEXT X

END SUB

OUTPUT:         3              10          5             16           8             4

 

5. Re-write the given program after correcting the bugs. (2)

REM to add more data in a sequential data file

OPEN "EMP.DAT" FOR INPUT AS #2

DO

INPUT "ENTER NAME"; N$

INPUT "ENTER ADDRESS"; A$

INPUT "ENTER SALARY"; S$

WRITE # 1, N$, AS, S

INPUT "Do you want to add more records"; M$

LOOP WHILE UCASE(M$) ="Y"

END


Program after correcting bugs:

REM to add more data in a sequential data file

OPEN "EMP.DAT" FOR APPEND AS #2

DO

INPUT "ENTER NAME"; N$

INPUT "ENTER ADDRESS"; A$

INPUT "ENTER SALARY"; S

WRITE # 1, N$, AS, S

INPUT "Do you want to add more record"; M$

LOOP WHILE UCASE$(M$) ="Y"

CLOSE #2

END

 

6. Study the given program and answer the given questions. (2)

DECLARE FUNCTION text$(A$)

CLS

INPUT "ENTER ANY WORD"; T$

PRINT text$(TS)

END.

FUNCTION text$(AS)

FOR M= LEN (A$) TO 1 STEP-1

C$ C$+MID$(AS, M, 1)

NEXT M

Text$=C$

END FUNCTION

a.    List the formal and actual parameters used in the program given above.

Ans: The formal parameter is A$ and actual parameter is T$

b.    List the library function used in the above program.

Ans: The library functions used in the above program are listed below:

1.    LEN()

2.    MID$()

 

Group-'C' [4x4 = 16]

 









8. Write a program in QBASIC that allows user to enter radius of a circle. Create a user defined function to find area of circle and sub procedure to find volume of a cylinder. Hint: [A = πr2, v=πr2h] [4]

DECLARE FUNCTION AREA(R)

DECALRE SUB VOLUME(R, H)

CLS

INPUT” Enter radius of circle”; R

INPUT” Enter height of cylinder”;  H

PRINT” The area of circle is ”; AREA(R)

CALL VOLUME(R, H)

END

FUNCTION AREA(R)

A=(22/7)*R^2

AREA=A

END FUNCTION

SUB VOLUME(R, H)

V=(22/7)*R^2*H

PRINT” The volume of cylinder is “; V

END SUB

 

 

9. A sequential data file "emp.dat" contains employee's name, address, gender and salary. WAP to display all the information of employees whose salary is more than Rs.20,000

OPEN “emp.dat” FOR INPUT AS #1

CLS

DO WHILE NOT EOF (1)

INPUT #1, N$, A$, G, S

IF S>20000 THEN

PRINT N$, A$, G, S

END IF

LOOP

CLOSE #1

END

 

10. Write a program in C language to input any two numbers and find greater Number.

#include <stdio.h>

#include<conio.h>

Void main() {

Clrscr();

int a, b;

printf("Enter any two numbers ");

scanf("%d %d", &a, &b);

if(a>b)

printf (“Greater number is %d”, a);

else

printf(“Greater number is %d”, b);

getch();

}

 

OR

Write a program in C language that asks user to enter any number and check whether the number is odd or even.

#include <stdio.h>

#include<conio.h>

Void main() {

Clrscr();

int num;

printf("Enter a number ");

scanf("%d", &num);

if(num % 2 == 0)

printf (“Even Number);

else

printf(“Odd Number”);

getch();

}

 

 

Comments