Tuesday, 10 September 2019

The Joy of Computing using Python: Assignment 7


1 point
1. In the function gmplot.GoogleMapPlotter(a, b, c), what are a, b and c?
 
 
 
 
1 point
2. What is the output shape of the program?
import turtle
t=turtle.Pen()
for i in range(4):
t.forward(60)
t.left(90)
 
 
 
 
1 point
3. What is the output of following code snippet?
from PIL import Image
im = Image.open("bride.jpg")
im.rotate(45).show()
 
 
 
 
1 point
4. State True or False
   Turtle programming is same as that performed in Logo
 
 
1 point
5. What is the output shape of the following program?
import turtle
polygon = turtle.Turtle()
num_sides = 6
side_length = 70
angle = 360.0 / num_sides
for i in range(num_sides):
    polygon.forward(side_length)
    polygon.right(angle)
turtle.done()
 
 
 
 
1 point
6. What is the correct sequence of cells in a 5*5 matrix that should be displayed for spiral traversing animation?
 
 
 
 
1 point
7. Which of the following scenarios is considered as a win in snakes and ladders?
 
 
 
 
1 point
8. Which of the following statements is true about PIL?
 
 
 
 

0 comments:

Post a Comment