SOLVED TRITON SEE MODEL QUESTIONS | OPT.II Computer Science - Set 5
COMPUTER - SEE Model Question (Set-V)
Time: 2 Hours F.M.:
50
Group A ' 10 marks'
1. Answer
the following questions in one sentence. (6 × 1 = 6)
a.
What
does bandwidth mean?
Bandwidth is the maximum amount of
data that can be transmitted over a network or communication channel in a given
amount of time.
b.
What
is web browser?
A web browser is a
software application that allows to access and view websites on the Internet.
c.
What
is the maximum length of a field name in MS-Access?
The maximum length of a
field name in MS-Access is 64 characters.
d.
Which
is the logical data type of MS-Access?
The logical data type of
MS-Access is Yes/No.
e.
Write
any one advantage of Modular Programming.
Any one advantage of
Modular Programming is coding the program and testing is very
easy.
f.
Write
any two features of C-language.
Any two features of C-language are:
Portability: C code can be compiled
and executed on different systems with minimal modifications.
C is a case-sensitive programming
language. It understands the capital alphabets and small alphabets as different
values.
2. Write
the appropriate technical term for the following. (2x1=2)
a. A
Device used to connect a PC with a telephone line. MODEM
b. Unethical
work done using a computer or the internet. Cyber Crime
3. Write
the full form of the following. (2x1=2)
a. GPS
– Global Positioning System
b. NIC
– Network Interface Card
4. Answer
the following questions: (9x2=18)
a.
Which
topology is mostly used in labs? Also, write its advantages and disadvantages.
Star
topology is mostly used in labs.
Advantages
of Star Topology
·
Failure
in one device does not affect the rest of the network due to independent
connections.
·
Adding or
removing devices is simple and doesn’t affect the rest of the network.
Disadvantages
of Star Topology
·
If the
central hub or switch fails, the entire network will stop functioning.
· It requires more cabling and a
central hub, making it more expensive compared to bus or ring topology.
b.
What
do you understand about digital citizens? Write its importance.
A digital citizen is an
individual who responsibly uses the internet and digital technology for social,
educational, and personal activities while respecting privacy, security, and
ethical standards.
c.
How
does password policy protect computer software and data? Explain in brief.
A password policy keeps
computer software and data safe by ensuring users to create strong and unique
passwords. It helps stop unauthorized access, reduces security risks, and keeps
the system working properly.
d.
What
is m-commerce? Write any two important services of it.
M-commerce refers to the buying and
selling of goods and services through mobile devices like smartphones and
tablets.
Any two important services of it are:
v Mobile Shopping:
M-commerce enables users to browse, select, and purchase products or services
directly from their mobile devices like daraz, hamrobazar, amazon etc.
v Mobile Payments: This
service involves making payments using mobile device like e-sewa, khalti
e.
Define
e-banking and write one advantage and one disadvantage of e-banking.
E-banking is a digital
banking system that allows customers to perform financial transactions and
manage their accounts online via the internet or mobile apps.
Any one advantage of
e-banking is:
It saves the time of
customers as they can easily access their account with the help of their
device.
Any one disadvantage of
e-banking is:
E-banking relies on
internet connectivity and servers, so system failures or slow networks can
disrupt services.
f.
Differentiate
between data and information.
Data |
Information |
Raw form of any facts, figures or
entities are known as data. |
The processed form of data is
known as information. |
For example, Aaradhya, 1000,
account, balance etc. are raw data individually does not give any meaning. |
For example, Aaradhya has 1000
balance in her bank account. Here Aaradhya, 1000, account, balance all have
their significant meaning. |
g.
What
is field properties? Name any four of them.
Field properties are
settings or attributes that allow users to control various aspects of data
entry, validation, formatting, and behavior within the database.
Any four field properties
are: field size, caption, validation rule and validation text.
h.
What
are validation text and validation rules?
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.
i.
Write
any two major differences between forms and reports.
Form |
Report |
Form is primarily used for entering data |
Report is used for presenting the data. |
Form is designed to be used on screen. |
Report are designed to be printed. |
5. Write
down the output of the given program and show them in the dry run table.2
DECLARE
SUB SENDUP (S$)
E$='NPABSON'
CALL
SENDUP(E$)
END
SUB
SENDUP(S$)
FOR
i=1 to LEN(S$) STEP1
IF
I MOD2< >0 THEN
EE$=EE$+LCASE$(MID$(S$,I,1)
ELSE
EE$=EE$+UCASE$(MID$(S$,I,1))
END
IF
PRINT
EE$
END
SUB
Dry Run
E$ |
S$ |
i=1 to LEN(S$) |
i MOD 2 <>0 |
Yes EE$=EE$+ LCASE$(MIDS(S$,I,1)) |
No EE$=EE$+ UCASE$(MIDS(S$,I,1)) |
NPABSON |
NPABSON |
1 to 7 yes |
1 MOD 2 <>0 1<>0 Yes |
n |
|
|
|
2 to 7 yes |
2 MOD 2 <>0 0<>0 No |
|
n+P=nP |
|
|
3 to 7 yes |
3 MOD 2 <>0 1<>0 Yes |
nP+a nPa |
|
|
|
4 to 7 yes |
4 MOD 2 <>0 0<>0 No |
|
nPa+B nPaB |
|
|
5 to 7 yes |
5 MOD 2 <>0 1<>0 Yes |
nPaB+s nPaBs |
|
|
|
6 to 7 yes |
6 MOD 2 <>0 0<>0 No |
|
nPaBs+O nPaBsO |
|
|
7 to 7 yes |
7 MOD 2 <>0 1<>0 Yes |
nPaBsO+n nPaBsOn |
|
|
|
8 to 7 loop exits |
|
|
|
The output of the program is :
nPaBsOn
6. Rewrite
the given program after correcting the bugs. (2)
REM
to store Name, post and salary
OPEN
EMP.DOC FOR OUT AS#1
INPUT"Enter
name";N
INPUT"Enter
post";P$
INPUT"Enter
salary";S
INPUT#2,N$,P$,S
CLOSE#1
STOP
Debugged Program
REM
to store Name, post and salary
OPEN
“EMP.DOC” FOR OUTPUT AS#1
INPUT"Enter
name";N$
INPUT"Enter
post";P$
INPUT"Enter
salary";S
WRITE#2,N$,P$,S
CLOSE#1
END
7. Study
the following program and answer the given questions. (2)
DECLARE
FUNCTION prod (A,B)
CLS
INPUT"Enter
first number";A
INPUT
"Enter second number";B
PRINT"The
product of the two number=";prod (A,B)
END
FUNCTION
prod (A,B)
P=A*B
prod=P
END
FUNCTION
Questions:
a.
List
all the numerical variables used in the program above.
The numerical variables used in the
program above are A, B and P.
b.
List
the local variables used in the program above.
The local variable used in the
program above is P.
8. Calculate
as per the instruction: (4x1=4)
(i) (315)10
= (?)2
Divide by the base 2 to get the digits from the
remainders:
Division |
Quotient |
Remainder (Digit) |
(315)/2 |
157 |
1 |
(157)/2 |
78 |
1 |
(78)/2 |
39 |
0 |
(39)/2 |
19 |
1 |
(19)/2 |
9 |
1 |
(9)/2 |
4 |
1 |
(4)/2 |
2 |
0 |
(2)/2 |
1 |
0 |
(1)/2 |
0 |
1 |
= (100111011)2
(315)10
= (100111011)2
(ii) (A4B)16 = (?)8
Convert
each hex digit to 4 binary digits
A4B
=
A 4 B
A=
1010
4
= 0100
B
= 1011
=
101 001 001 011
Convert
each 3 binary digits to octal digits
101
= 5
001
= 1
001
= 1
011
= 3
(A4B)16 = (5113)8
(iii) (1011)2×(101)2+(1001)2
|
|
|
|
|
|
1 |
0 |
1 |
1 |
|
|
|
|
|
|
|
1 |
0 |
1 |
|
|
|
|
|
|
1 |
0 |
1 |
1 |
|
|
|
|
|
0 |
0 |
0 |
0 |
× |
|
|
|
|
1 |
0 |
1 |
1 |
× |
× |
|
|
|
|
1 |
1 |
0 |
1 |
1 |
1 |
|
|
|
|
|
+ |
1 |
0 |
0 |
1 |
|
|
|
1 |
0 |
0 |
0 |
0 |
0 |
0 |
(1011)2×(101)2+(1001)2 = (1000000)2
(iv) (10111)2 ¸ (101)2
101) |
1 |
0 |
1 |
1 |
1 |
(100 |
- |
1 |
0 |
1 |
|
|
|
|
0 |
0 |
0 |
|
|
|
|
|
|
|
1 |
1 |
|
|
|
|
|
- |
0 |
|
|
|
|
|
1 |
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q
= 100
R
= 11
9. (a) WAP to calculate the
area of the rectangle using SUB…END SUB and area of circle using FUNCTION…END
Function.
DECLARE SUB AREA (L, B)
DECLARE FUNCTION ARE (R)
CLS
INPUT “ENTER LENGTH”; L
INPUT “ENTER BREADTH”; B
INPUT “ENTER RADIUS”; R
CALL AREA (L, B)
PRINT “AREA OF CIRCLE ”; ARE(R)
END
SUB AREA (L, B)
A = L * B
PRINT “AREA OF RECTANGLE=”; A
END SUB
FUNCTION ARE (L, B)
ARE = 3.14 * R ^ 2
END FUNCTION
(b) Write a program to
create a file "info.dat" and Store the name, address and mobile
number of 5 people.
OPEN "info.dat"
FOR OUTPUT AS #1
FOR I = 1 TO 5
INPUT "Enter Name"; N$
INPUT "Enter Address"; A$
INPUT "Enter Mobile
Number"; M#
WRITE #1, N$, A$, M#
NEXT I
CLOSE #1
END
10. Write
a program in 'C' language to display the first 10 odd numbers.
#include <stdio.h>
int main( )
{
int i, a=1;
for(i = 1; i <= 10; i++)
{
printf("%d ", a);
a=a+2;
}
return 0;
}
OR,
Write
a program in 'C' language to input two numbers and find the greatest among two
numbers.
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b;
printf("Enter any two numbers:\n
");
scanf("%d %d", &a, &b);
if(a>b)
printf("The greater number is
%d", a);
else
printf("The greater number is
%d", b);
return 0;
}
Æ Best of Luck Å
No comments:
Post a Comment