Tuesday, January 28, 2025

SOLVED National PABSAN COMPUTER SCIENCE SEE Pre Board Examination-2081

 


SOLVED National PABSAN COMPUTER SCIENCE SEE Pre Board Examination-2081

Time: 2:00 Hours

Full Marks: 50

GROUP 'A'

1. Answer the following questions:

 

a. What is transmission signal?

A transmission signal is a type of signal (like electrical, light, or radio waves) that carries information from one place to another.

 

b. What is logical threat in cyber field?

A logical threat in the cyber field refers to a type of threat that targets the software, data, or systems of a computer or network.

 

c. Which data type is suitable to store of student name in MS-Access?

In MS-Access, the Text data type is suitable for storing a student's name.

 

d. What is report?

Report is one of the MS-Access database objects used to present information in an effective and organized format that is ready for printing.

 

e. What is formal parameter?

Formal parameters are variables used in a function or procedure to receive values when the function is called.

 

f. Write down two header files use in C language.

The two header files use in C language are stdio.h and conio.h

 

2. Write appropriate technical term for the following:

a. The rule followed by computer in a network for communication. Protocol 

b. Learning through internet. E-learning

 

3. Write the full form of the following:

a. MODEM - Modulator-Demodulator

b. W3C - World Wide Web Consortium

 

GROUP 'B'

4. Answer the following questions:

 

a. Write the difference between client/server and peer to peer network.

Client-Server Network

Peer to Peer Network

In a client-server network, powerful computers called servers provide resources and services, while other computers, known as clients, access these resources and services.

In a peer-to-peer network, all computers have equal roles and can both provide and request resources without a centralized server.

Security and data management are handled by the server. Network administrator manages and enforces security policies.

Security is managed individually on each peer. Each peer is responsible for its own security and data.

 

 

 

b. What is computer UPS?

UPS is a battery supported power protection device which controls the electric voltage and supplies clean and continuous power to the computer system even during power failures.

 

c. What is cryptography?

Cryptography is the practice of using techniques to secure and protect information by converting it into a coded format ensuring that only authorized users can access or understand it.

 

d. What is e-commerce? Write down advantages of it.

E-commerce, or electronic commerce, refers to the buying and selling of goods and services over the internet.

Advantages of E-commerce

·       Faster buying/selling procedure, as well as easy to find products.

·       There are no geographical limitations, can deliver service globally.

 

e. What are the common models of e-commerce?

The common models of e-commerce are:

a)     Business to Consumer (B2C):
The most common type of E-Commerce is Business-to-Consumer. B2C establishes the electronic business relationships between a business organization (merchant) and final consumers.

(e.g. We buy a pair of shoes from an online retailer)

Amazon. com is a good example of B2C e-commerce.

b)     Business to Business (B2B):
Business-to-Business (B2B) e-commerce is conducted between companies. Individual customer cannot buy from this type of e-commerce. Producers and wholesalers typically operate with this type of electronic commerce.

(e.g. A business sells software-as-a-service for other businesses to use)

Alibaba.com is a good example of B2B e-commerce.

c)     Consumer to Consumer (C2C):
Consumer-to-Consumer (C2C) type of e-commerce is conducted between consumers.

These transactions are conducted through a third party, which provides the online platform where the transactions are actually carried out.

(e.g. You sell your old furniture on hamrobazar to another consumer)

Hamrobazaar.com is a good example of C2C website in Nepal.

d)     Consumer to Business (C2B):
When a consumer sells their own products or services to a business or organization

(e.g. An influencer offers exposure to their online audience in exchange for a fee, or a photographer licenses their photo for a business to use).

 

f. Write the difference between update query and select 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.

 

 

g. What is sorting? Write down two advantages of it.

The process of arranging all the records in a table either ascending or descending order based on field or fields is known as sorting. Sorted data is easier to handle than unsorted data.

The advantages of sorting 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.

 

 

h. What is table? Which view use to create table?

Tables are the primary building block of database which stores and manages large volume of data into rows and column.

Design view is used to create table.

 

i. What is data type? Give examples.

Data type is an attribute for a field that determines the type of data that can be stored in that field.

Examples of data type are: text, memo, Date/Time, Yes/No etc.

 

5. Write down the output of the given program:

DECLARE SUB SERIES ( )

CALL SERIES

END

SUB SERIES

N$ = “*”

FOR 1 TO 5

FOR J=1 TO I

PRINT N$;

NEXT J

PRINT

NEXT I

END SUB

Dry Run Table

N$

FOR 1 TO 5

J=1 TO I

PRINT N$

*

1 TO 5 Yes

1 TO 1 Yes

*

 

 

2 TO 1 No

 

 

2 TO 5 Yes

1 TO 2 Yes

*

 

 

2 TO 2 Yes

**

 

 

3 TO 2 No

 

 

3 TO 5 Yes

1 TO 3 Yes

*

 

 

2 TO 3 Yes

**

 

 

3 TO 3 Yes

***

 

 

4 TO 3 No

 

 

4 TO 5 Yes

1 TO 4 Yes

*

 

 

2 TO 4 Yes

**

 

 

3 TO 4 Yes

***

 

 

4 TO 4 Yes

****

 

 

5 TO 4 No

 

 

5 TO 5 Yes

1 TO 5 Yes

*

 

 

2 TO 5 Yes

**

 

 

3 TO 5 Yes

***

 

 

4 TO 5 Yes

****

 

 

5 TO 5 Yes

*****

 

 

6 TO 5 No

 

 

6 TO 5 No

Loop Exits

 

 

The output of the Program is:

*

**

***

****

*****

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

DECLARE FUNCTION SQ$ (N)

CLS

FOR I=1 TO 10

DISPLAY SQ (N)

NEXT N

END

FUNCTION SQ (N)

SQ=N^2

END FUNNCTION

 

Debugged Program

DECLARE FUNCTION SQ (N)

CLS

FOR N=1 TO 10

PRINT SQ (N)

NEXT N

END

 

FUNCTION SQ (N)

SQ=N^2

END FUNCTION

 

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

DIM N (10)

DECLARE SUB MIN (N ( ))

CLS

FOR I=1 TO 10

INPUT "ENTER A NUMBER"; N (I)

NEXT I

CALL MIN (N ( ))

END

SUB MIN (N  ())

S=N (1)

FOR 1=2 TO 10

IF SN > N(I) THEN S=N (I)

NEXT I

PRINT "THE SMALLEST NUMBER=”;S

END SUB

 

a. Which is array variable in above program?

The array variable in above program is N.

 

b. Which is control statement in above program?

The control statement in the program are:

·       FOR...NEXT loop

·       IF...THEN statement

 

 

 

 

 

 

 

 

Convert/Calculate as per the instruction:

a. (165)10 = (?)2

 

Divide by the base 2 to get the digits from the remainders:

Division
by 2

Quotient

Remainder

(Digit)

(165)/2

82

1

(82)/2

41

0

(41)/2

20

1

(20)/2

10

0

(10)/2

5

0

(5)/2

2

1

(2)/2

1

0

(1)/2

0

1

= (10100101)2

(165)10  = (10100101)2

 

 

 

b. (101111)2=(?)8

 

Convert every 3 binary digits (from bit0) to octal digit:

101111

5= 101

7 =111

= 5 7

(101111)2=(57)8

 

с. (101001) x (101)

 

 

1

0

1

0

0

1

 

 

 

 

x

1

0

1

 

 

1

0

1

0

0

1

 

0

0

0

0

0

0

x

1

0

1

0

0

1

x

x

1

1

0

0

1

1

0

1

(101001) x (101) = (11001101)

 

d. (1101110) / (1101)

1101)

1

1

0

1

1

1

0

(1000

 

1

1

0

1

 

 

 

 

 

0

0

0

0

1

1

0

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

1

1

0

 

 

 

 

 

 

 

 

 

 

Q=1000

R=110

 

9. Answer the following questions:

a. Write a program in QBASIC that asks length in meter then display length in centimeter by using FUNCTION. END FUNCTION and length in millimeter by using SUB.. END SUB.

[Hint 1 meter = 100 Centimeters 1 meter= 1000 Millimeters]

 

 

 

 

DECLARE FUNCTION MTC(M)

DECLARE SUB MTM(M)

CLS

INPUT "Enter Length in meter: "; M

PRINT "Length in centimeter: "; MTC(M)

CALL MTM(M)

END

 

FUNCTION MTC(M)

    MTC = M * 100

END FUNCTION

 

SUB MTM(M)

    MM = M * 1000

    PRINT "Length in millimeter is: "; MM

END SUB

 

b. Write a program to read records from file name "Rec.dat" and display all the records those post is manager. File contains field names are employees Name, Post, Date of birth, e-mail address and Salary.

OPEN “Rec.dat” FOR INPUT AS #1

CLS

PRINT “Name”, “Post”, “Date of Birth”, “E-Mail”, “Salary”

WHILE NOT EOF(1)

INPUT #1, N$, P$, D$, E$, S

IF UCASE$(P$) = “MANAGER” THEN PRINT N$, P$, D$, E$, S

WEND

CLSOE #1

END

 

10. Write a program in C-language that ask length, breadth and height then display volume of box. 4

[Hint: volume=LxBxH]

 

#include <stdio.h>

int main( )

{

    float length, breadth, height, volume;

    printf("Enter the length of the box: ");

    scanf("%f", &length);

    printf("Enter the breadth of the box: ");

    scanf("%f", &breadth);

    printf("Enter the height of the box: ");

    scanf("%f", &height);

    volume = length * breadth * height;

    printf("The volume of the box is: %.2f\n", volume);

    return 0;

}

 

Or

Write a program in C-language to display the series 5, 10, 15, 20, 25 up to 10th term.

 

#include <stdio.h>

int main( )

{

    int i, term;

 

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

        term = 5 * i; 

        printf("%d ", term); 

    }

    printf("\n"); 

    return 0;

}

 

 

***ALL THE BEST***

SOLVED PABSON SEE PRE-BOARD EXAMINATION-2081 Subject: Opt. Il Computer Science

 


SOLVED PABSON

SEE PRE-BOARD EXAMINATION-2081

Subject: Opt. Il Computer Science

Class: 10

Group A

1. Answer the following questions in one sentences

a) Write the different architecture of computer network.

Ans: The different architecture of computer network are: centralized network, client / server network and peer to peer network.

b) What is Cyber bullying?

Ans: Cyber bullying refers to harassment or bullying that takes place through electronic devices and digital platforms, such as the internet, social media, or messaging apps.

c) Write any two services provided by Internet.

Ans: Any two services provided by Internet are E-mail and E-Commerce.

d) Which query is used to make change the data present in the database.

Ans: Action query is used to make change the data present in the database.

e) What is Primary Key?

Ans: A primary key is a unique field in a database table that identifies each record uniquely.

f) Write any two types of operators used in C language C language.

Ans: Any two operators used in C language are relational and aritgmetic

2. Write appropriate technical term for the following:

a) Law that governs the legal issues of cyberspace. Cyber Law

b) The website that search documents for specified keywords in Internet. Search Engine

3. Write the full form of the following:

a)      POP – Post Office Protocol

b)      ISP – Internet Service Provider

Group B

4. Answer the following questions:

a) Differentiate between LAN and MAN.

Ans: The difference between LAN and MAN are:

LAN

MAN

Local Area Network is a network limited within a small area like a room, a building, school, college, etc. generally connected through wire media.

Metropolitan Area Network (MAN) is a network within the area like valley, city, metropolitan, etc. connected through wire or wireless technology or media.

LAN is owned, managed, and used by an individual or an organization. Therefore, it is a private network.

MAN’s ownership can be private or public.

b) What is network topology? Write about star topology with suitable diagram.

Ans: Network topology refers to the layout or arrangement of devices within a Local Area Network (LAN).

Star topology is a type of network configuration where all devices are connected to a central device, typically a hub or a switch.

Description: Image result for star topology

c) Write any four opportunities and threats in social media opportunities threats.\

Opportunities of using social media

Marketing and Branding: Promote businesses and engage with customers.

Information Sharing: Quickly access and share news and educational content.

Threats of using social media

Privacy Risks: Personal information can be exposed or misused.

Cyber bullying: Harassment or bullying through online interactions.

d) What is Online Payment? Write the different forms of e-payment in Nepal.

Ans: Online payment refers to the payment for buying goods or services through the Internet using different online payment gateway. The different forms of e-payment in Nepal are  eSewa Nepal, iPay, Khalti etc.

e) What is cloud computing? What are the services provided by cloud computing.

Ans: Cloud computing is a technology that allows users to access and manage computing resources such as servers, storage, and applications over the internet.

The services provided by cloud computing are:

v  Infrastructure as a Service (IaaS)

v  Software as a Service (SaaS)

v  Platform as a Service (PaaS)

f) Define Data and Information.

Data are raw form of any facts, figures or entities which does not give any meaning.

Information is the organized collection of inter-related data which has significant meaning.

g) What is MS-Access? Write the features of MS-Access.

MS Access is a relational database management system developed by Microsoft which allows users to store, manage, and analyze large volumes of data in a structured format using tables.

Features of MS-Access:

a)      It provides the flexible ways to add, edit, delete and display the related data.

b)      Queries help to view, change and analyse the data indifferent ways.

h) Define action query.

Action query is a query that makes changes to or removes many records in just one operation. The different types of query are:

Delete query, update query, append query and make table query.

i) What is table? Write the basic components of table.

Tables are the primary building block of database which stores and manages large volume of data into rows and column.

The components of table are field and record.

5. Write down the output of the given program. Show with dry run in table.

DECLARE SUB TEST(A$)

CLS

A$="PABSON"

CALL TEST(A$)

END

SUB TEST(A$)

FOR 1=1 TO LEN(A$)

B$ = MID$(A$, I, 1)

C$=C$+B$

NEXT I

PRINT C$

END SUB

Dry Run

A$

I = 1 TO LEN(A$)

B$ = MID$(A$, I, 1)

C$=C$+B$

PRINT C$

PABSON

1 TO 6 Yes

P

P

PABSON

2 TO 6 Yes

A

P+A=PA

3 TO 6 Yes

B

PA+B=PAB

4 TO 6 Yes

S

PAB+S=PABS

5 TO 6 Yes

O

PABS+O=PABSO

6 TO 6 Yes

N

PABSO+N=PABSON

7 TO 6 No

Loop Exits

The output of the program is :

PABSON

6. Rewrite the given program after correcting the bugs

REM to display the data from sequential data file "marks.dat” having marks in english more than 35

CLS

OPEN “marks.dat” FOR OUTPUT AS#1

WHILE NOT EOF(2)

INPUT #1, N$, ENG, NEP, SCI

ENG+NEP+SCI = TOT

IF TOT >35 THEN PRINT N$, ENG, NEP, SCI

NEXT

CLOSE #1

END

Debugged Program

REM to display the data from sequential data file "marks.dat” having marks in english more than 35

CLS

OPEN “marks.dat” FOR INPUT AS#1

WHILE NOT EOF(1)

INPUT #1, N$, ENG, NEP, SCI

TOT = ENG+NEP+SCI

IF ENG >35 THEN PRINT N$, ENG, NEP, SCI

WEND

CLOSE #1

END

7. Study the following program and answer the given questions:

DECLARE FUNCTION GRADE (A)

CLS

INPUT "ENTER A NUMBER"; B

C=GRADE(B)

PRINT C

END

FUNCITON GRADE(X)

WHILE X< >0

R = X MOD 10

Z = Z + R

X = INT(X/10)

WEND

GRADE=Z

END SUB

Questions:

a) How many parameters are used in the above program?

Ans: One parameter is used in the above program. A AND X is formal parameter and B is actual parameter. 

b) List the different library functions used in the program.

Ans: The library functions used in the program is INT( ).

Group C

Convert/calculate as per the instruction:

(a) (111)10 into (Binary)

Divide by the base 2 to get the digits from the remainders:

Division
by 2

Quotient

Remainder

(Digit)

(111)/2

55

1

(55)/2

27

1

(27)/2

13

1

(13)/2

6

1

(6)/2

3

0

(3)/2

1

1

(1)/2

0

1

= (1101111)2

(111)10 = (1101111)2

(b) (212)8 into (Hexadecimal)

Convert every octal digit to 3 binary digits,

212

= 2 1 2

2= 010

1 = 001

2 = 010

= 1000 1010

Convert every 4 binary digits to1  hex digit (see conversion tables):

8 = 1000

A = 1010

=8A

(212)8 =(8A)16

(c)11001-10101

1

1

0

0

1

+

1

0

1

0

1

10

1

1

1

0

11001+10101 = 101110

100101 / 1100

1100)

1

0

0

1

0

1

(11

1

1

0

0

0

0

1

1

0

1

1

1

0

0

1

Q = 11

R = 1

9a) Write a program in qbasic that ask to enter three different numbers then find out Product and Average. Create a user defined function PROD( ) to calculate product and sub procedure AVG( ) to calculate average.

            DECLARE FUNCTION PROD(A, B, C)

            DECLARE SUB AVG(A, B, C)

            CLS

            INPUT “Enter any three numbers”; A, B, C

            PRINT “Product of three numbers=”; PROD(A, B, C)

            CALL AVG(A, B, C)

            END

            FUNCTION PROD(A, B, C)

            PROD = A * B * C

            END FUNCTION

            SUB AVG(A, B, C)

            AV=(A+B+C)/3

            PRINT “Average of three numbers=”; AV

            END SUB

b) A sequential data file called "data.dat" has stored data under the field heading item name, quantity and rate. Write a program to display all the records with total.

OPEN “data.dat” for INPUT AS #1

CLS

            PRINT “Name”, “Quantity”, “Rate”, “Total”

            WHILE NOT EOF(1)

            INPUT #1, N$, Q, R

            T = Q * R

            PRINT N$, Q, R, T

            WEND

            CLOSE #1

            END

10. Write a program in C language to ask to enter a number then find out whether it is even or odd. 4

#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;

}

or

Write a C program to display the series 1, 4, 9. up to 10th term.

#include<stdio.h>

#include<conio.h>

int main()

{

int i;

i=1;

while(i<=10)

{

    printf("%d \n", i*i);

    i++;

}

return 0;

}