This set of MCQ(multiple choice questions) focuses on the The Joy of Computing using Python Week 7 Solutions.
The course carries programming to your work area with stories, similarities and distinguished models. Going reflections to experiences and designing to engineering, the course concentrates fundamentally to rouse the student’s psyche to automatically think intelligently and show up at an answer. As a feature of the course, you will figure out how to practice and culture the craft of programming with Python as a language.
Course layout
Answers COMING SOON! Kindly Wait!
Week 0: Assignment answers
Week 1:Â Assignment answers
Week 2: Assignment answers
Week 3: Assignment answers
Week 4: Assignment answers
Week 5: Assignment answers
Week 6: Assignment answers
Week 7: Assignment answers
Week 8: Assignment answers
Week 9: Assignment answers
Week 10: Assignment answers
Week 11: Assignment answers
Week 12: Assignment answers
NOTE: You can check your answer immediately by clicking show answer button. The Joy of Computing using Python Week 7 Solutions” contains 10 questions.
Now, start attempting the quiz.
The Joy of Computing using Python Week 7 Solutions
Q1. Values of CSV files are separated by?
a) Commas
b) Colons
c) Semi-colons
d) Slash
Answer: a) Commas
Q2. What is the output of the following code?
a) 1, 2, 3, 7, 11, 10, 9, 5, 6
b) 1, 2, 3, 5, 6, 7, 9, 10, 11
c) 1, 5, 9, 10, 11, 7, 3, 2, 6
d) 1, 5, 9, 2, 6, 10, 3, 7, 11
Answer: c) 1, 5, 9, 10, 11, 7, 3, 2, 6
Q3. What will be the output of the following code?
import turtle
pen = turtle.Turtle()
for i in range(3):
pen.forward(60)
pen.right(120)
turtle.done()
a) Scalar traingle
b) Right angle triangle
c) Equilateral triangle
d) Isosceles triangle
Answer: c) Equilateral triangle
Q4. Which of the following program will draw a hexagon?
Answer: b)
Q5. Which of the following library is used to render data on google maps?
a) gplot
b) googlemaps
c) gmplot
d) gmeplot
Answer: c) gmplot
Q6. What is the output of the following code?
Answer: d)
Q7. Which turtle command is equivalent to lifting up a pen.
a) penlift()
b) penup()
c) uppen()
d) penremove()
Answer: b) penup()
Q8. Why do we use functions?
a) To improve readability.
b) To reuse code blocks.
c) For the ease of code debugging.
d) All of the above
Answer: d)Â All of the above
Q9. Library used to import images?
a) PIL
b) Imageview
c) IMG
d) image
Answer: a) PIL
Q10. In snakes and ladder what can be the ways to track ladders and snakes?
a) Maintain a dictionary with snakes or ladder number blocks as keys.
b) Using the if condition to check on every number.
c) Both A and B
d) None of the above
Answer: c) Both A and B
The Joy of Computing using Python Week 7 Solutions
Q1. How ladders & snakes are represented by the instructor?
a) Through lists.
b) Through dictionaries.
c) Through if and elif conditions.
d) Through sets.
Answer: c) Through if and elif conditions.
Q2. Which of the following is the correct full form of CSV?
a) Comma separated values.
b) Colon separated values.
c) Semi-Colons separated values.
d) Tab separated values.
Answer: a) Comma separated values.
Q3. Why do we use functions?
a) To improve readability.
b) To reuse code blocks.
c) For the ease of code debugging.
d) For fun.
Answer: a), b), c)
Q4. In snakes and ladders, what can be the other ways, except for one used by the instructor, to keep track of ladders and snakes?
a) Maintain a dictionary with snakes or ladder number blocks as keys.
b) Using the if condition to check on every number.
c) Using lists.
d) None of the above
Answer: a), b), c)
Q5. Which of the following libraries is used for animation?
a) Matplotlib
b) Turtle
c) Random
d) PIL
Answer: b) Turtle
Q6. The spiral animation problem can be broken down into?
a) A list
b) A 2D table
c) A 3D table
d) A dictionary
Answer: b) A 2D table
Q7. What is the purpose of the GPS program shown in the lectures?
a) To show directions to the user.
b) To track the directions of the user.
c) To show the way to the user on maps.
d) None of the above.
Answer: b) To track the directions of the user.
Q8. What does the following program will do after execution?
a) Rename snakesraw.png as snakes.png
b) Make a copy of snakesraw.png with the name snakes.png
c) Make a copy of snakesraw.png with the name snakes.jpeg
d) Throws an error
Answer: b) Make a copy of snakesraw.png with the name snakes.png
Q9. Which of the following code will draw a star?
Answer: c)
Q10. Which method is used to fill color in shapes drawn by the turtle?
a) color
b) fillcolor
c) changecolor
d) putcolor
Answer: a), b)
<< Prev- The Joy of Computing using Python Week 6 Assignment Solutions
>> Next- The Joy of Computing using Python Week 8 Assignment Solutions
DISCLAIMER: Use these answers only for the reference purpose. Quizermania doesn't claim these answers to be 100% correct. So, make sure you submit your assignments on the basis of your knowledge.
For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.
Checkout for more NPTEL Courses: Click Here!