Monday, January 8, 2024

SOLVED Half-Yearly Exam-2080 Gauri Shankar Secondary School Nisdi-4, Mityal, Palpa - COMPUTER SCIENCE 2080

 




Half-Yearly Exam-2080

Gauri Shankar Secondary School Nisdi-4, Mityal, Palpa

Grade:- 10 (SEE)

Subject:- Computer Science

 

FM:-50

Time:- 2 Hrs.

 

Attempt all questions

Group-A (Very Short Questions-10 Marks)

 

1) เคคเคฒเค•ा เคช्เคฐเคถ्เคจเคนเคฐुเค•ो เค…เคคि เค›ोเคŸो เค‰เคค्เคคเคฐ เคฒेเค–्เคจुเคนोเคธ्। (6×1=6)

(Answer the following questions in very short.)

 

a) เคจेเคŸเคตเคฐ्เค• เคช्เคฐोเคŸोเค•เคฒ เคญเคจेเค•ो เค•े เคนो? (What is network protocol?)

Ans: A set of rules followed for interconnection and communication between computers in a network is called a network protocol

 

b) เคธोเคธเคฒ เคฎिเคกिเคฏाเค•ा เค•ुเคจै เคฆुเคˆ เคซाเค‡เคฆाเคนเคฐु เคฒेเค–्เคจुเคนोเคธ्। (Write any two advantages of social media.)

Ans: Any two advantages of social media are:

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 meant by data redundancy?

Ans: Data redundancy is the duplication of data within a database.

 

d) MS-Access เคฎा เคตिเคฆ्เคฏाเคฐ्เคฅीเค•ो เคœเคจ्เคฎ เคฎिเคคि เคญเคฃ्เคกाเคฐเคฃ เค—เคฐ्เคจ เค•ुเคจ เคกाเคŸाเค•ो เคช्เคฐเค•ाเคฐ เคช्เคฐเคฏोเค— เค—เคฐिเคจ्เค› ?

(Which data type is suitable to store birth date of a student in MS-Access?)

Ans: Date/Time data type is suitable to store birth date of a student in MS-Access

 

e) Q-Basic เคฎा MKDIR เค•เคฎाเคจ्เคก เค•ुเคจ เค•ाเคฐ्เคฏเค•ा เคฒाเค—ि เคช्เคฐเคฏोเค— เค—เคฐिเคจ्เค›? (What is the MKDIR command used for in Q-Basic?)

Ans: MKDIR command is used to create a subdirectory which is used to manage files.

 

f) C เคญाเคทाเค•ा เค•ुเคจै เคฆुเคˆ เคธीเคฎाเคนเคฐु เคฒेเค–्เคจुเคนोเคธ्। (Write any two limitations of C-Language.)

Ans: Any two limitations of C-Language are:

There is no runtime checking. (the errors are not detected after each line of code.)

It does not provide strict data type checking (for example, an integer value can be passed for floating datatype).

 

2) เค‰เคชเคฏुเค•्เคค เคช्เคฐाเคตिเคงिเค• เคถเคต्เคฆ เคฒेเค–्เคจुเคนोเคธ्। (2×1=2)

 

(Write appropriate technical term of the following.)

 

a) เคช्เคฐाเค‡เคญेเคŸ เคฐ เคชเคฌ्เคฒिเค• เค•्เคฒाเค‰เคกเค•ो เคธंเคฏोเคœเคจ (Combination of private and public cloud.)

Hybrid Cloud

 

b) เคเค‰เคŸा เค—ोเคช्เคฏ เค•ोเคก เคœเคธเคฒे เคช्เคฐเคฏोเค—เค•เคฐ्เคคाเคฒाเคˆ เคตिเคถेเคท เคช्เคฐोเค—्เคฐाเคฎ เคฐ เคธिเคธ्เคŸเคฎเค•ो เคชเคนुँเคš เคฆिเคจ्เค›।

(A secret code that gives the user to access particular program and System.) - Password

3) เคชूเคฐा เคฐुเคช เคฒेเค–्เคจुเคนोเคธ्। (2×1=2)

 

(Write the full forms of the following:)

 

a) NAS - Network Attached Storage.

 

b) IOT – Internet of Things

 

Group-B (Short Questions -24 Marks)

 

4) เคคเคฒเค•ा เคช्เคฐเคถ्เคจเคนเคฐुเค•ो เค›ोเคŸเค•เคฐीเคฎा เค‰เคค्เคคเคฐ เคฒेเค–्เคจुเคนोเคธ्। (9×2=18)

 

(Answer the following questions in short.)

 

a) เคฌाเค‰เคจ्เคกेเคก เคฎिเคกिเคฏा เคฐ เค…เคจเคฌाเค‰เคจ्เคกेเคก เคฎिเคกिเคฏाเคฎा เคญिเคจ्เคจเคคा เคฆेเค–ाเค‰เคจुเคนोเคธ् (Differentiate between bounded media and unbounded media.)

Ans: The difference between bounded and unbounded media are:

Bounded Media

Unbounded Media

The media which uses cable or wire to transfer data and information among computers are called bounded communication media.

The transmission media which transfer data in the form of electromagnetic waves that do not require any cables for transmission is called unbounded communication media.

E.g., Twisted Pair Cable, Co-Axial Cable and Fiber Optic Cable

 

E.g.: radio wave, microwave, satellite etc.

 

 

 

b) เคธूเคšเคจा เคช्เคฐเคตिเคงि เค•ाเคจुเคจ เคญเคจेเค•ो เค•े เคนो? เคฏो เค•िเคจ เค†เคตเคถ्เคฏเค• เค›? (What is cyber law? Why is cyber law needed?)

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.  Cyber law is needed to

- control cyber-crime and misuse of computer

- legalize the transaction through electronic media to control various types of electronic frauds

-punish a person who does criminal activities through electronic means especially on computers.

 

C) เคฌाเคฏोเคฎेเคŸ्เคฐिเค• เคญเคจेเค•ो เค•े เคนो? เคฏเคธเค•ो เคช्เคฐเคฏोเค— เคนुเคจे เค•ुเคจै เคšाเคฐ เค“เคŸा เค•्เคทेเคค्เคฐเคนเคฐु เคฒेเค–्เคจुเคนोเคธ्। (What is Biometric? Write any four areas where it is used.)

Ans: Biometrics are physical or behavioral human characteristics that can be used to digitally identify a person to grant access to systems, devices or data.

Any four areas where biometric are used :

Mobile Device Security: secures smartphones and tablets, allowing access only to authorized users.

Cybersecurity: Prevent unauthorized access to sensitive data with multi-factor authentication.

Time and Attendance Tracking: track employee attendance accurately.

Financial Transactions: secure access to accounts and transactions.

 

d) เค…เคจเคฒाเค‡เคจ เคญुเค•्เคคाเคจी เคญเคจेเค•ो เค•े เคนो? เคฏเคธเค•ा เค•ेเคนी เค‰เคฆाเคนเคฐเคฃเคนเคฐु เคฒेเค–्เคจुเคนोเคธ्। (What is online payment? Write some examples of it.)

Ans: Online payment refers to the payment for buying goods or services through the Internet using different online payment gateway. E.g. eSewa Nepal, iPay, Khalti, e-banking, etc.

 

e) เค‡-เค—เคญเคฐ्เคจเคฎेเคจ्เคŸเค•ा เค•ुเคจै เคšाเคฐ เคซाเค‡เคฆाเคนเคฐु เคฒेเค–्เคจुเคนोเคธ् (Write down any four advantages of E-Government.)

Ans: Any four advantages of E-Government are:

Citizens can access government services and information conveniently from anywhere. 

It reduces paperwork and manual tasks, which can lead to faster decision-making and service delivery. 

E-governance systems promote transparency by making government actions and decisions visible to the public. 

Cheaper, more effective, and speedy communications

 

f) เคกाเคŸाเคฌेเคธ เคญเคจेเค•ो เค•े เคนो? เค•เคฎ्เคช्เคฏुเคŸเคฐाเค‡เคœ्เคก เคกाเคŸाเคฌेเคธเค•ा เคซाเค‡เคฆाเคนเคฐु เคฒेเค–्เคจुเคนोเคธ्। (What is database? Write down the advantages of computerized database.)

Ans: A collection of systematically organized inter-related data is called a database. The purpose of data base is to store, organize and retrieve data.

The advantages of computerized database are:

a)    It reduces data redundancy which means duplication of data.

b)    It allows multiple users to access the same data simultaneously.

c)    Large volume of data can be stored and updated easily.

d)    It provides high security of data as well as maintains accurate database.

g) เคซเคฐ्เคฎ เคญเคจेเค•ो เค•े เคนो ? เคฏเคธเค•ो เคฎเคนเคค्เคต เคฒेเค–्เคจुเคนोเคธ् (What is form? Write the importance of form.)

Ans: Form is one of the MS-Access database objects which provides graphical interface to view, modify and add data in a table or multiple linked tables.

The importance of form are:

·       Forms provide an easy-to-use interface for data entry and manipulation, improving data accuracy and completeness.

·       Forms can include validation rules to ensure data quality and prevent errors.

·       Forms enable users to customize the look and feel of data input screens.

·       Forms can be linked to other objects, such as tables or queries, to simplify data management.

 

h) เคกाเคŸा เคธเคฐ्เคŸिเค™ เคญเคจेเค•ो เค•े เคนो? MS-Access เคฎा เคกाเคŸाเคฒाเคˆ เค•เคคि เคคเคฐिเค•ाเคฌाเคŸ เคธเคฐ्เคŸ เค—เคฐ्เคจ เคธเค•िเคจ्เค›? (What is data sorting? How many ways to sort data in MS-Access?)

The process of arranging all the records in a table either ascending or descending order based on field or fields is known as sorting. Sorted data is easier to handle than unsorted data.

We can sort data in MS-Access by ascending or descending order on numbers or text.

 

i) MS-Access เค•ा เค•ुเคจै เคšाเคฐ เค“เคŸा เค…เคต्เคœेเค•्เคŸเคนเคฐुเค•ो เคธूเคšी เคคเคฏाเคฐ เคชाเคฐ्เคจुเคนोเคธ्। (List any four objects of MS-Access.)

Ans: Any four objects of MS-Access are

Tables: Used to store data in a structured format with columns and rows.

Queries: Used to retrieve and manipulate data from one or more tables based on specified criteria.

Forms: Used to create user-friendly interfaces for entering and viewing data in tables.

Reports: Used to generate formatted and organized views of data from tables or queries.

 

5) เคคเคฒ เคฆिเค‡เคเค•ो เคช्เคฐोเค—्เคฐाเคฎเค•ो เค†เค‰เคŸเคชुเคŸ เคฒेเค–्เคจुเคนोเคธ्। 2

(Write down the output of the given program.)

 

DECLARE SUB ptt()

CLS

CALL patt

END

 

SUB patt

X=1

FOR i=1 TO 5

PRINT X

X=(x*10)+i

NEXT i

END SUB

Dry Run

X

I=1 to 5

PRINT X

X=(x*10)+i

1

1 to 5 Yes

1

(1*10)+1

=11

 

2 to 5 Yes

11

(11*10)+2

=112

 

3 to 5 Yes

112

(112*10)+3

=1123

 

4 to 5 Yes

1123

(1123*10)+4

11234

 

5 to 5 Yes

11234

(11234*10)+5

112345

 

6 to 5 No

Loop Exits

 

 

 

The output of the program is :

1

11

112

1123

11234

 

6) เคคเคฒ เคฆिเค‡เคเค•ो เคช्เคฐोเค—्เคฐाเคฎเค•ो เค—เคฒ्เคคि เคธเคš्เคšाเคเคฐ เคชुเคจः เคฒेเค–्เคจुเคนोเคธ् 2

 

(Re-write the given program after correcting the bugs.)

 

OPEN "student.rec" FOR OUTPUT AS #1

FOR I = 1 TO 5

 INPUT "Enter Name, Class, Roll No. and Age"; N$, C, R, A

WRITE N$, C, R, A

CLOSE #1

 

Debugged Program:

OPEN "student.rec" FOR INPUT AS #1

FOR I = 1 TO 5

 INPUT "Enter Name, Class, Roll No. and Age"; N$, C, R, A

WRITE #1, N$, C, R, A

NEXT I

CLOSE #1

END

 

7) เคคเคฒเค•ो เคช्เคฐोเค—्เคฐाเคฎ เค…เคง्เคฏเคฏเคจ เค—เคฐि เคธोเคงिเคเค•ा เคช्เคฐเคถ्เคจเคนเคฐुเค•ो เคœเคตाเคซ เคฆिเคจुเคนोเคธ्। (2×1=2)

 

(Study the following program and answer the following questions.)

 

DECLARE FUNCTION prod(a,b)

CLS

INPUT "Enter first number" ;a

INPUT "Enter second number" ;b

PRINT "The product of two number is" ;prod(a,b)

END

 

FUNCTION prod(a,b)

P=a*b

Prod=p

END FUNCTION

เคช्เคฐเคถ्เคจเคนเคฐु

 

i) เคฎाเคฅिเค•ो เคช्เคฐोเค—्เคฐाเคฎเคฎा เคช्เคฐเคฏोเค— เค—เคฐिเคเค•ा เคธंเค–्เคฏाเคค्เคฎเค• เคญेเคฐिเคเคตเคฒเคนเคฐुเค•ो เคธूเคšी เคคเคฏाเคฐ เคชाเคฐ्เคจुเคนोเคธ् (List the numerical variables used in above program.)

Ans: The numerical variables used in above program are : a, b and p

 

ii) เคฎाเคฅिเค•ो เคช्เคฐोเค—्เคฐाเคฎเคฎा เคช्เคฐเคฏोเค— เค—เคฐिเคเค•ा เคฒोเค•เคฒ เคญेเคฐिเคเคตเคฒเคนเคฐुเค•ो เคธूเคšी เคคเคฏाเคฐ เคชाเคฐ्เคจुเคนोเคธ्। (List the local variables used in above program.)

The local variables used in above program are a, b and p.

 

Group-C (Long Questions-16 Marks)

 

8) เคฆिเค‡เคเค•ो เคจिเคฐ्เคฆेเคถเคจ เค…เคจुเคธाเคฐ เคนिเคธाเคฌ เค—เคฐ्เคจुเคนोเคธ्। (4×1=4)

 

(Convert or Calculate as per the instructions:)

 

i) (525)10= (?)8

ii) (AC3)16=(?)2

iii) (1111)2 + (1101)2-(1010)2

iv) (1011)2¸(10)2

 

 

 

 

9. a) เคเค‰เคŸा เคทเคกเคฎुเค–ाเค•ो เคฒเคฎ्เคฌाเคˆ, เคšौเคกाเคˆ เคฐ เค‰เคšाเคˆเค•ो เค†เคงाเคฐเคฎा เค›เคกเค•े เคธเคคเคนเค•ो เค•्เคทेเคค्เคฐเคซเคฒ เคฐ เค†เคฏเคคเคจ เคชเคค्เคคा เคฒเค—ाเค‰เคจे Q-BASIC เคช्เคฐोเค—्เคฐाเคฎ เคฒेเค–्เคจुเคนोเคธ เคœเคธเค•ा เคฒाเค—ि เค›เคกเค•े เคธเคคเคนเค•ो เค•्เคทेเคค्เคฐเคซเคฒ เคชเคค्เคคा เคฒเค—ाเค‰เคจे เคซเค™เคธเคจ เคช्เคฐเคธिเคกเคฐ เคฐ เค†เคฏเคคเคจ เคชเคค्เคคा เคฒเค—ाเค‰เคจे เคธเคฌ เคช्เคฐเคธिเคกเคฐ เคช्เคฐोเค—्เคฐाเคฎ เคคเคฏाเคฐ เคชाเคฐ्เคจुเคนोเคธ्। 4 (Write a program in Q-BASIC that asks length, breadth and height of cuboid and calculate its lateral surface area and Volume. Create a Function procedure to calculate lateral surface area and sub procedure to calculate volume.) [Hint:- LSA = 2h (I+b) and V=lxbxh]

 

DECLARE FUNCTION LSA(L,B,H)

DECLARE SUB VOL(L,B,H)

CLS
INPUT “Enter Length”; L

INPUT “Enter Breadth”: B

INPUT “Enter Height”: H

PRINT “Lateral Surface Area of Cuboid=”; LSA(L, B, H)

CALL VOL(L, B, H)

END

FUNCTION LSA(L, B, H)

LSA=2*H*(L+B)

END FUNCTION

 

SUB VOL(L,B,H)

V=L*B*H

PRINT “Volume of Cuboid=”; V

END SUB

 

b) เคช्เคฐเคฏोเค—เค•เคฐ्เคคाเค•ो เค†เคตเคถ्เคฏเค•เคคाเค•ो เค†เคงाเคฐเคฎा TELDIR. DAT เคกाเคŸा เคซाเค‡เคฒ เคฌเคจाเค‰เคจे เคช्เคฐोเค—्เคฐाเคฎ เคฌเคจाเค‰เคจुเคนोเคธ् เคœเคธเคฎा เค•ाเคฎเคฆाเคฐเค•ो เคจाเคฎ, เค ेเค—ाเคจा เคฐ เคŸेเคฒिเคซोเคจ เคจเคฎ्เคฌเคฐ เคฐाเค–िเคเค•ो เค›। 4 (Write a program to creat a data file TELDIR.DAT to store name address and telephone number of employees according to the need of user.)

 

OPEN “TELDIR.DAT” FOR OUTPUT AS #1

DO

CLS

INPUT “ENTER NAME”; N$

INPUT “ENTER ADDRESS”; A$

INPUT “ENTER TELEPHONE”; T

WRITE #1, N$, A$, T

INPUT “DO YOU WANT TO CONTINUE”; CH$

LOOP WHILE UCASE$(CH$) = “Y”

CLOSE #1

END

10) เคฆिเค‡เคเค•ो เคธंเค–्เคฏाเคฒाเคˆ 7 เคฒे เคญाเค— เค—เคฐ्เคจ เคฎिเคฒ्เค› เคฏा เคฎिเคฒ्เคฆैเคจ เคญเคจि เคœाँเคš เค—เคฐ्เคจ C- เคญाเคทाเคฎा เคช्เคฐोเค—्เคฐाเคฎ เคฒेเค–्เคจुเคนोเคธ्। (Write a program in C-Language to check whether the supplied number is divisible by 7 or not.) 4

 

#include<stdio.h>

#include<conio.h>

int main()

{

int n;

printf("Enter any number: ");

scanf("%d", &n);

if(n % 7 = = 0)

{

printf("%d is divisible by 7",n);

}

else

{

printf("%d is not divisible by 7",n);

}

return 0;

}

เค…เคฅเคตा (OR)

 

เคชเคนिเคฒो 10 เค“เคŸा เคช्เคฐाเค•ृเคคिเค• เคธंเค–्เคฏाเคนเคฐु เคช्เคฐเคฆเคฐ्เคถเคจ เค—เคฐ्เคจ C-Program เคฒेเค–्เคจुเคนोเคธ् 4 (Write a program in C-Language to display first 10 natural numbers.)

 

#include<stdio.h>

#include<conio.h>

int main()

{

int i;

i=1;

while(i<=10)

{

    printf("%d \n", i);

    i++;

}

return 0;

}

 

 

Best of Luck