wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python

Total questions: 8

Worksheet time: 5mins

Name
Class
Date
1.

The basic unit of code reusability in Python. A block of code imported by some other code.

a)

moodle

b)

module

c)

mode

d)

model

2.

Reduce The ________(fun,seq) function is used to apply a particular function passed in its argument to all of the list elements mentioned in the sequence passed along.This function is defined in “functools” module

a)

Sequence

b)

Rename

c)

Reduce

d)

Random()

3.

It can be used when a statement is required syntactically but the program requires no action. An empty code block

a)

pass

b)

dictionary

c)

tuple

d)

elif

4.

What is a range?

a)

It's a set of elements grouping

b)

They're collections of unique but unirdered items

c)

It's an instruction to create a Tupla

d)

It's a function that returns a list of integers

5.

A style guide widely adopted by the Python community.

a)

library

b)

PEP 8

c)

glosary

d)

code runner

6.

It is similar a function, but it runs on a object.

a)

method

b)

object oriented

c)

mode

d)

runObject()

7.

Which of the follow options can be asociated with Objects (Chose every correct options)

a)

Volume

b)

Attributes

c)

Size

d)

Methods

8.

A unit code lines that can be reused or imported

a)

Print()

b)

Funtion

c)

Import

d)

Module