PABSON is the organization of private school in Nepal. PABSON annually conducts pre-board examination for SEE appearing students of class 10. The exam is mostly conducted one month prior to the SEE examination. Here is the solution of PABSON computer science solution of pre-board examination. The full marks for the exam is 50 and the pass mark is 20. The time duration for the exam is one hour thirty minutes.
a) What is an E-mail?
E-mail stands for Electronic Mail which is the process of exchanging messages through internet using unique address.
b) What is cyber law?
The law which governs the cyber space to eradicate cyber crimes and legalize electronic and financial transaction done through electronic medium.
c) What is the field size of Yes/No Field?
The field size of Yes/No Field is 1 Bit.
d) Write any two objects of ms access.
The two objects of MS-Access are: table and form
e) What is module?
The small functional and manageable part of the program is called module.
f) Write any two data types of C language.
The two data types of C language are: int and float
a) Business through Internet.
E-commerce
b) A type of network in which each computer act as server as well as client.
Peer-to-Peer
c) A collective online communications channels dedicated to community base input, interaction, content-sharing and collaboration.
Social media
d) The smallest unit to represent information on quantum computer.
Quantum Bit
B2B: Business 2 Business
FTP: File Transfer Protocol
ICT: Information Communication and Technology
LAN: Local Area Network
a) Write any two advantages and disadvantages of computer network.
The two advantages of computer network are:
The two disadvantages of computer network are:
b) What is digital footprints? Write two tips to maintain digital reputation.
The traces left by the user through their online or offline activity is called digital footprints. In order to maintain digital reputation:
c) What is password policy? Write any two important criteria for creating strong password.
A set of rules which is designed to increase computer and information security by encouraging computer users to use strong passwords. The two criteria for creating strong password are:
d) What is e-commerce? Write any two advantages of e-commerce?
The process of buying and selling goods and services through internet is called e-commerce. The two advantages of e-commerce are:
e) What is IOT? Write any two advantages of it.
IOT is the network of electronic devices which is capable of communicating with its environment and are built with sensors, hardware and software. The two advantage are:
f) What is DBMS? Write any two examples of it.
DBMS stands for Database Management System which is an application for systematic and scientific analysis, interpretation, storing and retrieving data. The two example.
MS-Access and MY SQL
g) What is MS Access? Write any two advantages of it.
MS Access is the DBMS software developed by Microsoft in order to analyze, interpret, store and retrieve data. The two advantages of MS-Access are:
h) What is query? Write its type.
Query is the object of DBMS which is used to retrieve or access data from the database as per the requirement of the user. It types are:
i) What is data type? Write some data types of MS-Access.
The classification that specifies which types of values can be stored in a particular field is called data types. Some data types of MS-Access are:
Text, Memo, OLE, Yes/No
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
Solution:
a$ | b = LEN(a$) | i | i<=4 |
SCIENCE | 7 | 1 | 1<=4(T) |
7-2=5 | 2 | 2<=4(T) | |
5-2=3 | 3 | 3<=4(T) | |
3-2=1 | 4 | 4<=4(T) | |
1-2=-1 | 5 | 5<=4(F) |
Output is:
SCIENCE
CIENC
IEN
E
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 MOD 2
s = s*10+r
a = a/10
WEND
rev = s
END SUB
After correcting bugs:
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
CLS
OPEN “info.dat” FOR OUTPUT 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 tup
CLOSE #5
END
a) List any two variables used in above program.
The two variable used in above program are:
b) What is the name of data file used in above program?
The name of data file used in above program is: “info.dat”
A) (110111) Binary into Decimal
32+16+0+4+2+1
45
Therefore, (110111) Binary = (45) Decimal
B) (25AF) Hexadecimal into Binary
We know that,
2 = 0010
5 = 0101
A = 1010
F = 1111
Therefore, (25AF) Hexadecimal = (0010010110101111) Binary
C) (11110) + (10011)
1 1 1 1 0
+ 1 0 0 1 1
= 1 1 0 0 0 1
D) (1110) / (110)
110 ) 1 1 1 0 ( 10
- 1 1 0
1 0
- 0
1 0
Therefore, Quotient = 10 and Remainder = 10
9) A) Write a program in basic that ask the radius of a circle and calculate its area and circumference of a circle. Create a user-defined function FIRST(r) to calculate area and su-procedure SECOND(r) to calculate circumference of a circle. [4]
Declare function FIRST(r)
Declare sub SECOND(r)
Cls
Input “Enter radius”; r
x = FIRST(r)
Print “Area is”; x
CALL SECOND(r)
End
Function FIRST(r)
a = 3.14*r*r
FIRST = a
End function
Sub SECOND(r)
C = 2*3.14*r
PRINT “Circumference is “; C
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. [4]
OPEN “Data.dat” FOR input AS #1
OPEN “temp.dat” FOR output AS #2
WHILE NOT EOF (1)
INPUT #1, n$, r, q
r = r + (0.1*r)
WRITE #2, n$, r, 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 [4]
#include <stdio.h>
#include <conio.h>
void main( )
{
float p, t, r, i;
printf(“Enter principal time and rate”);
scanf(“%f %f %f”, &p, &t, &r);
i = (p*t*r)/100;
printf(“Interest is %f”, i);
getch( );
}
OR
Write a C program to find sum of first 10 natural numbers.
#include <stdio.h>
#include <conio.h>
void main( )
{
int i, s=0;
for(i=0; i<=10; i++)
{
s=s+i;
}
printf(“Sum is %d”, s);
getch( );
}
Click here for class 10 Computer Science full notes