Monday, March 21, 2022

PABSON SEE PRE BOARD EXAM - 2078 [MORANG]

 PABSON

SEE PRE BOARD EXAM - 2078

SUBJECT: COMPUTER SCIENCE

1. Answer the following question in one sentence.

a)      What is an email?

Ans: E-mail is a method of exchanging messages between people using electronic devices.

b)      What is cyber law?

Ans: Cyber law is the part of the overall legal system that deals with the internet, cyber space and their respective legal issues.

c)      What is the field size of yes/no field?

Ans: the field size of YES/NO field is 1 bit.

d)      Write any two objects of ms access.

Ans: any two objects of ms access are i) tables      ii) queries.

e)      What is module?

Ans:  module is a block of statement that solves particular problem.

f)       Write any two data types of C language.

Ans: any two data types of C language are int and char.

2. write appropriate technical term for the following.

a) business through internet.    E- Commerce

b) A types of network in which each computer can act as a server as well as client.   Peer to peer netwrok

c) a collective online communications channels dedicated to community based input, interaction, content sharing and collaboration. Social media

d) the smallest unit to represent information on quantum computer. Qubit (quantum bit)

 

3. write the full form of the following.

B2B = Business to Business

FTP = File Transfer Protocol

ICT = Information and Communication Technology

LAN = Local Area Network

 

Group - B

4. Answer the following questions.

a) Write any two advantages and disadvantages of computer network.

Ans: any two advantages of computer network are:

       i.          Convenient resource sharing

      ii.          Great storage capacity and reduced cost.

Any two disadvantages of computer network are:

       i.          Lack of robustness

      ii.          Spread of computer virus

b) What is digital footprint? Write any two tips to maintain digital reputation.

Ans:  a digital footprint is a trail of data you create while using the internet.

Any two tips to maintain digital reputation are:

       i.          Be transparent

      ii.          Respond to every review

c) What is password policy? Write any two important criteria for creating strong password.

Ans: A password policy defines the password strength rules that are used to determine whether a new password is valid.

Any two important criteria for creating strong password are:

       i.          Do not keep a password which can be easily guessed such as date of birth, nickname etc.

      ii.          Keep changing you password regularly.

d) What is e-commerce? Write any two disadvantages of e-commerce.

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

Any two disadvantages of e-commerce are:

       i.          No guarantee of product quality.

      ii.          Technical failure may affect the business system.

e) What is IoT? Write any two advantages of it.

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

Any two advantages of IoT are:

       I.          Accessing information is easy; youcan control a devices that is mile apart in real time.

     II.          Communication between the connected devices becomes more transparent and easier.

f) What is DBMS? Write any two examples.

Ans: DBMS is a software which helps to extract , view and manipulate data in an organized way.

Any two examples of DBMS are: i) Oracle               ii) MS - Access

g) What is MS Access? Write any two advantages of it.

Ans: MS Access is a relational database management system which is used to store and manipulate large volumes of data in the form of table.

Any two advantages of MS Access are:

       i.          Easy to integrate

      ii.          Easy to share data

h)What is query? Write its type.

Ans: A query is an access objects used to view, analyze, or modify data.

Types of queries are: i) Select queries        ii) Action queries

i)What is data type? Write some data types of ms access.

Ans: Data types are the building blocks of databases.  Some data types of ms access are: i) Number                ii) date/time        iii) currency         iv) autonumber

 

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

DECLARE SUB SERI ( )

CLS

CALL SERI

END

SUB SERI

               A$ = "SCIENCE"

               B = LEN (A$)

               FOR I = 1 TO 4

                              PRINT TAB(I); MID$(A$, I, B)

                              B =B-2

               NEXT I

END SUB

DRY RUN TABLE:

VARIABLE

VARIABLE

VARIABLE

OUTPUT

A$

B

I

 

SCIENCE

7

1

SCIENCE

 

5

2

   CIENC

 

3

3

     IEN

 

1

4

       E

 

-1

5  

LOOP EXITS

 

OUTPUT:

SCIENCE

   CIENC

     IEN

      E

6. Rewrite the given program after correcting the bugs.

Rem to convert the given number in reverse order

DECLARE FUNCTION REV (A)

CLS

INPUT "ENTER A NUMBER"; A

CALL REV (A)

PRINT "REVERSE ="; RE

END

FUNCTION REV$ (A)

               WHILE A<> 0

                              R= A MOD2

                              S = S * 10 + R

                              A = A - 10

               WEND

               REV = S

END SUB

CORRECT PROGRAM

DECLARE FUNCTION REV (A)

CLS

INPUT "ENTER A NUMBER"; A

RE=REV(A)

PRINT "REVERSE ="; RE

END

FUNCTION REV (A)

               WHILE A<> 0

                              R= A MOD 10

                              S = S * 10 + R

                              A = A \ 10

               WEND

               REV = S

END FUNCTION

 

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

CLS

OPEN "INFO.DAT" FOR INPUT AS #5

TOP:

INPUT "ENTER NAME"; N$

INPUT "ENTER ADDRESS";A$

INPUT "ENTER PHONE NUMBER";P

WRITE #5, N$, A$, P

INPUT "DO YOU WANT TO CONTINUE (Y/N)?"; AN$

IF UCASE$ (AN$) = "Y" THEN GOTO TOP

CLOSE #5

END

Questions:

a)      List the variables used in above program.

Ans: variables used in above programs are: A$, P, N$, AN$.

b)      What is the name of data file used in above program?

Ans: INFO.DAT is the name of data file used in above program.

Group - C

8. Convert / calculate as per the instruction:

a) (110111)2 into (decimal)

               = 1 * 25 + 1 * 24 + 0 * 23 + 1 * 22 + 1 * 21 + 1 * 20

               = 32 + 16 + 0+ 4 + 2 + 1

               = 55

b)(25AF)16 into (Binary)

                              Hexadecimal value       2 5             A             F

                              Binary value                  0010           0101      1010      1111

        (25AF)16 = (10010110101111)2

c)11110 + 10011 = 110001

d) 1110 ÷ 110 = 10 Remainder: 10

 

9. Write a program in QBASIC that ask the radius of circle. Write a program to calculate the area and circumference of a circle. Create a user defined function first (r) to calculate area and sub procedure second (r) to calculate circumference of a circle.

Ans:

DECLARE FUNCTION FIRST (R)

DECLARE SUB SECOND (R)

CLS

INPUT "ENTER RADIUS"; R

PRINT " AREA OF A CIRCLE="; FIRST (R)

CALL SECOND (R)

END

 

FUNCTION FIRST (R)

FIRST = 3.14 * R ^ 2

END FUNCTION

 

SUB SECOND (R)

C = 2 * 3.14 * R

PRINT " CIRCUMFERENCE OF CIRCLE =" ; C

END SUB

 

10. Write a program to update the rate by increasing 10% from a sequential data file "Data.dat" that store item name, rate and quantity.

 

OPEN "DATA.DAT" FOR INPUT AS#1

OPEN "TEMP.DAT" FOR OUTPUT AS #2

CLS

PRINT "DATA UPDATED BY INCREASING 10%"

PRINT "ITEM NAME", "RATE", "QUANTITY"

WHILE NOT EOF (1)

               INPUT #1, N$, R, Q

               R1 = R + 10/100 * R

               WRITE #2, N$, R1, Q

WEND

CLOSE #1, #2

KILL "DATA.DAT"

NAME "TEMP.DAT" AS "DATA.DAT"

END

 

10. Write a program in c language to calculate simple interest.

 

 #include <stdio.h>

#include <conio.h>

int main()

{

    float p, t, r, i;

    printf("Enter the principal amount : ");

    scanf("%f", &p);

    printf("Enter the number of years : ");

    scanf("%f", &t);

    printf("Enter the rate of interest : ");

    scanf("%f", &r);

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

    printf("Simple Interest = %f", i);

    return 0;

}

 

or

Write a C program to find the sum of first 10 natural numbers.

#include <stdio.h>

int main()

 {

    int i, sum = 0;

    i = 1;

    while (i <= 10) {

        sum += i;

        ++i;

    }

 

    printf("Sum = %d", sum);

    return 0;

}


Solved  BY: Saugat Basnet

No comments:

Post a Comment