Python Programming Quiz

2 Questions  I  By Singaporetips
Please take the quiz to rate it.

Programming Quizzes & Trivia
This is a quiz to test on basic Python Programming. More quiz questions can be found at http://pyschools. Com

  
Changes are done, please start the quiz.


Questions and Answers

Removing question excerpt is a premium feature

Upgrade and get a lot more done!
1.  A function, convert_to_grade takes in a number and returns the letter grade for it.Another function, convert_to_text takes in a letter grade and returns some words of encouragement based on the letter grade.If you would like to get some words of encouragement for someone who scored 20 marks, what code should be executed?
A.
B.
C.
D.
E.
2.  Which of the following options create an instance of Laptop and change the color of the laptop to white correctly?class Laptop:    def __init__(self, capacity):        self.capacity = capacity        self.color = 'green'    def change_color(self, new_color):       self.color = new_color
A.
B.
C.
D.
Back to top

Removing ad is a premium feature

Upgrade and get a lot more done!
Take Another Quiz
We have sent an email with your new password.