# CLASS VIII - COMPUTER SCIENCE - PERIODIC TEST PAPER (SOLVED)

PERIODIC TEST

COMPUTER SCIENCE

CLASS VIII

Time: 1 hr.                                                                                                M.M.: 30

Q1. Choose the correct option.                                                                                (3X1=3)

1.  ______________ is the most useful application of data science.

(i) Search engine

(ii) Transport

(iii) E-commerce

1.  String, list or tuple are termed as ______________.

(i) Loop

(ii) Sequence

(iii) Function

(c)  _____________ is responsible to design and manage data systems within an

Organization.

(ii) Data Scientist

(iii) Data Architect

Q2. Fill in the blanks.                                                                                                     (3X1=3)

1. ____________ algorithm is used in the automatic tag suggestion feature of Facebook.

2. When we use else with for loop, this structure is known as _____________.

3. Data Science is partially based on Computer Science, Mathematics or ____________.

Q3. Write the difference between:                                                                                (2X2=4)

1. Structured data and Unstructured data

2. Data and Information

Q4. Answer the following questions.                                                                            (4X2=8)

1. What are Loops?

2. Define range() function.

3. What is the role of a database developer?

4. What do you understand by the autocomplete feature?

Q5. Write a Python program using while or for loop to:                                             (2X4=8)

1. Print all odd numbers between 1 to 12.

2. Print all the values from 1 to 5 except the value 3.

Q6. Write the output of the following Python programs.                                            (4X1=4)

1. For x in range (2, 10, 2):

print(x)

1. a=5

While a !=0:

Print (“Run this code”)

a=a-1

(c ) for x in range (6):

print (“Hello”)

print (“How are you”)

(d) i=0

While i<=10:

If i == 6:

break

print (i)

i=i+2

Q1. (a) (i)

(b) (ii)

( c ) (iii)

Q2. (a) Image Recognition

(b) for else

(c ) statistics

Q3. (a)1. Structured data is standardized, clearly defined, and searchable data, while

unstructured data is usually stored in its native format,

2. Structured data is quantitative, while unstructured data is qualitative.

(b) 1. Data is a collection of facts, while information puts those facts into context.

2. While data is raw and unorganized, information is organized.

Q4.(a) Loops are a programming element that repeats a portion of code a set number of times

until the desired process is complete. Repetitive tasks are common in programming, and

loops are essential to save time and minimize error.

(b) The range() function returns a sequence of numbers, starting from 0 by default, and

increments by 1 (by default), and stops before a specified number.

(c) role of a database developer is to analyze the needs of an organization and produce an

effective database system according to their needs and specifications. This includes

collecting data, analyzing the data, designing algorithms, drawing flowcharts and

implementing code for the logic developed through the algorithms and flowcharts.

(d) Autocomplete is a feature within Google search that makes it faster to complete searches that you start to type. Our automated systems generate predictions that help people save time by allowing them to quickly complete the search they already intended to do.

Q5.(a)  for i in range(1, 11):

if i % 2 !=0:

print(i,end=",")

(b) rng= 6

i=1

while i < rng:

print(i)

i+=1

if i ==3:

i+=1

Q6. (a) 2

4

6

8

(b) Run this code

Run this code

Run this code

Run this code

Run this code

(c) Hello how are you

Hello how are you

Hello how are you

Hello how are you

Hello how are you

Hello how are you

(d) 0

2

4