wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Commands

Total questions: 12

Worksheet time: 7mins

Name
Class
Date
1.

It is used to define a null value, or no value at all.

a)

null

b)

none

c)

no

2.

The structure of a program

a)

Syntax

b)

import

c)

class

3.

It is an alternative statement that is executed if the result of a previous test condition evaluates to false.

a)

del

b)

if

c)

else

4.

It is a code template for creating objects.

a)

Compiler

b)

class

c)

Bug

5.

It can also be used to delete variables, lists, or parts of a list etc.

a)

dell

b)

delf

c)

del

6.

The process of finding and removing any of the three kinds of programming errors.

a)

Bug

b)

Debugging

c)

global

7.

It is used to produce an exception to interrupt the code execution

a)

Raise

b)

if

c)

else

8.

It is used to end the execution of the function call and gives the result to the caller.

a)

Return

b)

Global

c)

class

9.

It is used for decision-making operations. It contains a body of code which runs only when the condition given in the statement is true.

a)

none

b)

else

c)

if

10.

It allows you to modify the variable outside of the current scope.

a)

import

b)

del

c)

global

11.

The activity or job of writing computer programs.

a)

Syntax

b)

Programming

c)

Compiler

12.

A computer program that changes instructions into machine language

a)

Raise

b)

Programming

c)

Compiler