0% found this document useful (0 votes)
46 views

Python - Quizizz

This document contains a 20 question quiz about Python fundamentals like variables, data types, and basic functions. The quiz covers core Python concepts for beginners such as defining variables, using print statements, and differentiating between data types like integers, floats, and strings.

Uploaded by

anonyme00237
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Python - Quizizz

This document contains a 20 question quiz about Python fundamentals like variables, data types, and basic functions. The quiz covers core Python concepts for beginners such as defining variables, using print statements, and differentiating between data types like integers, floats, and strings.

Uploaded by

anonyme00237
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

3/25/24, 11:53 AM Python | Quizizz

Worksheets Name

Python
Class
Total questions: 20
Worksheet time: 10mins
Date
Instructor name: Ms. Sara Khalid

1. What is a variable?

a) a type of memory b) a type of graphics

c) A box(memory location) where you store values d) Data type

2. What symbol is used in python to assign values to a variable?

a) equals = b) asterisk *

c) forward slash / d) plus +

3. What will be the output?


name = "Dave"
print (name)

a) name b) (name)

c) 'Dave' d) Dave

4. When you have an error in your code what is the term to summarise finding and fixing that error?

a) Syntax finder b) Error checking

c) Error finder d) Debugging

5. A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly

a) True b) False

6. What is Python?

a) word processor b) spreadsheet

c) text based programming language d) block based programming language

7. Which statement correctly assigns the string "Tanner" to the variable name?

a) name = input("Tanner") b) name = print( "Tanner")

c) input("Tanner") d) name = "Tanner"

8. What does the term 'debug' mean?

a) A set of instructions b) Making a calculation

c) Identify errors and fix them. d) Looking at code

9. What does the print function do in python?

a) It can input data. b) It loops the code.

c) It's a variable. d) It displays an output

https://quizizz.com/print/quiz/6232a71335a65f001fbbb6f2 1/3
3/25/24, 11:53 AM Python | Quizizz

10. What is the Python built-in function used to display numbers and text on the screen?

a) command b) input

c) print d) output

11.

In the following code, "city" is an example of a what?

a) Array b) Loop

c) Variable d) List

12. The correct way to write a variable in Python?

a) my_variable = 10 b) my_variable: 10

c) my_variable is 10 d) my variable = 10

13. In python the ' INTEGER data type' can be defined as...?

a) holds alphanumeric data as text b) holds whole numbers

c) holds either ‘true’ or ‘false’ d) holds numbers with a decimal point

14. In python the ' STRING data type' can be defined as...?

a) holds either a true or false value b) holds alphanumeric text

c) holds numbers with a decimal point d) hold whole numbers

15. In python the ' FLOAT data type' can be defined as...?

a) hold either true or false b) holds alphanumerical data

c) holds a decimal point in a number d) holds whole numbers

16. In python the ' BOOLEAN data type' can be defined as...?

a) holds whole numbers b) holds alphanumerical data

c) holds a number with a decimal point d) holds either true or false

17. what is correct code for INTEGER in python?

a) int b) in

c) ing

18. What is the output from the following code?


print ("hello world")

a) print hello world b) Hello World

c) hello world

https://quizizz.com/print/quiz/6232a71335a65f001fbbb6f2 2/3
3/25/24, 11:53 AM Python | Quizizz

19.

Which of the following is a float?

a) new_var = "True" b) new_var = 1234

c) new_var = True d) new_var = 1.234

20. The requirements for printing a string in Python are:

a) ( ) , ! and " " b) " " and !

c) ( ) and " " d) ( ) and !

https://quizizz.com/print/quiz/6232a71335a65f001fbbb6f2 3/3

You might also like