0% found this document useful (0 votes)
91 views6 pages

See Solutions Computer Science Jec BKT See 2079

The document provides solutions to a computer science examination, covering various topics such as e-mail, cyber law, bandwidth, data types in MS-Access, and programming concepts in QBASIC and C. It includes definitions, advantages, and examples related to e-commerce, IoT, DBMS, and queries. Additionally, it contains programming exercises and their outputs, along with debugging tasks and calculations in binary and hexadecimal systems.

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)
91 views6 pages

See Solutions Computer Science Jec BKT See 2079

The document provides solutions to a computer science examination, covering various topics such as e-mail, cyber law, bandwidth, data types in MS-Access, and programming concepts in QBASIC and C. It includes definitions, advantages, and examples related to e-commerce, IoT, DBMS, and queries. Additionally, it contains programming exercises and their outputs, along with debugging tasks and calculations in binary and hexadecimal systems.

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

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

np/ SOLVED BY: DEEPAK SHRESTHA


10. JOINT EXAMINATION BOARD (PABSON BHAKTAPUR) 2079
Group A (10 Marks)

(a) What is an e-mail?


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?


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 bandwidth?


The amount of data that can be carried from one point to another in a given time period is called bandwidth.

(d) Write any two data types of MS-Access.


Any two data type of MS Access are Date/Time and Currency

(e) What is parameters?


Parameters are variables which are used to specify or declare types of data to be passed to the procedures
either sub or function

(f) What is C?
C Language is a high-level structured programming language which is used to develop system software.

2. Write appropriate technical term for the following


(a) Law that governs the legal issues of cyberspace. Cyber Law
(b) Business through internet. E-commerce

3. Write the full form of the following:


UTP – Unshielded Twisted Pair
IoT – Internet of Things

4. Answer the following questions:


(a) Define mode of communication.
Data transmission mode is the way of transmission of data from one location to another.
There are three types of transmission mode:
Simplex mode
Simplex mode is the transmission of data and information that takes place in only one direction. It is a
unidirectional mode of data transmission.
Radio, newspaper, television broadcasting, books etc. are examples of simplex mode.
Half duplex mode
Half-duplex is the transmission of data and information that flows in both directions but only one direction
at a time.
Walky-talky and wireless handset are examples of half-duplex mode.
Full duplex mode
Full duplex mode is the transmission of data and information that flows in both direction simultaneously on
the transmission path.
Mobile and landline phones are examples of full duplex mode

(b) What is digital footprint? Write any two tips to maintain digital reputation.
A digital footprint is the trail of data and information left behind by an individual's online activities which
includes social media posts, website visits, online purchases, and other digital engagements.
Any two tips to maintain digital reputation are:
1|P a g e CS PABSON BKT JEC 2079 https://seeqbasicomputer.blogspot.com/
SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.np/ SOLVED BY: DEEPAK SHRESTHA
Be Mindful of What You Share: Always think before posting anything online.
Regularly Review and Update Privacy Settings: Frequently check the privacy settings on your
social media accounts and other online platforms.

(c) What is password Policy? Write any two important criteria for creating strong password.
A password policy is a set of rules or guidelines designed to ensure that passwords are secure.
Any two important criteria for creating strong password are
 Don't use easily guessable the name of a pet, child, family member, birthdays, birthplace, name of a
favourite holiday.
 Mix characters, numbers and symbols. Also, mix small and capital letters.

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


E E-commerce, or electronic commerce, refers to the buying and selling of goods and services over the
internet.
Advantages of E-commerce
 Faster buying/selling procedure, as well as easy to find products.
 There are no geographical limitations, can deliver service globally.

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


Internet of Things (IoT) is a network of physical objects embedded with sensors, software, and other
technologies, allowing them to connect to the internet and communicate with each other.
Advantages of Internet of Things (IoT)
 It enables convenient control of home appliances.
 Information is easily accessible from any place at any time on any device.

(f) What is DBMS? Write any two examples.


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

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


MS-Access is a relational database management system developed by Microsoft Corporation which is used
to store and manipulates large volume of data in multiple tables.

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.


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.
Its types are:
Select query is a type of query which is used to select and display the relevant data from the
database.
Action query is a query that makes changes to or removes many records in just one operation. Types
of action query are Update, Delete, Append and Make Table query.

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


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: Text, Memo, Number, Currency etc.

2 k. Write the output of the following program.


2|P a g e CS PABSON BKT JEC 2079 https://seeqbasicomputer.blogspot.com/
SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.np/ SOLVED BY: DEEPAK SHRESTHA

DECLARE SUB seri()


CLS
CALL seri
END
SUB seri

a$="KATHMANDU”
b=LEN(a$)
FOR I=1 TO 5
PRINT TAB(I); MID$(a$, i, b)
b=b-2
NEXT I
END SUB

a$ b=LEN(a$) I=1 TO 5 PRINT TAB(I); b=b-2


MIDS(a$, i, b)
KATHMANDU 9 1 TO 5 yes KATHMANDU 9-2=7
2 TO 5 yes ATHMAND 7-2=5
3 TO 5 yes THMAN 5-2=3
4 TO 5 yes HMA 3-2=1
5 TO 5 yes M 2-1=1
6 TO 5 No

The output of the program is:


KATHMANDU
ATHMAND
THMAN
HMA
M

J. Rewrite the following program after correcting it.


Rem To print only class 10 record from "student.dat"
CLS
OPEN "T", #2, "Student.Dat"
WHILE NOT EOF (#2)
WRITE#2, N$, C,R
IF C = 10 THEN
DISPLAY N$, C, R
END IF
NEXT
CLOSE #2
END

Debugged Program
Rem To print only class 10 record from "student.dat"
CLS
OPEN "T", #2, "Student.Dat"
WHILE NOT EOF (2)
INPUT#2, N$, C,R
IF C = 10 THEN

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


SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.np/ SOLVED BY: DEEPAK SHRESTHA
PRINT N$, C, R
END IF
WEND
CLOSE #2
END

(1) Read the following program and answer the questions given below.
DECLARE FUNCTION TEST (X)
CLS
Y = 100
Z = TEST (Y)
PRINT Z
END
FUNCTION TEST (A)
FOR I = 1 TO A
S=S+I
NEXT I
TEST = S
END FUNCTION

(a) List the different parameter used in the above program with their types.
Formal Parameters are A and X
Actual parameter is Y
(b) List the different operators used in the above program with their types.
Arithmetic operator is +
Relational operator is =

5. Convert/Calculate as per the instruction:


(a) (110111)2 into (Decimal)
= (1 × 2⁵) + (1 × 2⁴) + (0 × 2³) + (1 × 2²) + (1 × 2¹) + (1 × 2⁰)
=1 × 32 + 1 × 16 + 0 × 8 + 1 × 4 + 1 × 2 + 1 × 1
= 32+16+0+4+2+1
= (55)₁₀
(110111)₂ = (55)₁₀
b) (25AF)16 into (Binary)
Convert each hex digit to 4 binary digits (see conversion table below):
25AF
=25AF
=
= 0010010110101111
Hexadecimal digit 2 5 A F
Binary Equivalent value 0010 0101 1010 1111
(25AF)16 into (001001011010111)

(c) 11110+10011
11110
+10011
0110001
11110 + 10011 = 0110001

(d) 1110110
110 ) 1110 ( 10
4|P a g e CS PABSON BKT JEC 2079 https://seeqbasicomputer.blogspot.com/
SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.np/ SOLVED BY: DEEPAK SHRESTHA
-110
10
-0
10
Quotient – 10
Remainder = 10
Group C (16 Marks)

6 . (a) Write a program in QBASIC that asks length,breadth and height of a room and calculates its
area and volume. Create a user-defined
function to calculate area and sub-program to calculate volume. [Hints: Area = LxB, Volume = L x B
x H)

DECLARE FUNCTION AREA(L,B)


DECLARE SUB VOL(L,B,H)
CLS
INPUT “Enter Length”; L
INPUT “Enter Breadth”; B
INPUT “Enter Height”; H
PRINT “Area of room=”; AREA(L,B)
CALL VOL(L,B,H)
END

FUNCTION AREA(L,B)
AREA = L * B
END FUNCTION

SUB VOL(L,B,H)
V=L*B*H
PRINT “Volume of Room=”; V
END SUB

(b) 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
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

Write a program in C language to ask to enter base and height of a triangle then calculate its area.
#include<stdio.h>
#include<conio.h>
int main()
{
int b,h;
5|P a g e CS PABSON BKT JEC 2079 https://seeqbasicomputer.blogspot.com/
SEE COMPUTER SCIENCE SET SOLUTIONS 2081 https://deepak2081.com.np/ SOLVED BY: DEEPAK SHRESTHA
float a;
printf("Enter base: ");
scanf("%d", &b);
printf("Enter height: ");
scanf("%d", &h);
a=(b*h)/2;
printf("Area of triangle= %.2f", a);
return 0;
}

Or,

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


#include <stdio.h>
int main()
{
int j, sum = 0;
printf("The first 10 natural number is :\n");
for (j = 1; j <= 10; j++)
{
sum = sum + j;
printf("%d ",j);
}
printf("\nThe Sum is : %d\n", sum);
}

6|P a g e CS PABSON BKT JEC 2079 https://seeqbasicomputer.blogspot.com/

You might also like