Friday, February 10, 2023

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

 

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



Answer the following questions in one sentence:

1.    In which communication media data transfer is the fastest?

Ans . In Fiber optic cable, data transfer is the fastest.

 

2.    What is cyber-crime?

Ans. Cyber-crime is illegal or malicious activities carried out using the internet or other forms of digital communication technology.

 

3.    What is topology?

Ans. Topology refers to the physical or logical arrangement of devices in a network.

 

4.    What is primary key?

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

 

5.    . Write the types of parameters?

Ans. The types of parameters are actual and formal parameters.

 

6.    How many keywords are in c language?

Ans. There are 32 keywords in c language.

 

 

 

 

 

A. Write appropriate technical term for the following:

 

1.    A main computer of a computer network.  Server

 

2.    A malicious program of computer that damages data and Software. Malware

 

3.Write the full form of the following:

a) WLAN – Wireless Local Area Network

b) POP – Post Office Protocol

 

B. Answer the following questions.

1.What is data communication? Write the basic elements of data communication.

Ans. Data communication refers to the transfer of data or information from one place to another through a communication channel.

The basic elements of data communication are: sender, receiver, message or data, communication channel and protocol.

 

 

2.What is computer ethics? Write any two commandments of computer ethics.

Ans. Computer ethics is the study of moral principles and values related to the use of technology and computers.

Two commandments of computer ethics are:

-        Do not use a computer to harm other user.

-        Do not search the file or record of other people.

 

3.What is digital citizenship? List out the major themes of digital citizenship.

Ans. Digital citizenship refers to responsible and ethical use of technology, including online safety, digital literacy, and respectful online behavior.

Major themes of digital citizenship are :

- Protecting personal information and being aware of online dangers.

- Understanding effective and ethical use of technology.

- Ensuring equal access to technology for all individuals.

- Understanding and following laws and policies related to technology.

4.What is online payment? Write some different modes of electronic payment.

Ans. Online payment refers to the transfer of funds over the internet for the purpose of purchasing goods or services.

 

Some modes of electronic payment are:

- Credit/debit cards allow payment through card networks.

- Mobile payment systems use NFC technology or QR codes for payment through a mobile device.

- Online banking enables payments through a bank's website or mobile app.

- E-wallets are digital wallets for quick, convenient payment.

5.What is hardware security? Write the role of Ups in hardware security.

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

UPS protects hardware security by providing backup power to keep devices running during power outages and prevent data loss.

 

6.What is database? Write any two examples.

Ans. A database is a collection of organized data stored and managed on a computer system.

Two examples of database are : Dictionary and Marks ledger.

 

7.What is table in Access? In how many ways we can create a table in Ms Access?

Ans. A table in Microsoft Access is a database component that stores data in rows and columns, allowing for organization and manipulation of data.

Ways to create a table in Ms Access are :

- Using the Table Design View

- Using the Table Wizard

- Creating a table from a query

8.What is action query? Write its type.

Ans. An action query is a type of query in Microsoft Access that performs specific actions, such as adding, modifying, deleting, or creating a table, on data in a database.

It’s types are :

- Append Query: Adds new records to an existing table.

- Update Query: Modifies existing records in a table.

- Delete Query: Deletes records from a table.

- Make Table Query: Creates a new table based on data from one or more tables.

9.Name any four objects of Ms-Access .

Ans. Four objects of Ms-Access are:

-        Table

-        Query

-        Form

-        Report

 

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

 

DECLARE SUB SERI()

CLS

CALL SERI

END

 

SUB SERI

X# = 1

FOR I = 1 TO 5

PRINT X# * X#

X# = X# * 10 +1

NEXT I

END SUB

 

Variable

Variable

Loop Check

Output

X#

i

1 To 5

 

1

1

1 to 5 ‘yes’

1

11

2

2 to 5 ‘yes’

121

111

3

3 to 5 ‘yes’

12321

1111

4

4 to 5 ‘yes’

1234321

11111

5

5 to 5 ‘yes’

123454321

111111

6

6 to 5 ‘no’

 

 

 

Loop exits

 

 

 

Output

1

121

12321

1234321

123454321

 

D. Rewrite the given program after correcting the bugs.

 

REM to create sequential data file "record.dat" to enter some records.

CLS OPEN "record.dat" FOR INPUT AS #1

UP:

INPUT "ENTER NAME";N$

INPUT "ENTER ADDRESS";A$

INPUT "ENTER PHONE NUMBER";PH

WRITE #2, N$,A$,PH

INPUT "Do you want to continue(y/n)?";an

IF LCASE(an$)="y" THEN GOTO UP

CLOSE #1

END

 

Debugged program

REM to create sequential data file "record.dat" to enter some records.

CLS

OPEN "record.dat" FOR OUTPUT AS #1

UP:

INPUT "ENTER NAME";N$

INPUT "ENTER ADDRESS";A$

INPUT "ENTER PHONE NUMBER";PH

WRITE #1, N$,A$,PH

INPUT "Do you want to continue(y/n)?";an$

IF LCASE$(an$)="y" THEN GOTO UP

CLOSE #1

END

 

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

DECLARE FUNCTION TEST (A)

X = 10

Z = TEST (X)

PRINT Z

END

 

FUNCTION TEST (B)

 FOR I = 1 TO B

 S = S + I * I

NEXT I

TEST= S

END FUNCTION.

 

Questions:

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

Ans. 1 parameter is used in the above program.

b)   How many times does the statement S=S + I * I will be executed in the above program?

Ans. The statement S= S + I * I will be executed 10 times.

 

F. Convert as per instructions.

a) (110111)2 into (?)8

Ans.

Binary digits : 110111

Grouping 3 digits : 110 111

Octal equivalent : 6 7

 

∴ (110111)2 = (67)8

 

b)(25AF)16 into (?)10

Ans.

 

= 2  163 + 5×162 + 10×161 + 15×160

= 2 * 4096 + 5*256 + 10*16 + 15*1

= 8192 + 1280 + 160 + 15

= 9647

(25AF)16 into (9647)10

c)110110 + 100011

Ans.


d)1110001 ÷ 110

Ans.

 




  

G.

i. Write a program in QBasic that ask the radius and height of a cylinder and calculate the volume and curve surface area. Create a user-defined function to calculate volume and sub-procedure to calculate curve surface area of a cylinder. [Hints: V=Ï€r2 h, CSA=2Ï€rh]

Ans.

DECLARE FUNCTION VOL(R,H)

DECLARE SUB CSA(R,H)

CLS

INPUT “ENTER THE RADIUS”;R

INPUT “ENTER THE HEIGHT”;H

PRINT “THE VOLUME OF CYLINDER IS ”;VOL(R,H)

CALL CSA(R,H)

END

 

FUNCTION VOL(R,H)

VOL = 3.14*R*R*H

END FUNCTION

SUB CSA(R,H)

C = 2*3.14*R*H

PRINT “THE CURVE SURFACE AREA OF CYLINDER IS ”; C

END SUB

 

ii. A sequential data file called "Emp.dat" has stored data under the field heading name, post and salary. Write a program to display the records of those employees whose salary is more than Rs. 25000.

Ans.

OPEN “Emp.dat” FOR INPUT AS #1

CLS

WHILE NOT EOF(1)

INPUT #1,N$,P$,S

IF S > 25000 THEN PRINT N$,P$,S

WEND

CLOSE #1

END

 

H. Write a program in C language to ask to enter two numbers and find out sum and product.

Ans.

#include<stdio.h>

int main()

{

Int a,b,s,p;

printf(“enter first number “);

scanf(“%d”,&a);

printf(“enter second number ”);

scanf(“%d”, &b);

s = a + b;

p = a * b;

printf(“the sum of two numbers is %d”,s);

printf(“the product of two numbers is %d”,p);

return 0;

}

 

 

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

Ans.

#include<stdio.h>

Int main()

{

Int n;

printf(“enter any number”);

scanf(“%d”,&n);

if(n%2 == 0)

printf(“The given number is even”);

else

printf(“The given number is odd”);

return 0;

}


No comments:

Post a Comment