Tuesday, January 14, 2025

PABSON BOARD EXAMINATION 2079 [SET A]

 

PABSON BOARD EXAMINATION 2079 [SET A]

Group "A"

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

a)  Define database.

Ans: A database is a collection of systematically organized inter-related data that stores, organizes, and retrieves data.

 

b) What will be the value of ‘y’ in given C expression, y=64%5?

Ans: The value of y will be 4.

 

c) What is digital signature?

Ans: A digital signature is a security mechanism that attaches a code to an electronic message, confirming its authenticity.

 

d)     What is hardware security?

Ans: Hardware security refers to the protection of the physical components of a computer or electronic device from unauthorized access, theft, or damage.

 

e)       What is global variable.

Ans: A global variable is a variable that can be accessed from any module or procedure within a program.

 

f)      Define IP address.

Ans: IP address is a unique numerical identifier for every device or network that connects to the internet.

 

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

a)      The money that is exchanged electrically. Digital currency

b)     A computer which provides the services to the other computer in a network. Server

 

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

a)   SMPS- Switched Mode Power Supply

b)   ISP- Internet Service Provider

 

Group "B"

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

a)      What is network topology? List them.

                Ans: Network topology refers to the physical or logical arrangement of network components. 

Its types are: bus topology, ring topology and star topology

 

b)     Define two major uses of internet.

Ans: Any two major uses of internet are:

Communication: Sending emails, chatting, and video conferencing with others.

Entertainment: Watching videos, listening to music, and playing games online.

 

c)      What is data sorting. Give any two examples.

Ans: 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

Examples include alphabetical sorting of names and numerical sorting of exam scores.

 

d)     Define online payment with example.

Ans: Online payment refers to the payment for buying goods or services through the Internet using different online payment gateway.

Eg: eSewa Nepal, iPay, Khalti, etc.

 e) Write any two features of C programming language?

Ans: Any two features of c programming language are:

a)     Structured Programming: C supports breaking down programs into functions, making the code easier to manage and understand.

b)     Portability: C code can be compiled and executed on different systems with minimal modifications.

 

f)      What is report? Mention its uses.

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

Its Uses are:

·         Reports provide a formatted presentation of data that is easy to read and understand.

·         Reports enable users to summarize, analyze, and visualize data in meaningful ways.

 

g. Write the difference between data and information.

Data

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

For example, Aaradhya, 1000, account, balance etc. are raw data individually does not give any meaning.

For example, Aaradhya has 1000 balance in his bank account gives significant meaning

 

h. What is firewall in computer. Write its type.

Ans: A firewall is a security system that monitors and controls incoming and outgoing network traffic to protect systems from unauthorized access and cyber threats.

Its Types are:

·  Hardware Firewall: A physical device that sits between a network and its internet connection, providing centralized protection by filtering and monitoring network traffic.

·  Software Firewall: A program installed on individual computers or servers that controls and monitors network traffic, providing protection from unauthorized access and threats.

 

i. Define DBMS with example.

DBMS is a computerized system that stores data, processes them and provides information in an organized form. E.g. MS-Access, Oracle, MySQL, Fox Pro etc

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

DECLARE SUB PATTERN(N)

CALL PATTERN

END

SUB PATTERN

A=2

FOR I=1 TO 5

PRINT A;

A=A+2

NEXT I

END SUB

Dry Run

A

I=1 TO 5

PRINT A;

A=A+2

2

1 TO 5 YES

2

2+2=4

4

2 TO 5 YES

4

4+2=6

6

3 TO 5 YES

6

6+2=8

8

4 TO 5 YES

8

8+2=10

10

5 TO 5 YES

10

10+2=12

12

6 TO 5 NO

Output

2 4 6 8 10

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

 

FUNCTION SUM(M, N)

REM to print sum of two numbers

A=6

B=7

DISPLAY sum(M,N)

END

 

FUNCTION SUM(M,N)

S=M+N

S=SUM

END FUNCTION

Debugged Program

DECLARE FUNCTION SUM(M, N)

REM to print sum of two numbers

A=6

B=7

PRINT sum(A,B)

END

 

FUNCTION SUM(M,N)

S=M+N

SUM=S

END FUNCTION

 

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

DECLARE FUNCTION ODDEVEN$(N)

CLS

INPUT” Enter a number”; N

PRINT “Number is”; ODDEVEN$(N)

END

 

FUNCTION ODDEVEN$(N)

IF N MOD 2=0 THEN

MS$=” even”

ELSE

MS$=” odd”

END IF

ODDEVEN$=MS$

END FUNCTION

a)      What is the main objective of above program?

Ans: The main objective of the above program is to check whether the input number is even or odd.

b)      What is the use of MOD in above program?

Ans: The MOD operator (modulus) is used to find the remainder of a division between two numbers.



Group C

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

a)      (1110001110)2 = (?)8

Paired Binary Digit

001

110

001

110

Binary Equivalent value

1

6

1

6

(1110001110)2 = (1616)8

 

b)     (111)10 = (?) 2

2

111

Remainder

2

55

1

2

27

1

2

13

1

2

6

1

2

3

0

2

1

1

2

0

1

 

 

(111)10 = (1101111) 2

 

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

 

 

 1

0

0

0

 

 -

1

1

1

 

 0

0

0

1

(1000) 2 – (111) 2 = (0001) 2

 

d)     (111111) 2 ÷ (111) 2

 

111)

 111111(

1001

 

-111

 

 

000111

 

 

     -111

 

 

      000

 

 

Quotient = 1001

 Remainder = 0



9. a. 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     

 

b.  Create a sequential data file to store name and mark obtained in English, Math and Science subjects for few students.            

 OPEN “std.dat” FOR OUTPUT AS #1

DO

CLS
INPUT “Enter name”; N$

INPUT “Enter marks in English”; E

INPUT “Enter marks in math”; M

INPUT “Enter marks in science”; S

WRITE #1, N$, E, M, S

INPUT “Do you want to continue(Y/N)”; CH$

LOOP WHILE UCASE$(CH$)=”Y”

CLOSE #1

END

10. 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

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;

}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home