You are on page 1of 3

BAPTIST ACADEMY MATRIC HR. SEC.

SCHOOL
QUARTERLY EXAM
CLASS : IX MARKS: 50
SUBJECT : COMPUTER SCIENCE TIME:1.30 HOURS
-------------------------------------------------------------------------------------------------------------------------
I. Choose the correct answer: (5 x 1 =5)
1. Which one of the following is the library involved in image processing?
a) Scikit-image b) OpenCV c) Mahotas d) Pillow e)All the Above
2. The addWeighted() method generate an output for a __bit colour image.
a) 8 b) 16 c) 24 d) 6
3. The sub module scipy.ndimage provides functions that work on ___ dimensions.
a) 2 b) 3 c) 4 d) n
4. In using GaussianBlur() method, sigmaX and SigmaY, need to be specified,which are X and Y
___respectively.
a) sides b) degrees c) directions d) variables
5. new_img=a*original_img+b
In this equation, whenever 'a' value is greater than one it indicates____ contrast.
a) greater b) no c) less d) equal

II. Fill in the blanks: (5 x 1 =5)


1. Image Processing is the process of converting an image into a digital aspect and
performing various functions on it.
2. The computer assigns each pixel a value based on its degree of Darkness.
3. Inorder to rotate the image, a cv2 method which is called wrapAffine is used.
4. SciPy module is used for basic deception and processing tasks.
5.OpenCV library allows us to identify objects faces and human handwriting from images and
videos.

III.Match the following: (5 x 1 =5)


1. PIL -writen in C++
2. imshow() - developed in 2009
3. Converting an image to grayscale -resize()
4. SimpleTK - to display an image in memory
5. Resizing an image -cvtColor()

IV. Give one word answer: (5 x 1 =5)


1.Which is the smallest unit of a digital image or graphics that can be displayed and represented
on a digital display device?
Pixel
2. What is the other name of canny edge detector?
Optimal detector
3. what Method can be used for cropping using Numpy? Array slicing
4. To detect the edge of any image what method of openCV can be used? Canny()
5. Which colour is treated as the strongest colour?
White

State true or false: (5 x 1 =5)


1. CV means a field of study that understands the content of digital images of photographs and
videos. True
2.Computer Vision does not allow us to identify objects faces and human handwriting from
images and videos. False
3.Mahotas is a type of Python and Graphics Editor. True
4. Pixel value is used to convert images into numbers. True
5. RGB stands for red Green Brown. False

Pick the odd one out: (5 x 1 =5)


1. SciPy, PIL, OpenCV, RGB
2. imread(), imshape(), imwrite(), imshow()
3. rotate, blur, flowchart,grayscale, RGB
4. Arithmetic, Lexical, Logical, Relational
5. Red, Blue, Green,Yellow

Find the output for the given Python codes: (10 x 1 =10)
1.The output for the following coding is:
x,y,z=5,6,7
print(x)
print(y)
print(z)
a)5 b)7 c)6 d)7
6 6 5 5
7 5 7 6
2. The output for the following coding is:
F_name=”Computer”
L_name=”Science”
print(F_name+L_name)
a)ComputerScience b)Science Computer c)Computer Science d)Computer+Science
3.course=[Engineering, Medical, Nursing, Psycology]
print(course[2])
a) Engineering b) Medical c) Nursing d) Psycology
4. x=50
y=5
z=x%y
print(z)
a)5 b)2 c)0 d)3
5. n1=input(“Enter first number:”)
n2=input(“Enter second number:”)
ans=n1**n2
print(“The answer is “+ans)
a)Enter the first number:3 b)Enter the first number:6 c)Enter the first number:7 d)Enter the first number:3
Enter the second number:2 Enter the second number:8 Enter the second number:4 Enter the second number:4
9 The answer is 14 The answer is 74 34
6. i=1
while(i<=5):
print(i)
i+=1
a)1 b)0 1 2 c)1 2 3 4 5 d)error
7. age=input(“Enter Ur age:”)
Here, in the above coding, what type of data will be got as input?
a)int b)str c)bool d)float
8. Which of the following is a valid variable name?
a) 1stName b)@gmail c)kith&kim d)L_name
9. Which symbol is used for commenting?
a)# b)@ c)$ d)!
10.

VIII. Answer the following: (5 x 2 =10)


1. What is image processing?
2. What is openCV?
3. What are the steps to rotate an image?
4. What is Image Cropping?
5. How to blur an image
*****ALL THE BEST*****

You might also like