0% found this document useful (0 votes)
110 views5 pages

See Solutions Computer Science Pabson 2078 M

The document contains solutions to a Computer Science pre-board exam, covering topics such as email, cyber law, data types, and programming concepts. It includes definitions, advantages and disadvantages of computer networks, digital footprints, e-commerce, IoT, and DBMS, along with programming exercises in QBASIC and C. Additionally, it provides a dry run of a program and corrections for buggy code.

Uploaded by

Shekhar Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views5 pages

See Solutions Computer Science Pabson 2078 M

The document contains solutions to a Computer Science pre-board exam, covering topics such as email, cyber law, data types, and programming concepts. It includes definitions, advantages and disadvantages of computer networks, digital footprints, e-commerce, IoT, and DBMS, along with programming exercises in QBASIC and C. Additionally, it provides a dry run of a program and corrections for buggy code.

Uploaded by

Shekhar Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.

np/ SOLVED BY: DEEPAK SHRESTHA


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 the most widely used service on the Internet which sends and receives messages
electronically through the Internet.

b) What is cyber law?


Ans: The law which governs the legal issues in the cyber space regarding the internet or WWW for
digital data processing and transaction is called cyber law.

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 a 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:
1. A network connected computers can share hardware devices such as scanner, printer, hard disk,
etc.
2. Networking also provides the facility of data and software backup system.
Any two disadvantages of computer network are:
1. Computer network can be route for computer virus and malware transmission.
2. Skilled manpower is required to manage and operate computer network.

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.
1|P a g e CS SEE JEC BKT 2080 https://seeqbasicomputer.blogspot.com/
SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.np/ SOLVED BY: DEEPAK SHRESTHA
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:
 Lack of personal touch. We cannot touch the goods physically.
 We cannot do any transaction without Internet access device. So, it is heavily dependent on
Internet technologies

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:
 It reduces the human effort, so it saves a lot of time.
 Information is easily accessible from any place at any time on any device.

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:
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)What is query? Write its type.


Ans: Query is an object of database that is used to view, retrieve, change and analyze records from a
table or multiple linked tables based on specified condition.
Types of queries are: i) Select queries ii) Action queries

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


Ans: Data type is an attribute for a field that determines the type of data that can be stored in that
field. 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
2|P a g e CS SEE JEC BKT 2080 https://seeqbasicomputer.blogspot.com/
SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.np/ SOLVED BY: DEEPAK SHRESTHA
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:
A$ B = LEN (A$) I=1 TO 4 PRINT TAB(I); MID$(A$, I, B)
SCIENCE 7 1 TO 4 yes SCIENCE
5 2 TO 4 yes CIENC
3 3 TO 4 yes IEN
1 4 TO 4 yes E
-1 5 TO 4 No LOOP EXITS

OUTPUT:
SCIENCE
CIENC
IEN
E
CORRECT PROGRAM
6. Rewrite the given program after correcting the bugs. DECLARE FUNCTION REV (A)
Rem to convert the given number in reverse order CLS
DECLARE FUNCTION REV (A) INPUT "ENTER A NUMBER"; A
CLS RE=REV(A)
INPUT "ENTER A NUMBER"; A PRINT "REVERSE ="; RE
CALL REV (A) END
PRINT "REVERSE ="; RE FUNCTION REV (A)
END WHILE A<> 0
FUNCTION REV$ (A) R= A MOD 10
WHILE A<> 0 S = S * 10 + R
R= A MOD2 A = A \ 10
S = S * 10 + R WEND
A = A - 10 REV = S
WEND END FUNCTION
REV = S
END SUB

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

3|P a g e CS SEE JEC BKT 2080 https://seeqbasicomputer.blogspot.com/


SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.np/ SOLVED BY: DEEPAK SHRESTHA
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 25 A F
Binary value 0010 0101 1010 1111
(25AF)16 = (10010110101111)2

c)11110 + 10011 = 110001

d) 1110 ÷ 110 = 10

Remainder: 10

4|P a g e CS SEE JEC BKT 2080 https://seeqbasicomputer.blogspot.com/


SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.np/ SOLVED BY: DEEPAK SHRESTHA
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) FUNCTION FIRST (R)
DECLARE SUB SECOND (R) FIRST = 3.14 * R ^ 2
CLS END FUNCTION
INPUT "ENTER RADIUS"; R
PRINT " AREA OF A CIRCLE="; FIRST (R) SUB SECOND (R)
CALL SECOND (R) C = 2 * 3.14 * R
END 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> Write a C program to find the sum
int main() of first 10 natural numbers.
{ #include <stdio.h>
float p, t, r, i; int main( )
printf("Enter the principal amount : "); {
scanf("%f", &p); int i, sum = 0;
printf("Enter the number of years : "); i = 1;
scanf("%f", &t); while (i <= 10) {
printf("Enter the rate of interest : "); sum += i;
scanf("%f", &r); ++i;
i = (p * t * r) / 100; }
printf("Simple Interest = %f", i); printf("Sum = %d", sum);
return 0; return 0;
} }
or
Solved BY: Saugat Basnet

5|P a g e CS SEE JEC BKT 2080 https://seeqbasicomputer.blogspot.com/

You might also like