Chapter 2 Module Phyton

Chapter 2 Module Phyton

University

10 Qs

quiz-placeholder

Similar activities

Kuis Manipulasi DOM

Kuis Manipulasi DOM

University

8 Qs

Python for loop/lists

Python for loop/lists

9th Grade - University

15 Qs

Preguntas sobre Python

Preguntas sobre Python

University

10 Qs

Quiz Pemrograman Python

Quiz Pemrograman Python

10th Grade - University

15 Qs

Увлекательный мир Python

Увлекательный мир Python

6th Grade - University

9 Qs

Abstracciones procedimentales

Abstracciones procedimentales

University

10 Qs

G9-Introduction to Python Selection

G9-Introduction to Python Selection

9th Grade - University

6 Qs

Python Challenge

Python Challenge

University

15 Qs

Chapter 2 Module Phyton

Chapter 2 Module Phyton

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

MUNIRAH (PMJ)

Used 52+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a module in Python?

A collection of variables.

An error message.

A built-in function.

A file containing Python definitions and statements.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you import a module in Python?

 include module_name

using module_name

 import module_name

require module_name

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

3.14

3.1415

3.14159

3.141592653589793

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a built-in module in Python?

calculator

my_module

random

 greeting

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

A random number between 0 and 5

A random number between 1 and 5

A random number between 1 and 6

A random number between 0 and 4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code do?

 Prints the current date

Prints the current time

Prints the current date and time

Prints the current year

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about modules?

Modules cannot be imported into other modules.

Modules promote code reuse and organization.

A module can only contain functions.

Modules must be written in a special syntax.

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?