wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MIND FIZZ

Total questions: 20

Worksheet time: 3mins

Name
Class
Date
1.

How many CPUs will the threading library use?

a)

Zero. threading does not make use of CPUs.

b)

One

c)

Two

d)

All available CPUs

2.

Who developed Python Programming Language?

a)

Wick van Rossum

b)

Rasmus Lerdorf

c)

Guido van Rossum

d)

Niene Stom

3.

Python language was developed in what year?

a)

1985

b)

2001

c)

1991

d)

1820

4.

Is python an interpreter or compiler programming language?

a)

Compiler

b)

Interpreter

5.

Python is uses braces to block off code

a)

True

b)

False

6.

Python correct naming convention for constants is?

a)

firstName

b)

First_Name

c)

FIRST_NAME

d)

firstname

7.

What output will the console show, if 15 and 30 are entered by the user?

a)

Syntax error

b)

The sum of the two numbers - 45

c)

The concatenation of the two numbers - 1530

d)

Complier error

8.

What result will display in the shell if 15 and 20 is entered by the user?

a)

"num1 + num2"

b)

1520

c)

35

9.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
10.
Which statement correctly assigns the string "Tanner" to the variable name?
a)
name  = print( "Tanner")
b)
input("Tanner")
c)
name = "Tanner"
d)
name = input("Tanner")
11.

Which of the functions can be used to delete column/row from a DataFrame?

a)

pop()

b)

at()

c)

drop()

d)

iloc()

12.

The list needs one more name added to the end - "Felipe". Which piece of code below would do this?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

a)

nameList.append(Felipe)

b)

append(nameList,"Felipe")

c)

nameList.append["Felipe",7]

d)

nameList.append("Felipe")

13.

What is the function of the reverse method for lists?

a)

removes the first occurrence of the information inside the parenthesis

b)

adds the information inside the parenthesis to the end of the list

c)

reverses the order of the elements inside a list

d)

sorts the list (lowest to highest for numbers and alphabetical order for strings)

14.
What button do you press to compile (run) your program so that it runs in the shell?
a)
F3
b)
F5
c)
F7
d)
F9
15.

What will be the output of this code?

a)

1,2,3,4,5,6,7,8,9,10,11,12

b)

0,2,4,6,8,10

c)

2,4,6,8,10,12

d)

2,4,6,8,10

16.

Leo wants to create a function that will roll a dice. Which is the correct function definition header?

a)

def dice roll ():

b)

def diceroll ()

c)

def diceroll ():

d)

def diceroll []:

17.
What is a semantic error?
a)
To translate a program written in a high-level language into a low-level language all at once, in preparation for later execution.
b)
An error in a program that makes it do something other than what the programmer intended.
c)
An error in a program that makes it impossible to parse (and therefore impossible to interpret).
d)
A program in a high-level language before being compiled.
18.

What is the process of converting one datatype to another called?

a)

Data conversion.

b)

Type Casting.

c)

Type Conversion.

d)

Concatenation.

19.

What is concatenation?

a)

Replacing a string variable with another string variable

b)

Combining two variables such as first name and last name

c)

One of the food options in the canteen on Friday

d)

A large collection of cats in an open space

20.

What arithmetic operations does // perform in Python?

a)

Remainder

b)

Division

c)

Floor Division

d)

Modulus