Python Functions, Objects & Classes Quiz Which of the following is an example of calling a function in Python? greet() def greet() greet{} call greet What is a class in Python? A function that stores variables A set of built-in functions A blueprint for an object A type of function What will be the output of the following code? def say_hello(): print(‘Hello, Python!’) say_hello() Error Hello, Python! say_hello No output What symbol is used to start the block of code inside a function in Python? [] () {} : What analogy is used in the lecture to describe a class? A book and its chapters A blueprint of a machine A tree and its leaves A construction map of a house In Python, which of the following is NOT a built-in function? min() average() sum() print() What is a class in Python? A blueprint for an object A built-in function A loop that runs functions A collection of functions What is an object in Python? A method inside a function A collection of data (variables) and methods (functions) A blueprint for a class A function that stores data What is a function in Python? A block of code that runs automatically A loop structure A block of code that runs only when called A pre-defined set of statements Which of the following is a correct way to define a function in Python? define myFunction(): def myFunction(): def myFunction: function myFunction(): Loading …