Tuesday, February 27, 2024

SOLVED COMPUTER SCIENCE – JIRI 2080

 

SOLVED COMPUTER SCIENCE – JIRI 2080

 


Write short answer of the given questions.

 

What is Tele-Communication?

The transmission of data and information from one place to another for the purpose of communication is known as telecommunication.

 

Which software is used to remove virus from Computer System?

Antivirus Software is used to remove virus from Computer System

 

Write any two examples of IOT.

Any two examples of IOT are: Smart Watch, Smart TV

 

Write two features of Database Management System.

Any two features of Database Management System are:

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

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

 

Define Module.

Module is a block of statement that solves a particular problem.

 

What is keywords in C Programming?

Keyword is a set of special words which are already defined for some tasks.

 

Write appropriate technical terms for the following.

 

A Company which Provides service of internet. ISP (Internet Service Provider)

The smallest unit to represent information on quantum Computer. Qubit (Quantum Bit)

 

Write the full forms.

SMS  - Short Message Service

WiFi – Wireless Fidelity

Group "B"

 

Write answer of the given questions.

 

What is Network Topology? Write a types of Computer Network.

Network topology is the inter-connected pattern of network components.

The types of computer network are:

LAN (Local Area Network)

MAN (Metropolitan Area Network)

WAN (Wide Area Network)

 

What is Digital Footprint? Write any two importance of it.

A digital footprint is the trail of data and information left behind by an individual's online activities which includes social media posts, website visits, online purchases, and other digital engagements.

Any two importance of it are:

It serves as a reflection of our identity, both personally and professionally.

Our digital footprint promotes responsible online behavior: protect our info, respect privacy, and think critically about online content.

 

Define E-commerce with Example.

-Commerce refers to electronic transactions such as buying, selling and exchanging of goods, services and information over computer communication network such as the Internet. E.g. Amazon, Flipkart, eBay, sastodeal, daraz etc.

 

What is firewall in Computer? Write two major uses of IT policy.

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 major uses of IT policy are:

IT policies offer clear guidelines for employees on how to use technology in the organization, ensuring they understand what's expected of them.

It sets rules to protect digital assets and data from cyber threats, breaches, and unauthorized access.

 

Define Artificial intelligence. Write any two areas where artificial intelligence is used.

AI is an emerging branch in computer science, which interprets the means and method of making computers think like human beings.

Any any two areas where artificial intelligence is used are:

·       Robotics – AI is used in robotics to control robots and make them perform task autonomously.

·       Gaming - The AI machines can play strategic games like chess, where the machine needs to think of a large number of possible places.

 

What is Computerized database? Write any two benefits of it.

A computerized database is an organized collection of structured data stored electronically on a computer system.  Any two benefits are:

It can store large volume of data.

We can search data very easily.

 

What is table in DBMS? Write method to Construct table.

Tables are the primary building block of database which stores and manages large volume of data into rows and column.

The method to Construct table are

Design view

Datasheet view

Using wizard

 

What is Primary key? Write two advantages of its .

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.

Any two advantages of it are

It sets the relationship between tables.

It reduces and controls duplication of record in a table

 

Write any two difference between field name and record.

 

Any two difference between field name and record are:

 

 

Record

Field

A record is a row in a table which contains information about single items in a database.

A field is a column in a table which contains information about a certain type for all records.

Record is complete set of information.

Field is a smallest unit of information.

 

Write output of the following program.

 

DECLARE FUNCTION SUM( )

CLS

PRINT SUM ( )

END

 

FUNCTION SUM( )

FOR I= 2 to 20 STEP 2

LET S=S+I

NEXT I

SUM = S

END FUNCTION

 

Dry Run Table

I= 2 to 20 STEP 2

LET S=S+I

SUM = S

PRINT SUM

2 to 20 Yes

0+2=2

SUM=110

110

4 to 20 yes

2+4=6

 

 

6 to 20 yes

6+6=12

 

 

8 to 20 yes

12+8=20

 

 

10 to 20 yes

20+10=30

 

 

12 to 20 yes

30+12=42

 

 

14 to 20 yes

42 +14=56

 

 

16 to 20 yes

56+16=72

 

 

18 to 20 yes

72+18=90

 

 

20 to 20 yes

90+20=110

 

 

22 to 20 no

 

 

 

 

 

 

 

 

The output of the program is

110

 

Rewrite the given program after correcting the bugs.

DECLARE SUB ser( )

CLS

EXCUTE series

END

 

SUB ser( )

REM program to generate 10,10,20,30,50....upto 50th terms.

A=10

Z=10

FOR tpr= 1 TO 50 STEP-10

DISPLAY A;Z;

A=A+Z

Z=A+Z

NEXT tpr

END series( )

 

 

 

Debugged Program

DECLARE SUB ser( )

CLS

CALL series

END

 

SUB ser( )

REM program to generate 10,10,20,30,50....upto 50th terms.

A=10

Z=10

FOR tpr= 1 TO 25

PRINT A;Z;

A=A+Z

Z=A+Z

NEXT tpr

END SUB

 

 

Study the following program and answer the given questions.

 

 

DECLARE FUNCTION COUNT(z$)

CLS

INPUT"ENTER A WORDS="; z$

END

 

FUNCTION COUNT(z$)

 

m=LEN(z$)

v$=UCASE$(z$)

FOR I = 1 TO m

v$=MID$(z$,I,1)

IF v$= "A","E","I","O","U" THEN

g=g+1

END IF

NEXT I v

owel =g

END FUNCTION

 

What is the name of the functions used in the above program.

The name of the functions used in the above program is COUNT ( )

 

Write down the missing statement in the main module to execute the program.

PRINT COUNT(z$) is missing statement in the main module to execute the program

 

 

 

 

 

 

 

 

Group "c"

 

Convert as instructed.

 

a) (11)2+(111)2×(101)2= (x)2

 

 

 

 

1

1

1

 

 

 

 

 

 

x

1

0

1

 

 

 

 

 

 

 

1

1

1

 

 

 

 

 

 

0

0

0

x

 

 

 

 

 

1

1

1

x

x

 

 

 

 

1

0

0

0

1

1

 

 

 

 

 

 

 

+

1

1

 

 

 

 

1

0

0

1

1

0

 

 

 

 

 

c)     (1000011)2 MOD (11)2=(X)2

 

11)

1

0

0

0

0

1

1

(10110

 

-

1

1

 

 

 

 

 

 

 

 

1

0

0

 

 

 

 

 

 

-

1

1

 

 

 

 

 

 

 

 

1

1

 

 

 

 

 

 

 

1

1

 

 

 

 

 

 

 

 

0

1

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

1

 

Q=10110

R=1

c) (225)10 into Hexa

 

Decimal to hex calculation steps

Divide by the base 16 to get the digits from the remainders:

Division
by 16

Quotient

Remainder

(Digit)

Digit #

(225)/16

14

1

0

(14)/16

0

14

1

= (E1)16

 

d) (A9C)16 into Octal

Convert each hex digit to 4 binary digits (see conversion table below):

A9C

=    A      9       C

= 1010 1001 1100

= 101010011100

Convert every 3 binary digits (from bit0) to octal digit (see conversion table below):

101010011100

= 101 010 011 100

=  5      2    3     4

= 5234

(A9C)16 into (5234)8

Write a q basic program asks length, breath and height of a room and calculates its volume and perimeter. Create FUNCTION...........END FUNCTION to find the volume and SUB END SUB to calculate perimeter.

DECLARE FUNCTION VOL(L,B,H)

DECLARE SUB PERI (L,B)

CLS
INPUT “Enter Length”; L

INPUT “Enter Breadth”; B

INPUT “Enter Height”; H

PRINT VOL(L,B,H)

CALL PERI(L,B)

END

 

FUNCTION VOL(L,B,H)

VOL=L*B*H

END FUNCTION

 

SUB PERI(L, B)

P=2*(L+B)

PRINT “Perimter of room=”; P

END SUB

 

A sequential data file called "Marks.dat" contains Students name, address, Rollno, English, Nepali and Computer fields, Write a program to display all the contents of the data file.

OPEN “Marks.dat” FOR INPUT AS #1

CLS

WHILE NOT EOF(1)

INPUT #1, N$, A$, R, E, N, C

PRINT N$, A$, R, E, N, C

WEND

CLOSE #1

END

 

Write a program in C language that asks two number and find sum of them.

Write a program in C language to display 5,15,25,35,45......upto 25th terms of the following series. )

 

#include <stdio.h>

 

int main() {

    int a=5,i;

    for(i=1;i<=25;i++)

    {

printf("%d ", a);

a=a+10;

}

    return 0;

}

 

OR

 

#include <stdio.h>

int main() {

    int a,b,s;

        printf("Enter First Number: ");

        scanf("%d",&a);

         printf("Enter First Number: ");

        scanf("%d",&b);

s=a+b;

printf("Sum of two numbers= %d", s);

    return 0;

}