Saturday, February 18, 2023

SEDIPS SEE EFFICIENCY TEST 2079 [COMPUTER SCIENCE]


 SEDIPS SEE EFFICIENCY TEST 2079 [COMPUTER SCIENCE]




Group-A

(Very Short Questions-10 Marks)

1) Answer the following questions:

a) Define Bandwidth.

Ans: Bandwidth can be defined as the maximum volume of data that can be transmitted through a communication system.

b) What is digital citizenship?

Ans: Digital citizenship refers to the responsible use of technology by anyone who uses computer,

the Internet and digital devices to engage with the society on any level.

c) Name any to modes of Electronic Payments.

Ans: Any two modes of electronic payments are:

i) Debit Card

ii) E wallet

d) Define relationship.

Ans: Relationship is a link between two tables that defines how they are related to each other by a common field.

e) What do you mean by modular programming?

Ans: Modular Programming is a technique used to divide a program into many small, manageable, logical and functional modules or blocks.

f) Write any two data types used in C language.

Ans: Any two data types used in C language are:

i) int

ii) char

2) Give the appropriate technical terms of the following:

a) Hacking done with permission from the client. Ethical Hacking

b) The process of identifying an individual usually based on a username and password. Authentication

3) Write the full forms for the following:

SMTP- Simple Mail Transfer Protocol

VRML- Virtual Reality Modeling Language

Group-B

(Short Questions-24 Marks)

4) Answer the following questions:

a) Define data communication. Write its components.

Ans: Data communication is the process of transferring data electronically from one place to other using different transmission mediums.

Its components are:

i) Data

ii) Sender

iii) Medium

iv) Receiver

v) Protocol

b) Write any two Opportunities and Threats in Social Media.

Ans: Any two Opportunities in Social Media are:

i) It is very fast way of exchanging the information.

ii) Communication mechanism is very simple and easy.

Threats in Social Media are:

i) More chances of creating fake accounts.

ii) Create health problems.

c) What is software security? List any two security mechanism of Computer Hardware Security.

Ans: The security given to the software and data from being lost or damaged due to accidental or intentional harm is called software security.

Any two security mechanism of Computer Hardware Security are:

i) Insurance

ii) Regular maintenance

d) Define M-commerce. Write any four examples of M-Commerce.

Ans: M-Commerce is the process of buying and selling goods and services through the internet using wireless handheld devices such as mobile phones, tablets and Personal Digital Assistant(PDAs).

Any four examples of M-Commerce are:

i) Book movie tickets

ii) Make railway reservations

iii) Order books

iv) Access email

e) What do you mean by Iot? List its any two advantages.

Ans: IoT is a technology that connects all electronic devices together and prompts them to exchange information without any human intervention.

Its two advantages are:

i) Accessing information is easy.

ii) Communication between the connected devices becomes more transparent and easier.

f) What is DBMS. Write any two advantages of DBMS.

Ans: DBMS is a computerized system that stores data, processes them and provide information in an organized form.

Any two advantages of DBMS are:

i) It helps to reduce data redundancy which means duplication of data.

ii) It can store large volume of data.

g) Define the term Validation Rule and Validation Text.

Ans: A field property which enables to limit values that can be accepted into a field is known as validation rule.

A field property which allows type text to be displayed if the user input value is prohibited by the validation rule is known as validation text.

h) Differentiate between select query and update query.

Select Query

Update Query

- A select query is the most common category which is used to extract specific information from one or more tables in a database.

- The Select query is used to select data from a database.

- Update query is a type of action query which makes global changes to a group of records in one or more tables.

- The Update query is used to update existing records in a table.

 

i)Define Data types. List any four names of the data types.

Ans: Data type is an attribute for a field that determines what type of data it can contain.

Any four names of data types are:

i) Text

ii) Number

iii) Memo

iv) Currency

FIND OUTPUT ALONG WITH DRY RUN

 

DECLARE SUB SERIES ( )

CLS

CALL SERIES

END

SUB SERIES

A$="NEPAL"

B=1

FOR I=1 TO LEN(A$) STEP 2

IF B < > 3 THEN

PRINT MID$(A$,B,I)

ELSE

PRINT MID$(A$,1,I)

END IF

B=B+1

NEXT I

END SUB

 

DRY RUN

VAR.

VAR.

VAR.

LOOP CHECK

CONDITION CHECK

O/P

A$

B

I

1 TO 5 STEP 2

B< > 3

 

NEPAL

1

1

1 TO 5 YES

1 < > 3 YES

N

 

2

3

3 TO 5 YES

2 < > 3 YES

EPA

 

3

5

5 TO 5 YES

3 < > 3 NO

NEPAL

 

4

7

7 TO 5 NO

LOOP EXITS

 

 

OUTPUT

N

EPA

NEPAL

 

Debug

 

DECLARE FUNCTION vowel(S$)

w$=we love our country

v=vowel(w$)

PRINT "The total no. of vowel::"; v

END

FUNCTION vowel$(S$)

c=0

FOR K=1 TO length(S$)

B$=MID$(S$, K, 1)

B$=LCASE$(B$)

SELECT CASE B$

CASE "a", "e", "i", "o", "u"

c=c+1

END SELECT

NEXT K

C=vowel

END FUNCTION

 

Debugged Program

 

DECLARE FUNCTION vowel(S$)

w$="we love our country"

v=vowel(w$)

PRINT "The total no. of vowel::"; v

END

FUNCTION vowel(S$)

c=0

FOR K=1 TO LEN(S$)

B$=MID$(S$, K, 1)

B$=LCASE$(B$)

SELECT CASE B$

CASE "a", "e", "i", "o", "u"

c=c+1

END SELECT

NEXT K

vowel = c

END FUNCTION

 

Analytical Questions

 

OPEN “MARKINFO.TXT” FOR INPUT AS #1

OPEN “TEMP.TXT” FOR OUTPUT AS #2

CLS

DO UNTIL EOF(1)

INPUT #1, REGISTRATIONNUMBER, STUDENTNAME$, ENGLISH, NEPALI, MATHEMATICS

IF MATHEMATICS<20 THEN

MATHEMATICS=MATHEMATICS+10

END IF

WRITE #2, REGISTRATIONNUMBER, STUDENTNAME$, ENGLISH, NEPALI, MATHEMATICS

LOOP

CLOSE#1

CLOSE #2

KILL “MARKINFO.TXT”

NAME “TEMP.TXT” AS “MARKINFO.TXT”

END

 

a)     What is the main objective of the program given above?

The main objective of the program given above is to increase marks of math by 10 whose marks in math is less than 20.

b)     Do you get any problem in above program if “Kill” statement is removed? Give reason.

Yes, there will be a problem in the above program if the "KILL" statement is removed. If the "KILL" statement is removed, the program will not be able to delete the existing "MARKINFO.TXT" file.

 

8) Calculate/Convert as per the instructions:

a) (101010)2 × (101011)2-(100101)2                                                         b) (1001011)2 ÷ (10101)2

c) (DEF42)16 =(?)8                                                                                                     c) (986)10 = (?)2





9. a) Write a QBASIC program that asks length, breadth, height and calculate Volume of Cuboid and Total Surface Area. Create a USER DEFINED FINCTION to calculate Volume of Cuboid and SUB-PROGRAM to calculate Total Suface of Area.

DECLARE FUNCTION VOL(L,B,H)

DECLARE SUB TSA(L,B,H)

CLS

INPUT”Enter length”;L

INPUT”Enter breadth”;B

INPUT”Enter height”;H

PRINT”Volume of cuboid= “;VOL(L,B,H)

CALL TSA(L,B,H)

END

 

FUNCTION  VOL(L,B,H)

VOL=L*B*H

END FUNCTION

 

SUB TSA(L,B,H)

T=2*(L*B+B*H+L*H)

PRINT”Total surface area of cuboid=”;T

END SUB

 

 b) A sequential data file"records.dat" contains S.NO., Name, Address, Telephone No and Email Address. WAP to count and display those records whose email address ends in "yahoo.com" domain. Your display should be in tabular format having the fields Name, Address and Email address only.

OPEN "records.dat" FOR INPUT AS #1

CLS

WHILE NOT EOF(1)

INPUT #1, SN, N$, A$, T, E$

IF LCASE$(RIGHT$(E$,9))="yahoo.com"

THEN PRINT N$,A$,E$

C=C+1

WEND

PRINT "TOTAL NO. OF HAVING YAHOO EMAIL ADDRESS ARE"; C

CLOSE #1

END

 

 

10. Write a program in C language that asks a number check whether number is Positive, Negative or zero.

#include<stdio.h>

int main()

{

    int n;

    printf("Enter any number: ");

    scanf("%d",&n);

    if(n>0)

    printf("The given number is positive");

    else if(n<0)

    printf("The given number is negative");

    else

    printf("The given number is zero");

    return 0;

}

 

OR

Write a program in C language to display the series with their sum 7, 10, 13, 16…… upto 10th term.

#include<stdio.h>

int main()

{

    int n=7,i,s=0;

    for(i=1;i<=10;i++)

    {

        printf("%d  ",n);

        s=s+n;

        n=n+3;

    }

    printf("\nsum= %d",s);

    return 0;

}

 

 


Saturday, February 11, 2023

Solved National PABSON SEE Pre Board Examination – 2079 COMPUTER SCIENCE

 


Solved National PABSON SECONDARY EDUCATION EXAMINATION BOARD

SEE Pre Board Examination – 2079

COMPUTER SCIENCE

Time: 1:30 Hours       Full Marks: 50

Attempt all the questions.

GROUP ‘A’ -

1. Answer the following questions in one sentence:   [6x1 = 6]

 

a. Give the name of any two guided transmission media.

Ans:Name of any two guided transmission media are:

i)Twisted Pair Cable

ii)Fiber Optic Cable

 

b. What is software security?

Ans: The security given to the software and data from being lost or damaged due to accidental or intentional harm is called software security.

 

c. What is the validation rule in MS-Access?

Ans: Validation rule is a field property which enables to limit values that can be accepted into a field.

 

            d. Which view is used to modify a table structure in MS-Access?

Ans:Design view is used to modify a table structure in MS-Access.

 

            e. Write the function of INPUT # statement.

Ans: The function of INPUT # statement is to read data from the sequential data file.

 

 f. Give the name of any two header files used in C language.

Ans:Name of any two header files used in C language are:

i)<conio.h>

ii)<stdio.h>

 

2. Write appropriate technical term for the following: [2x1  =  2]

            a. The moral principle that controls cybercrime. Computer Ethics

b. Combination of Public and Private clouds. Hybrid Cloud

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

            a.         PIN      - Personal Identification Number

            b.         OTP - One Time Password

GROUP ‘B’ -

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

 

a. Write any two difference between LAN and WAN.

LAN

WAN

Local Area Network is a network that connects a group of computers in a small geographical area like a room, a building, school, etc.

Computer lab networking and cyber networking are examples of LAN.

 

A wide area network (WAN) is a computer network that covers a large geographical area comprising a region, a country, a continent or even the whole world

Internet, 4G Mobile Broadband Systems and satellite communication are the best examples of WAN.

 

 

b. Write any four commandments of computer ethics.

Write any four commandments of computer ethics are:

·       Do not use a computer to harm other people.

·       Do not use a computer to publish fake information.

·       Do not search the file or record of other people.

·      Do not destroy or delete the records of other people.

 

c. What is a computer security? Write any two ways of hardware security ?

Computer security means protecting our computer and its content from damage, theft or misuse and action to prevent such incidents.

Any two ways of hardware security are:

Regular Maintenance and Insurance

 

d.


 

e. What is Internet of Things ? Write any two of its importance.

A technology that connects all electronic devices together and prompts them to exchange information without any human intervention is called Internet of Things.

Any two of its importance are:

a)     Accessing information is easy.

b)     Communication becomes more transparent and easier.

 

f. Define DBMS with any two examples.

DBMS is a software which helps to extract, view and manipulate data in an organized way so that data can be accessed, managed and updated easily.
E.g.: MS-Access, Oracle

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

A key that uniquely identifies each record in a database is primary key.

Any two advantages of Primary key are
i) To reduce and control duplication of record in a table.
ii) To set the relationship between tables.

 

h. What is data sorting? List any two advantages of using it.

Sorting is the process of arranging the record in ascending or descending order according to a given field or fields. The advantages of sorting are:
i) It helps to find specific information quickly.
ii) Sorted data is easier to handle than unsorted data

 

            i. Identify a record, field and value from the following table structure.

Symbol No.

Name

Marks

00100202S

Aarambha Gharti

85

00100203T

Subash Rayamajhi

91

 

 

 

 

Record = 

00100202S

Aarambha Gharti

85

00100203T

Subash Rayamajhi

91

 

Field = Symbol No., Name and Marks

Value = 85 and 91, Aarambha Gharti and Subash Rayamajhi, 00100202S and 00100203T

 

5.        

Write down the output of the given program and show them in dry run table:     [2]

            DECLARE SUB CITY (K$)

            CLS

            CALL CITY ("KATHMANDU")

            END

            SUB CITY (K$)

            FOR K = 1 TO LEN (K$)

                        C$ = MID$ (K$, K, 1)

            IF K MOD 2 = 1 THEN

                        C$ = UCASE$ (C$)

            ELSE

                        C$ = LCASE$ (C$)

            END IF

                        X$ = X$ + C$

            NEXT K

            PRINT X$

            END SUB

DRY RUN

Var

Var

Loop Check

Var

Condition check

Var

O/P

K$

K

1 to 9

C$

K MOD 2=1

X$

 

KATHMANDU

1

1 to 9 ‘yes’

K

1 MOD 2=1 YES

K

KaThMaNdU

 

2

2 to 9 yes

A

2 MOD 2=1 NO

Ka

 

 

3

3 to 9 yes

T

3 MOD 2=1 YES

KaT

 

 

4

4 to 9 yes

H

4 MOD 2=1 NO

KaTh

 

 

5

5 to 9 yes

M

5 MOD 2=1 YES

KaThM

 

 

6

6 to 9 yes

A

6 MOD 2=1 NO

KaThMa

 

 

7

7 to 9 yes

N

7 MOD 2=1 YES

KaThMaN

 

 

8

8 to 9 yes

D

8 MOD 2=1 NO

KaThMaNd

 

 

9

9 to 9 yes

U

 9MOD 2=1 YES

KaThMaNdU

 

 

10

10 to 9 no

Loop exits

 

 

 

 

 

OUTPUT

KaThMaNdU

 

 

6. Re-write the given program after correcting the bugs: [2]

            REM print the input integer in reverse order

            DECLARE SUB REV (N)

            CLS

            INPUT "Enter an integer number"; NO

            CALL REV (NO)

            END

            SUB REV (N)

            A = N

            WHILE A = 0

R = A MOD 10

S  = S + 10 + R

            A = A \ 10

            NEXT

            DISPLAY "Reverse"; S

            END SUB

 

Debugged program

REM print the input integer in reverse order

DECLARE SUB REV(N)

CLS

INPUT “Enter an integer number”;NO

CALL REV(NO)

END

SUB REV(N)

A=N

WHILE A<>0

R=A MOD 10

S=S*10+R

A=A\10

WEND

PRINT”Reverse”; S

END SUB

7. Study the following program and answer the given questions: [2x1  =  2]

            DECLARE FUNCTION A (X)

            CLS

            X = 5

            Z = A(X)

            PRINT Z

            END

            FUNCTION A (X)

            FOR I = 1 TO X

            S = S + I

            NEXT I

            A = S

            END FUNCTION

a.                If the line S=S+I is changed to S=S+I^2, find the output of it.

Ans:The output will be 55.

b.                How many times does the statement S=S+I execute in the above program?

Ans: The statement S=S+I executes 5 times.

GROUP ‘C’ - ;d"x æuÆ_

8. Convert and calculate as per the instruction:

i) (A2B)16= (?)8

Ans.

Hexadecimal digits: A 2 B

Binary equivalent: 1010  0010 1011

Grouping together : 101000101011

Grouping 3 digits :  101 000 101 011

Octal equivalent: 5 0 5 3

(A2B)16= (5053)8

 

ii) (345)10 = (?)2

Ans.


 

iii) (1011)2 x (101)2 = (?)2

Ans.


iv) (1011010)2 / (101)2

Ans.


 

9)

 a) Write a program in QBASIC that asks length, breadth and height of room and calculates its area and volume. Create a user-defined function to calculate area and sub-program to calculate volume.

Ans.

DECLARE FUNCTION AREA(L,B)

DECLARE SUB VOL(L,B,H)

CLS

INPUT “ENTER LENGTH”;L

INPUT “ENTER BREADTH”; B

INPUT “ENTER HEIGHT”;H

PRINT “THE AREA OF ROOM IS ”AREA(L,B)

CALL VOL(L,B,H)

END

 

FUNCTION AREA(L,B)

AREA = L*B

END FUNCTION

 

SUB VOL(L,B,H)

V =  L * B * H

PRINT “THE VOLUME OF ROOM IS  ”;V

END SUB

 

b. The employee's name, address, gender, and salary are stored in the "Emp. Dat" sequential data file. Write a QBASIC program that displays all information about personnel whose salaries exceed 50000.

Ans.

OPEN “Emp.Dat” FOR INPUT AS #1

CLS

WHILE NOT EOF(1)

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

IF S > 50000 THEN PRINT N$,A$,G$,S

WEND

CLOSE #1

END

 

10. Write a program in C language to find simple interest where user need to input principal, rate and time.

Ans.

#include<stdio.h>

int main()

{

float p,t,r,s;

printf(“Enter principal”);

scanf(“%f”, &p);

printf(“Enter time”);

scanf(“%f”, &t)

printf(“Enter rate”);

scanf(“%f”, &r);

s = (p*t*r)/100;

printf(“The simple interest is %f”,s);

return 0;

}

 

Write a program in ‘C’ language to display the series with their sum. 1,2,3,4,….., up to 10th terms.

Ans.

#include<stdio.h>

int main()

{

int i,s=0;

for(i=1;i<= 10 ; i++)

{

printf(“\n %d”,i);

s = s + i;

}

printf("The sum of series is %d",s);

return 0;

}

 [ The end ]