Python Programming Quiz

Python Programming Quiz

University

18 Qs

quiz-placeholder

Similar activities

SAD Quiz 8

SAD Quiz 8

University

20 Qs

c++

c++

University

22 Qs

VB - MCQ on Events and Properties

VB - MCQ on Events and Properties

University

15 Qs

Java Programming

Java Programming

University

20 Qs

QUIZ CC 102 (FUNCTIONS)

QUIZ CC 102 (FUNCTIONS)

University

15 Qs

Java Operators

Java Operators

University

14 Qs

Blackboard Learning

Blackboard Learning

University

15 Qs

System Analysis and Design

System Analysis and Design

University

15 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Yamna ‘s

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Function?

Function is reusable piece of program

are defined using the def keyword.

AŌer this keyword comes an idenƟfier name for the funcƟon, followed by a pair of parentheses which may enclose some names of variables, and by the final colon that ends the line.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the advantages of funcƟons in python?

Reducing duplication of code

Decomposing complex problems into simpler pieces

Improving clarity of the code

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the features of DocString?

Provide a convenient way of associating documentation with Python modules, functions, classes, and methods

All functions should have a docstring

Docstrings can be accessed by the __doc__ aƩribute on objects

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the advantages of using modules?

Provides a means of reuse of program code

Provides a means of dividing up tasks

Provides a means of tesƟng individual parts of the program

5.

OPEN ENDED QUESTION

3 mins • 1 pt

What is a Polymorphism?

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

What is an EncapsulaƟon?

Evaluate responses using AI:

OFF

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Object?

An object is an entity.

Each object is an instance of a Class or Subclass with the Class's methods and variables.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?