0% found this document useful (0 votes)
2 views

Comp SA2 WS

This document is a revision worksheet for Grade VIII students in Computer Science, focusing on Python programming concepts. It includes multiple-choice questions, true or false statements, fill-in-the-blank exercises, output prediction tasks, and programming questions. The worksheet aims to assess students' understanding of Python syntax, functions, and libraries.

Uploaded by

razineeey
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Comp SA2 WS

This document is a revision worksheet for Grade VIII students in Computer Science, focusing on Python programming concepts. It includes multiple-choice questions, true or false statements, fill-in-the-blank exercises, output prediction tasks, and programming questions. The worksheet aims to assess students' understanding of Python syntax, functions, and libraries.

Uploaded by

razineeey
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SUMMATIVE ASSESSMENT - II 2024-25

COMPUTER SCIENCE
Revision Worksheet

Name :__________________________________​ ​ ​ ​ Date: ____________


Grade: VIII Div:​ ​ ​ ​ ​ ​ ​ ​ RollNo.: __________​​
____________________________________________________________________________________
I.​ Multiple Choice Questions​ ​ ​ ​ ​ ​ ​ ​
1.​Which of the following is a valid variable?
a.​ 2nd_value​ ​ ​ ​ ​ b. my_var​
c.​ if​ ​ ​ ​ ​ ​ d. 345
2.​ ___________ is a Python package for scientific computing.
a.​ Grafana​ ​ ​ ​ ​ b. Jupyter
c.​ SciPy​ ​ ​ ​ ​ ​ d. Numpy
3.​ Which of the following is a built-in-function in Python??
a.​ str( )​ ​ ​ ​ ​ ​ b. Add( )
c.​ Area_Function​ ​ ​ ​ ​ d. MyList( )
4.​ Which method helps you to find out the data type of the object?
a.​ max( )​ ​ ​ ​ ​ ​ b. type( )
b.​ str( )​ ​ ​ ​ ​ ​ c. int( )

II.​ State TRUE or FALSE​ ​ ​ ​ ​ ​ ​ ​


1.​ Python is a case sensitive language .
2.​ def hello(num): is correct in declaring a function in python.
3.​ A while loop will always execute once.
4.​ Output for the function range(1,5,3) is 1,3​
5.​ lower() is used to convert the string to lower case
6.​ NumPy is a Python library
7.​ np.arrange() is used to create an array.

III.​ Fill in the blanks ​ ​ ​ ​ ​ ​ ​ ​ ​

1
1.​Suggest Muhammad a built-in function which helps him to print the sequence of numbers from 1 to 5.
2.​Output of min(68,69,65) is ____________________.
3.​_____________ is the operator used to find the exponent.

IV.​ Write the output of the given statements ​ ​ ​ ​ ​


1.​ Find the value of x in the following?
x = 2+9*((3*12)-8)/10
print(x)
2.​ sum=0
for k in range(5):
​ sum=sum+k
​ print(sum)
3.​ Debug the following code and find the output:
num = 10
text = "Python"
print(num + text)

V.​ Answer the following questions​ ​ ​ ​ ​ ​ ​


1.​ Why is Python commonly used for developing AI? ​ ​
2.​ Write a program using a user defined function that accepts the first name and last name as arguments,
concatenate them to get full name and display the output.
(Hint: First Name: Daniel Last Name: Josh Output: Daniel Josh
3.​Write a program using a user-defined function that accepts an integer, and increments its value by 5.

You might also like