Python Function Structure

Python Function Structure

8th - 12th Grade

18 Qs

quiz-placeholder

Similar activities

Python

Python

8th - 11th Grade

13 Qs

Square and Cube Roots HW

Square and Cube Roots HW

7th - 8th Grade

20 Qs

Numbers

Numbers

6th - 9th Grade

20 Qs

SAT Math Practice

SAT Math Practice

11th - 12th Grade

20 Qs

Simplifying Square Roots

Simplifying Square Roots

7th - 12th Grade

15 Qs

1.2C Dividing Square Roots

1.2C Dividing Square Roots

9th - 12th Grade

15 Qs

Simplify Square Roots

Simplify Square Roots

8th - 10th Grade

15 Qs

Rationalize the Denominator

Rationalize the Denominator

9th - 12th Grade

14 Qs

Python Function Structure

Python Function Structure

Assessment

Quiz

Other, Mathematics

8th - 12th Grade

Medium

Created by

Larsen Jessica

Used 25+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a library in python?

COLLECTION OF FILES

COLLECTION OF FUNCTIONS

IT IS SUBPROGRAM

NAME OF A FILE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

exp(),floor()belongs which libraries?

cmath.py

urlib.py

math.py

statistics.py

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the extension of python library modules?

.mod

.lib

.code

.py

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you tell python you want to use the turtle library

turtle import

import turtle

from libraries import turtle

from turtle import libraries

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In python which is the correct method to load a module math?

include math

import math

#include<math.h>

using math

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

A collection of modules and packages that can be imported into a program is called a __________.

class

documentation

library

function

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How could you use the sqrt function from the math module to print the square root of 16?

import sqrt print(math.sqrt(16))

from math import sqrt print(math.sqrt(16))

from math import sqrt print(sqrt(16))

import sqrt print(sqrt(16))

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?