Python Programming Quiz

Python Programming Quiz

University

18 Qs

quiz-placeholder

Similar activities

C++ - Functions

C++ - Functions

University

14 Qs

Quiz on Learning Science and Visual Programming

Quiz on Learning Science and Visual Programming

2nd Grade - University

17 Qs

MCAC0019 Quiz (Based on MODULES & PACKAGES)

MCAC0019 Quiz (Based on MODULES & PACKAGES)

University

15 Qs

Kuis Week 2 PPMPL

Kuis Week 2 PPMPL

University

16 Qs

Chapter 16 (UNIX II)

Chapter 16 (UNIX II)

University

15 Qs

ITC303 QUIZ #1

ITC303 QUIZ #1

University

15 Qs

Problem solving technique-Function

Problem solving technique-Function

12th Grade - University

15 Qs

Unit 23 - KLO 4 - Procedural Programming

Unit 23 - KLO 4 - Procedural Programming

University

20 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?