Thursday, February 9, 2023

SOLVED PABSON,SEE PRE-BOARD EXAM- 2079 -COMPUTER SCIENCE

 



SOLVED PABSON,SEE PRE-BOARD EXAM- 2079

Subject- Optional Computer   

Group "A"

1.      tnsf k|Zgx?sf] Ps zAbdf pQ/ lbg'xf];\ .   

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

a)      Search engine eg]sf] s] xf] < What is search engine ?

Ans: A search engine is a tool that helps users find information on the internet by searching for keywords and returning relevant web pages.

 

b)     l8lh6n d'b«f eg]sf] s] xf] < What is digital currency?

Ans: Digital currency is a type of electronic money that is stored and exchanged using computers and other digital devices.

 

c)      MS- Access  sf] kl/efiff n]Vg'xf];\ .  Define MS Access.

Ans: MS Access is a database management software created by Microsoft that allows users to store, manage, and access large amounts of data in a simple and organized way.

 

d)     Software security  eg]sf] s] xf] < What is Software security?

Ans: Software security is the protection of computer systems and applications from threats, such as hacking, virus attacks, and unauthorized access, to ensure their confidentiality, integrity, and availability.

 

e)      Cloud computing  eg]sf] s] xf] < What is Cloud computing?

Ans: Cloud computing is a technology that allows users to access and store data and applications over the internet, instead of using physical computers or servers.

 

f)      C-programming  efiffsf] s'g} b'O{ ljz]iftfx? n]Vg'xf];\ .Write any two features of C programming language?

Ans: Any two features of c programming language are:

-        C code can run on multiple platforms with minimal modifications.

-        C uses a top-down programming approach, making code easier to understand and debug.

                    

 

2.      pko'Qm k|fljlws zAb n]Vg'xf];\ .

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

a)      Ps sDkgL h;n] u|fxsx?nfO{ OG6/g]6 ;]jf k|bfg ub{5 .

A company that provides Internet service to customers. Internet Service Provider (ISP)

b)     Ps zlQmzfnL k|f]ufd h;n] sDKo'6/sf] xf8{j]o/ pks/0fx? lgoGq0f / ;dGjo ub{5 / ;ˆ6j]o/ / cg'k|of]ux? rnfpF5 .

A powerful program that controls and coordinates a computer’s hardware devices and runs software and applications. Operating System

 

3.      k"/f ?k n]Vg'xf];\ . Write the full form of the following:           [2x1=2] 

a)      SMTP- Simple Mail Transfer Protocol

b)   POS- Point Of Sale

 

Group "B"

4.      tnf lbOPsf k|Zgx?sf] 5f]6f] pQ/ n]Vg'xf];\ .

Answer the following questions in short :                           [9x2=18]

a)      Switch / Router aLrsf] leGgtf n]Vg'xf];\ . What is the difference between Switch and Router?

                 Switch

                 Router

-A switch connects devices within a local area network (LAN) and allows them to communicate with each other.

-Switch is used for local communication within a LAN

-Router connects multiple LANs to form a wide area network (WAN) and routes data packets between them.

-Router is used for communication between different LANs or networks.

 

b)     OG6/g]6sf b'O{ k|d'v k|of]ux? kl/eflift ug'{xf];\ .

Define two major uses of internet.

Ans: Any two major uses of internet are:

- The internet is used for sending and receiving emails, instant messaging, video calls, and more.

- The internet is a vast source of information and provides access to a wealth of knowledge and data.

 

c)      Data sorting  eg]sf] s] xf] < s'g} b'O{ pbfx/0f n]Vg'xf];\ .

What is data sorting. Give any two examples.

Ans: sorting is the process of arranging data in a specific order, such as alphabetically or numerically, for easier analysis and understanding.

Any two examples of data sorting are:

Alphabetical sorting: Sorting a list of names in alphabetical order, such as arranging a phonebook by last name.

 

Numerical sorting: Sorting a list of numbers in ascending or descending order, such as arranging a list of exam scores from highest to lowest.

 

d)     pbfx/0fsf ;fy cgnfOg e'QmfgL kl/eflift ug'{xf];\ .

Define online payment with example.

Ans: Online payment refers to the process of making financial transactions through the internet.

Eg: eSewa Nepal, iPay, Khalti, etc.

 

e)      Hardware security eg]sf] s] xf] < o;sf s'g} b'O{ ;'/Iff pkfox? n]Vg'xf];\ .

What is hardware security ? Write any two security measures of it.

Ans: Hardware security refers to the physical protection of computer and network devices to prevent unauthorized access, theft, and tampering.

Any two security measures of it are: Insurance and Regular Maintenance.

 

f)      Report eg]sf] s] xf] < o;sf k|of]ux? pNn]v ug'{xf];\ .  

What is report? Mention its uses.

Ans: A report in MS Access is a document that presents information in a clear and organized format.

Its Uses are:

-        A report in MS Access allows users to analyze and present data in a clear and meaningful way, providing insights into their data.

-        A report in MS Access allows users to present data in a professional and organized format, making it easier to communicate and share data with others.

g)     Data Redundancy eGgfn] s] a'em\g'x'G5 < What do you understand by Data Redundancy?

Ans: Data redundancy refers to the duplication of data within a database or system.

Data redundancy can be controlled by implementing data normalization, which is a process of organizing data in a database to minimize duplication and ensure data consistency.

 

h)     sDKo'6/df Firewall eg]sf] s] xf] < o;sf k|sf/ n]Vg'xf];\ .

What is firewall in computer. Write its type.

Ans: A firewall is a security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules.

Its Types are:

- Network Firewall: A security system placed between a private internal network and the internet to monitor and control incoming and outgoing network traffic.

 

- Host-based Firewall: A software program installed on a single computer or device to monitor and control incoming and outgoing network traffic for that specific device.

 

i)       Primary key eg]sf] s] xf] < o;sf] dxTj n]Vg'xf];\ .

 What is primary key? Write its importance.

Ans: A primary key is a unique identifier for each record in a database table.

Its importance are:

-        It reduces and control duplication of records in a table.

-        It sets the relationship between tables.

 

 

5.      tn lbOPsf] Program sf] Output dry run table ;lxt n]Vg'xf];\ .

Write down the output of the given program with dry run table. [2]

DECLARE SUB NUMBER ()

CLS

CALL NUMBER

END

SUB NUMBER

N=3:C=1

WHILE C<=5

       PRINT N

       N=N*10+3

       C=C+1

WEND

END SUB

Dry Run

variable

variable

Loop check

Output

N

C

C<=5

 

3

1

1<=5 yes

3

33

2

2<=5 yes

33

333

3

3<=5 yes

333

3333

4

4<=5 yes

3333

33333

5

5<=5 yes

33333

 

6

6<=5 no (loop exits)

 

Output

3

33

333

3333

33333

 

6.      tn lbOPsf] k|f]u|fdnfO{ ;RofP/ n]Vg'xf];\ . Re-write the given program after correcting the bug.                                                         [2]

REM    To store name and age in a sequential data file STD.DOC

OPEN STD.DOC FOR OUT AS#1

CLS

INPUT "Enter name";N

INPUT "Enter age";A

WRITE 1,N$,A

CLOSE #1

END

 

Debugged Program

REM To store name and age in a sequential data file STD.DOC

OPEN “STD.DOC” FOR OUTPUT AS#1

CLS

INPUT”Enter name”;N$

INPUT”Enter age”;A

WRITE #1,N$,A

CLOSE #1

END

7.      tn lbOPsf] k|f]u|fdnfO{ cWoog u/L lbOPsf k|Zgx?sf] pQ/ n]Vg'xf];\ . Study the following programs and answer the given questions.      [2x1=2]

DECLARE SUB question (a, b, c)

CLS

x=10: y=20 : z=15

CALL question(x,y,z)

END

SUB question(a,b,c)

a = a +10

b = b + a

c = a + b

PRINT a,b,c

END SUB

a)      olb x = 1,y = 2, z = 3 ePdf o;sf] cfp6k'6 s] x'G5 < What would be its output if x=1,y=2, z=3?

Ans: The output would be 11  13   24.

b)     k|f]u|fddf k|of]u ul/Psf jf:tljs / cf}krfl/s Kof/fld6x? n]Vg'xf];\ . Write actual and formal parameters used in the program.

Ans: Actual parameters- x,y,z

        Formal parameters-a,b,c

 

Group C

8.      lgb]{zg cg';f/ ?kfGt/ / lx;fa n]Vg'xf];\ .

Convert /Calculate as per the instruction.                    [4x1=4]

a)      (1110011010)2 = (?)8






b)     (255)10 = (?) 2


c)      (1001) 2 – (111) 2 = (?) 2


d)     (111111) 2 ÷ (111) 2


9.      a. QBASIC df 3 cf]6f gDa/ lnO{ ;jeGbf 7"nf] gDj/ function

procedure / ;jeGbf ;fgf] gDj/ sub procedure k|of]u ul/ n]Vg'xf];.

Write a program in QBASIC to display greater number using function procedure and smaller number using sub procedure among three numbers.      

 

DECLARE FUNCTION GREAT(A,B,C)

DECLARE SUB SMALL(A,B,C)

CLS

INPUT"ENTER FIRST NUMBER";A

INPUT"ENTER SECOND NUMBER";B

INPUT"ENTER THIRD NUMBER";C

PRINT"THE GREATEST NUMBER IS: ";GREAT(A,B,C)

CALL SMALL(A,B,C)

END

 

FUNCTION GREAT(A,B,C)

IF A>B AND A>C THEN

GREAT=A

ELSEIF B>A AND B>C THEN

GREAT=B

ELSE

GREAT=C

END IF

END FUNCTION

 

SUB SMALL(A,B,C)

IF A<B AND A<C THEN

PRINT"THE SMALLEST NUMBER IS ";A

ELSEIF B<A AND B<C THEN

PRINT"THE SMALLEST NUMBER IS ";B

ELSE

PRINT"THE SMALLEST NUMBER IS ";C

END IF

END SUB     

                                                         [4]

b. "Record.txt" elgg] qmlds 8f6f kmfOnn] lkmN8 zLif{sdf /f]n gDa/, gfd,

lnª\u, c+u|]hL , g]kfnL , ul0ft / sDKo'6/df 8f6f e08f/0f ul/]sf] 5 . h;sf] lnË  F’ 5 / sDKo'6/df k|fKt u/]sf] c+s () eGbf a9L 5 eg] tL ljBfyL{x?sf ;a} hfgsf/L b]vfpg] k|f]u|fd  n]Vg'xf];\ . A sequential data file called "record.txt " has stored data under the field heading Roll No., Name, Gender, English, Nepali ,Maths and Computer. Write a program to display all the information of those students whose gender is 'F' and obtained marks in computer is more than 90.            

 

OPEN ”record.txt” FOR INPUT AS #1

CLS

WHILE NOT EOF(1)

INPUT #1,R,N$,G$,E,N,M,C

IF UCASE$(G$)=”F” AND C>90 THEN

PRINT R,N$,G$,E,N,M,C

END IF

WEND

CLOSE #1

END

 

        

10.        klxnf] 10 k|fs[lts ;+Vofx? k|bz{g ug{ C-program n]Vg'xf];\ .

Write a program in C-language to display first 10 natural numbers. [4]

#include<stdio.h>

int main()

{

int i;

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

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

return 0;

}

OR

    Pp6f  C program n]Vg'xf];\ h;n] d"n /sd, b/ / ;do Ogk'6sf] ?kdf lnG5 / ;fwf/0f Jofh u0fgf ug]{5 . Write a ‘C’ program that takes principle, rate and time as input and it calculate the simple interest.  

 

#include<stdio.h>

int main()

{

float p,t,r,i;

printf("enter principal: ");

scanf("%f",&p);

printf("enter time: ");

scanf("%f",&t);

printf("enter rate: ");

scanf("%f",&r);

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

printf("simple interest is %f",i);

return 0;

}

        

*********

No comments:

Post a Comment