Monday, December 25, 2023

Solved PABSON, Lalitpur SEE PRE-QUALIFYING EXAMINATION-2080 Computer Science

 



PABSON, Lalitpur

SEE PRE-QUALIFYING EXAMINATION-2080

Subject-Opt. II. Computer Science

Full Marks: 50

Time: 2 hrs

Candidates are required to write their answers according to the instructions given.

Attempt all questions

 

Group A [10 Marks]

 

1. Answer the following questions in one sentence:

 

a) What is mail server?

Ans: A mail server is a computer system that is dedicated to handling and managing the sending, receiving, and storage of emails.

 

b) Why do you connect your PC to the UPS?

Ans: We connect PC to the UPS to control fluctuation of electric voltage and provides enough backup electric power to the computer system when there is power failure.

 

c) What is AI?

Ans: Artificial intelligence refers to the simulation of human intelligence in machines that are programmed to think and act like humans.

 

d) Which object of DBMS is used to print information?

Ans: The object of DBMS which is used to print information is report.

 

c) List the types of procedures.

Ans: The types of procedure are SUB Procedure and FUNCTION Procedure.

 

f) Write a feature of C language.

Ans: A feature is C language is it is mostly used to prepare system software.

 

2. Write the technical term for the following statements:                       

 

a) Device to convert analog signal into digital signal and, vice versa. MODEM

 

b) Making data and information unreadable by unauthorized person. Encryption

 

3. Write the full forms of the following:

 

a) UPS - Uninterruptible Power Supply

 

b) SMTP - Simple Mail Transfer Protocol

 

 

Group B

 

4. Answer the following questions:

 

 

a) What is communication channel? Mention its types with at least one example, each

Ans: A channel or path through which data and information are transmitted between connected devices in a network environment are called communication channel.

Its types are:

Guided (Wired/bounded) communication media - Twisted Pair Cable, Co-Axial Cable and Fiber Optic Cable

Unguided (Wireless/unbounded) communication media - radio wave, microwave, satellite, infrared

b) What is cyber-crime? List any two objectives of formulating cyber law in Nepal.

Ans: Cybercrime refers to criminal activities or illegal actions that are conducted or facilitated through the use of digital technology or the internet.

Any two objectives of formulating cyber law in Nepal are :

- To legalize the transaction through electronic media to control various types of electronic frauds

- To punish a person who does criminal activities through electronic means especially on computers.

 

c) Mention any four hardware security measures.

Ans: Any four hardware security measures are :

a)     Regular Maintenance

b)     Insurance

c)     Air condition system

d)     Power Protection device (Volt guard, Spike guard, UPS)

 

d) What is e-commerce? Write its two limitations.

Ans: E-commerce refers to the buying and selling of goods or services using the internet.

Any two limitations of e-commerce are:

Need to be careful about the quality of product and service delivery.

We cannot do any transaction without Internet access device.

 

 

e) List the types of E-governance. Describe any one of them.

Ans: The types of E-governance are:

·       Government-to-Citizen(G2C)

·       Government-to-business (G2B)

·       Government-to-Government (G2G)

·       Government-to-Employee (G2E)

Government-to-Citizen(G2C)

G2C-is transaction between the government to citizens. It includes online registration of birth/ death/marriage certificates, filling of income taxes, electricity bills, license renewals etc.

 

f) What is DBMS? Write its two advantages.

Ans: DBMS is a software that manages databases, allowing users to store, access, and manipulate data in an organized and secure way.

Any two advantages are:

It controls data redundancy which means duplication of data.

It provides high security of data as well as maintains accurate database

 

 

 

g) Write a similarity and a difference between Number field type and Currency filed type.

Ans: similarity and a difference between Number field type and Currency field type

Similarity:

Both store numerical values: Both field types are designed to store numerical data.

Difference:

            Currency field type is specialized for handling monetary values by including specific currency formats and precision, whereas the Number field type is more generic and can store any numerical data without currency-specific formatting.

 

 

h) What is primary key? Write two examples of primary key fields.

Ans: A primary key is a field or combination of fields in a table that uniquely identifies each record, and is used to establish relationships between tables and enforce data integrity.

Any two examples of primary key fields are SEE Registration number, Username

 

i) Why is query object used in MS-Access? Give two reasons.

Ans: Any two reasons to use query object in MS-Access are:

Queries enable users to retrieve specific data from tables or other data sources, based on specified criteria.

Queries allow users to filter, sort, and group data in meaningful ways.

 

5. Write the output of the given program showing the dry run table. (2)

DECLARE FUNCTION PRO(N)

 

CLS

A=2

FOR J=1 TO 5

X= PRO(A)

PRINT X

NEXT J

END

 

FUNCTION PRO(N)

N=N+2

PRO=N

END FUNCTION

 

            Dry Run

A

J=1 to 5

X

N

N=N+2

PRINT X

2

1

4

2

2+2=4

4

 

2

6

4

4+2=6

6

 

3

8

6

6+2=8

8

 

4

10

8

8+2=10

10

 

5

121

10

10+2=12

12

 

6 loop exits

 

 

 

 

 

Output of the program is

4

6

8

10

12

 

6. Debug the following program

 

Rem to add 5 records in data file HOSPITAL.TXT

OPEN "HOSPITAL.TXT" FOR INPUT AS #5

FOR REP = 1 TO 5

INPUT "ENTER PATIENT NAME":PN$

INPUT "ENTER PATIENT ADDRESS":AD$

INPUT "ENTER PATIENT AGE": A%

INPUT "ENTER PATIENT GENDER":G$

 

STORE #5, PN$,AD$,A, G$

NEXT REP

CLOSE #1

END

 

 

 

 

 

Debugged Program

 

Rem to add 5 records in data file HOSPITAL.TXT

OPEN "HOSPITAL.TXT" FOR APPEND AS #5

FOR REP = 1 TO 5

INPUT "ENTER PATIENT NAME":PN$

INPUT "ENTER PATIENT ADDRESS":AD$

INPUT "ENTER PATIENT AGE": A%

INPUT "ENTER PATIENT GENDER":G$

WRITE #5, PN$,AD$,A%, G$

NEXT REP

CLOSE #1

END

 

7. Read the following program and answer the given questions.

 

DECLARE SUB AA (N$)

W$=CYBERCRIME"

CALL AA(W$)

END

 

SUB AA (N$)

R=LEN(N$) \ 2

E$=RIGHT$(N$,R) + LEFT$(N$,R)

PRINT E$

END SUB

 

Questions:

 

a) List the parameter(s) and argument(s) of the program.

Ans: The parameter used in above program is N$ and argument used in above program is W$.

b) List all the string library functions from the program.

Ans: The string library functions used from the program are LEN ( ), RIGHT$( ), LEFT$( ).

 

 

8. Convert/Calculate as per the instruction:

 

a) (11100001)2 = (?)8

 

b) (A2B)16 = (?)2

 

c) (101) X (111)

 

d) (110110)¸(110)

 

Group C

 

9. a. Write a program in QBASIC to define a function procedure to display the area of sphere and sub procedure to display the volume of sphere where user need to input radius in main module.

[Hint: Area = 4*3.14*R^2, Volume = 4/3*3.14*R^3]

 

DECLARE SUB AREA (R)

DECLARE FUNCTION VOL(R)

CLS

INPUT “Enter Radius”; R

CALL AREA(R)

PRINT “Volume of sphere=”; VOL(R)

END

SUB AREA(R)

A=4*3.14*R^2

PRINT “Area of sphere=”; A

END SUB

 

FUNCTION VOL(R)

VOL=4/3*3.14*R^3

END FUNCTION

 

b. A sequential data file 'PRODUCT.DAT contains the information regarding product Id, Product name, Date of manufacturing and Price of some products. Write a program to display all the records deducting the price by 20%, where price is greater than or equal to Rs.1000. [4]

 

OPEN “PRODUCT.DAT” FOR INPUT AS #1

CLS

WHILE NOT EOF(1)

INPUT #1, I, N$, D$, P

IF P>=1000 THEN P=P-20/100*P

PRINT I, N$, D$, P

WEND

CLOSE #1

END

 

 

 

10. Write a program using C language to input an integer then check whether the integer is even or odd.

 

 

#include<stdio.h>

#include<conio.h>

int main()

{

int n;

printf("Enter any number: ");

scanf("%d", &n);

if(n%2==0)

printf("%d is even number", n);

else

printf("%d is odd number", n);

return 0;

}

 

 

 

Write a program using C language to generate the first 25 even numbers between 100 and 200.

 

#include <stdio.h>

 

int main() {

    int i, count = 0;

 

    printf("The first 25 even numbers between 100 and 200 are:\n");

 

    for (i = 100; count < 25; i += 2) {

        printf("%d ", i);

        count++;

    }

 

    printf("\n");

    return 0;

}

SOLVED Gauri Shankar Secondary School - Nisdi-4, Mityal,Palpa PRE SEE EXAM 2080


 Pre-SEE  Exam - 2080

Gauri Shankar Secondary School

Nisdi-4, Mityal,Palpa

Subject:- Computer Science

Grade:- 10 (SEE)                                                                                                      FM :-50

Time:- 1.5 Hrs.

Attempt all questions

 

( Very Short Questions-10 Marks)

Group-A

 

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

 

a)     What is internet?

Ans: The Internet is a global network of interconnected computers that allows people to share information and communicate from anywhere in the world.

 

b)    Define cloud computing.

Ans: Cloud Computing refers to storing and accessing data and programs over the internet instead of storing on secondary storage devices.

 

c)     What is meant by primary key in MS-Access?

Ans: A primary key is a field or combination of fields in a table that uniquely identifies each record, and is used to establish relationships between tables and enforce data integrity.

 

d)    Which data type is suitable to store salary of an employee in MS-Access?

Ans: Currency data type is suitable to store salary of an employee in MS-Access.

 

e)     Write any two advantages of modular programming.

Ans: Any two 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.

 

f)      Write any two differences between Q-Basic and C-language.

Ans: Any two differences between Q-Basic and C-language

QBASIC

C

It is a high level language without feature of low level language.

It is a high level language with some features of low level language.

It is mostly used to design application software.

It is mostly used to prepare system software.

 

2. Write appropriate technical term of the following:

a)     The smallest unit of represent in format on quantum computer. quantum bit (qubit)

b)     Laws made to prevent criminal activities through the internet.  Cyber Law

 

3. Write the full forms of the following:

a) VPN - Virtual Private Network

b) DNS - Domain Name System

 

 

 

 

 

 

 

Group-B

 

Short Questions -24 Marks

 

 

4) Answer the following questions in short.           9x2=18

 

a)     What is network topology? List any two types of network topology.

Ans: Network topology is the cabling structure of interconnected computers in LAN.

Any two types of network topology are bus topology and star topology.

 

b)    What is antivirus software? Name any two popular antivirus software.

Ans: Antivirus software is software designed to detect and remove virus from computer system and ensures virus free environment.  

Any two popular antivirus software are Kaspersky and McAfee

 

c)     What is virtual reality? Write any two areas where it is used.

Ans: Virtual reality is an artificial environment created with computer hardware and software and presented to the user in such a way that it appears and feels like a real environment.

Any two areas where it is used are:

Gaming-  VR Gaming allows players to immerse (dip) themselves in virtual world and interact with

environment and characters

Education - VR can help students learn by making the content more engaging and memorable.

 

d)    What is E-commerce? List any two advantages of it.

Ans: E-commerce refers to the buying and selling of goods or services using the internet.

Any two advantages of it are:

It makes buying/selling possible 24/7.

It makes buying selling procedure faster, as well as easy to find products.

 

e)     What is E-Learning? Write some examples of it.

Ans: E-learning is a new concept of delivering digital contents in learner oriented environment using information and communication technology (ICT).

Examples are Virtual Classrooms from Zoom and Google Meet, Online textbooks and eBooks, Video based learning platforms like YouTube etc.

 

f)      What is data processing? Distinguish data & information.

Ans: Data processing is the method of collecting raw data and translating it into usable information.

Difference between data and information are:

Data

Information

·       Data are raw, unorganized facts that need to be processed which have no meaning. 

·       Data measured in bits and bytes.

·       Data never depends on information.

·       E.g.: Ram, student, 20, etc.

·       Information is processed or organized data that has meaning and context for its users.

·       Information is measured in meaningful units like time, quantity, etc.

·       Information is dependent on data.

·       E.g. “Ram is a student. He is 20 years old.”, is information that gives a complete sense.

 

g)     What is DBMS? Write any four software of DBMS.

Ans: DBMS is a software that manages databases, allowing users to store, access, and manipulate data in an organized and secure way.

Any four software of DBMS are : MS-Access, Oracle, Fox pro, dBase etc.

 

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

Ans: Sorting refers to the process of organizing data in a specific order (ascending or descending) based on one or more fields in a table, query, or report.

Any two advantages of using it are:

Sorting helps to organize data and make it easier to find and retrieve specific information.

Sorting can save time and improve efficiency by allowing users to quickly access the data they need

 

i)      What is Form? Write down the importance of form.

Ans: Form is a database object that provides a graphical interface for users to view, enter, and edit data from one or more tables, queries, or other data sources.

The importance of forms are:

Forms provide an easy-to-use interface for data entry and manipulation, improving data accuracy and completeness.

Forms enable users to customize the look and feel of data input screens

 

Write down the output of the given program :

DECLARE SUB result ( )

CALL result

 END

 

SUB result

FOR i = l TO 9 STEP 2

sum=sum+i^2

NEXT i

PRINT  sum

END SUB

 

Dry Run

i

sum=sum+i^2

Print sum

1

0+1^2=1

165

3

1+3^2=10

 

5

10+5^2=35

 

7

35+7^2=84

 

9

84+9^2=165

 

 

Output of the program is:

165

 

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

DECLARE SUB VOLUME (l,b,h)

CLS

INPUT "ENTER length, breadth & height";l, b, h

EXECUTE VOLUME

SUB VOLUME(l,b,h)

V=lxbxh

PRINT "The volumeis";V

END FUNCTION

 

Debugged Program

DECLARE SUB VOLUME (l,b,h)

CLS

INPUT "ENTER length, breadth & height";l, b, h

CALL VOLUME (l, b, h)

END

 

SUB VOLUME(l,b,h)

V=l*b*h

PRINT "The volume is";V

END SUB

 

7) Study  the following program  and  answer  the following questions: (2x 1=2)

DECLARE  FUNCTION NUM(N)

INPUT N

S = NUM(N)

PRINT S

END

FUNCTION NUM(N)

X = INT(17/N)

Y =15 MOD N

NUM = X + Y

END FUNCTON       

 

i. What is the name of function used in above program?

Ans: The name of function used in above program is NUM ( ).

 

ii. List the mathematical function used in above program.

Ans: The mathematical function used in above program is INT ( ).

 

 

Group-C

 

(Long Questions-16 Marks)

 

8. Convert or Calculate as per the instructions:   (4x1=4)

i)  (1010101)2=  (?)10                         ii) (AE7)16=(?)2

iii) (1111)2 × (101)2 – (1000)2          iv) (1111)  ¸ (11)

 

9. a . Write a program in Q-BASIC that asks length, breadth & height of cuboid & calculate its TSA & Volume. Create a Sub procedure to calculate TSA and function procedure to calculate volume.) [ Hint:- TSA =2pr (r + h) & V= pr2h]

 

DECLARE SUB TSA (R, H)

DECLARE FUNCTION VOL(R, H)

CLS

INPUT “Enter Radius”; R

INPUT “Enter Height”; H

CALL TSA(R, H)

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

END

SUB TSA(R, H)

T=2*3.14*R*(R+H)

PRINT “Total Surface Area of Cuboid=”; T

END SUB

 

FUNCTION VOL(R, H)

VOL=3.14*R^2*H

END FUNCTION

 

b) A sequential datafile called 'STUDENT.DAT' contains NAME, CLASS,SECTION & ADDRESS fields. Write a program to display all the contents of that datafile.

 

OPEN “STUDENT.DAT” FOR INPUT AS #1

CLS

PRINT “NAME”, “CLASS”, “SECTION”, “ADDRESS”

WHILE NOT EOF(1)

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

PRINT N$, C, S$, A$

WEND

CLOSE #1

END

 

10. Write a program in C-Language to find the area of four walls.        4

{Hint:- A = 2h(l+b)}

 

#include<stdio.h>

#include<conio.h>

int main()

{

int l,b,h,a;

printf("Enter length: ");

scanf("%d", &l);

printf("Enter breadth: ");

scanf("%d", &b);

printf("Enter height: ");

scanf("%d", &h);

a=2*h*(l+b);

printf("Area of four walls= %d", a);

return 0;

}

 

 

(OR)

Write a program in C-Language that asks a number and check whether it is even or odd.

 

 

#include<stdio.h>

#include<conio.h>

int main()

{

int n;

printf("Enter any number: ");

scanf("%d", &n);

if(n%2==0)

printf("%d is even number", n);

else

printf("%d is odd number", n);

return 0;

}

 

 

 

BEST OF LUCK