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

No comments:

Post a Comment