PABSON PALPA
Third Terminal Examination-2080
Subject: Computer Science
Class 10
Attempt
all questions
Time
2HRS
Group
'A'
1.
Answer the following questions in one sentence: [6x1=6]
a What
is analog signal?
Ans: An analog
signal refers to a continuous electrical signal that varies over time and
represents data as a continuous waveform.
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 information security?
Ans: Information
security is the practice of preventing unauthorized access, use,
disclosure, modification, recording or
destruction of information.
d. What
is online payment?
Ans: Online
payment refers to the payment for buying goods or services
through the Internet using different online payment gateway.
What is
primary key?
Ans: A
primary key is a field or combination of fields in a table that uniquely
identifies each record, and is used to establish relationships between tables
and enforce data integrity.
f.
Define validation text.
Ans: Validation Text is
a field property which displays an error message that appears if the data
entered is invalid according to the specified validation rule.
2. Write
appropriate technical term for the following: [2x1=2]
a. it is
the process of converting plain text to cipher text. Encryption
b.
Software require for browsing and surfing content on the WWW. Web Browser
3. Write
the full form of the following:
a VOIP –
Voice
Over Internet Protocol
b. IOT –
Internet
of Things
Group 'B'[9x2=18]
4.
Answer the following questions:[2x1=2]
a. What
is computer network? Write any two advantages of it.
Ans: Computer network
is a group of two or more computers and devices connected to each other through
wired or wireless media to exchange data and information and share hardware,
software and other resources.
Any two advantages
of Computer Network are
1. A network
connected computers can share hardware devices such as scanner, printer, hard
disk, etc.
2. It can
communicate and share information all over the world through Internet.
b.
Define social media with its any two opportunities.
Ans: Social Media
is an online tool that helps us to stay connected with the whole world.
Any two opportunities of using social
media
a) It creates awareness and innovate the way people live
b) Social media let us share anything with others around the
world.
C What
is E-commerce? Explain in short .
Ans: E-commerce
refers to the buying and selling of goods or services using the internet. E.g.
Amazon, Flipkart, eBay, sastodeal, daraz etc. The main goal
of e-commerce is to reduce cost, faster customer response and deliver the
better quality service. It
makes buying/selling possible 24/7. There are no geographical boundaries for
e-business. Anyone can order anything from anywhere at any time.
d. What
is firewall? Write its any two uses.
A firewall is the network security systems that monitors
and controls the traffic flow between the Internet and private network on the
basis of a set of user-defined rules.
Any two uses of
firewall are:
Firewalls act as a
barrier between an internal network and external networks (like the internet). By
filtering traffic, they help safeguard sensitive data and critical resources
within the network.
Firewalls enforce
access control policies by allowing or denying specific types of traffic based
on criteria such as IP addresses, ports, protocols, and packet contents.
e Define
virtual reality with its characteristics.
An artificial
environment created with computer hardware and software and presented to the
user in such a way that it appears and feels like a real environment.
The
characteristics of virtual reality are:
VR Gaming allows
players to immerse (dip) themselves in virtual world and interact with
environment and characters
VR can help
students learn by making the content more engaging and memorable.
f.
Differentiate between database and DBMS.
database |
DBMS |
A collection of
systematically organized inter-related data is called a database. The purpose
of data base is to store, organize and retrieve data. |
DBMS is a
computerized system that stores data, processes them and provides information
in an organized form. |
E.g. Dictionary,
Marks Ledger, Telephone Directory, Attendance Register etc.
|
E.g. MS-Access,
Oracle, MySQL, Fox Pro etc.
|
g. What
is data type? List any four types of data types used in MS-Access.
Data type is an attribute for a
field that determines the type of data that can be stored in that field.
any four types of
data types used in MS-Access are
Text, Date/Time,
Currency, Yes/No
h .
Define term sorting and filtering.
The process of
arranging all the records in a table either ascending or descending order based
on field or fields is known as sorting.
Filtering
is the process of viewing required record of a table that matches the specifies
criteria.
i. Define
Table. Why caption field property is used in MS-Access?
Tables
are the primary building block of database which stores and manages large
volume of data into rows and column.
Caption
is a field property which gives alternative name given for any field.
The maximum size
for this is 2048 characters.
5. Write
down the output of the given program. Show with dry run in table: [2]
DECLARE SUB
SERIES(X)
CLS
X=7
CALL SERIES(X)
END
SUB SERIES(X)
FOR M = 1 TO 10
PRINT X;
IF X MOD 2=0 THEN
X=X/2
ELSE
X=3*X+1
END IF
NEXT M
END SUB
Dry Run
X |
M=1 to 10 |
PRINT X; |
X MOD 2=0 |
X=3*X+1 (No) |
X=X/2 (Yes) |
7 |
1 to 10 yes |
7 |
7 MOD 2=0 1=0 No |
X=3*X+1 =3*7+1=22 |
|
22 |
2 to 10 yes |
22 |
22 MOD 2=0 0=0 Yes |
|
=22/2 =11 |
11 |
3 to 10 yes |
11 |
11 MOD 2=0 1=0 No |
3*11+1=34 |
|
34 |
4 to 10 yes |
34 |
34 MOD 2=0 0=0 yes |
|
34/2=17 |
17 |
5 to 10 yes |
17 |
17 MOD 2=0 1=0 no |
3*17+1=52 |
|
52 |
6 to 10 yes |
52 |
52 MOD 2=0 0=0 Yes |
|
52/2=26 |
26 |
7 to 10 yes |
26 |
26 MOD 2=0 0=0 Yes |
|
26/2=13 |
13 |
8 to 10 yes |
13 |
13 MOD 2=0 1=0 No |
3*13+1=40 |
|
40 |
9 to 10 yes |
40 |
40 MOD 2=0 0=0 Yes |
|
40/2=20 |
20 |
10 to 10 yes |
20 |
20 MOD 2=0 0=0 Yes |
|
20/2=10 |
10 |
11 to 10 No Loop Exits |
|
|
|
|
The
output of the program is:
7 22
11 34 17
52 26 13
40 20
6.
Re-write the given program after correcting the bugs:
CREATE FUNCTION
SQUARE(N)
CLS
REM TO PRINT SQUARE
OF A NUMBER
GET “ENTER ANY
NUMBER”; N
CALL SQUARE(N)
END
FUNCTION SQUARE(N)
ANS=A^2
SQUARE = ANS
END SQUARE(N)
Debugged
Program
DECLARE FUNCTION
SQUARE(N)
CLS
REM TO PRINT SQUARE
OF A NUMBER
INPUT “ENTER ANY NUMBER”;
N
PRINT SQUARE(N)
END
FUNCTION SQUARE(N)
ANS=N^2
SQUARE = ANS
END FUNCTION
7. Study
the following program and answer the given questions: [2]
DECLARE FUNCTION
OUTPUTS(W$)
CLS
W$="CYBER
CRIME"
PRINT OUTPUT$ (W$)
END
FUNCTION OUTPUT$
(W$)
FOR M= LEN(W$) TO
1 STEP-2
M$=M$+MID$(W$, M,
1)
NEXT M
OUTPUT$=M$
END FUNCTION
a Why is
$ sign is followed by function name?
Ans: The $ sign is
followed by function name because the function returns string value.
b. List
the library function used in the above program.
Ans: The library
function used in the above program are LEN( ) and MID$( ).
Group
'C'
8.
Convert/calculate as per the instruction: [4x1=4]
a
(ABC)16 into (?)10
b (143)
into (?)2
c.
(1010)+(1100)x(1011)
d.
(110111001)¸(101)
9. Write
a program to define a sub procedure to display the reverse of string input by
user. And define function procedure to find out volume of cylinder where the
necessary data has to be fed in main module. [Hint volume of Cylinder=pR2H]
[4]
DECLARE SUB
REV(A$)
DECLARE FUNCTION
VOL(R, H)
CLS
INPUT “Enter any string”; A$
INPUT “Enter
radius”; R
INPUT “Enter
Height”; H
CALL REV(A$)
PRINT “Volume of
Cylinder=”; VOL(R, H)
END
SUB REV(A$)
FOR I=LEN(A$) TO 1
STEP-1
B$=MID$(A$, I, 1)
C$=C$+B$
NEXT I
PRINT “Reversed
String is”; C$
END SUB
FUNCTION VOL(R, H)
VOL=22/7*R^2*H
END FUNCTION
10. A
sequential data file "INFO.INF" has numerous records with name,
address and telephone number in each record. Write a program to scan all the
records from that file and display only the records whose address is
"TANSEN" [4]
OPEN “INFO.INF”
FOR INPUT AS #1
CLS
WHILE NOT EOF(1)
INPUT #1, N$, A$,
T
IF UCASE$(A$)=”TANSEN”
THEN PRINT N$, A$, T
WEND
CLOSE #1
END
11.
Write a program in c language to ask a number and check whether it is odd or
even.
#include<stdio.h>
#include<conio.h>
int main()
{
int n;
printf("Enter any number: ");
scanf("%d", &n);
if(n%2==0)
printf("%d is even number", n);
else
printf("%d is odd number", n);
return 0;
}
OR
Write a
program in c language to display series 1,1,2,3,5 up to 13 terms [4]
#include<stdio.h>
#include<conio.h>
int
main()
{
int
a,b,c,i;
a=1;
b=1;
for(i=1;i<=10;i++)
{
printf("%d \n", a);
c=a+b;
a=b;
b=c;
}
return
0;
}