Python Functions, Objects & Classes Quiz

 

What analogy is used in the lecture to describe a class?

 
 
 
 

 

In Python, which of the following is NOT a built-in function?

 
 
 
 

 

What symbol is used to start the block of code inside a function in Python?

 
 
 
 

 

Which of the following is an example of calling a function in Python?

 
 
 
 

 

What is a class in Python?

 
 
 
 

 

What will be the output of the following code?

def say_hello():
print(‘Hello, Python!’)
say_hello()

 
 
 
 

 

What is a function in Python?

 
 
 
 

 

What is an object in Python?

 
 
 
 

 

What is a class in Python?

 
 
 
 

 

Which of the following is a correct way to define a function in Python?

 
 
 
 

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments