Python Knowledge Test
When is : symbol used in Python?
At the end of every line
At the end of conditional statements, functions, and classes
After you make a variable
pygame, time, random are examples of?
Python can be used for
All of the above
What symbol is used to create a list
What function displays information on the screen?
What kind of loop is used to repeat for a certain number of times?
What is a string in Python?
A set of numbers
A sequence of characters
Something you use on a fishing pole
A long line of code
What does elif stand for?
every life is fun
What is one way to end a while loop?
What is a conditional statement?
A complicated calculation that produces an output
A section of code that organizes functions
A statement that is conditional on whether or not the program works
A section of code that produces different results based on whether something is True or False
What is a response from a user called?
== < > are examples of?
A place to store values is called
What is a function?
A set of statements that takes input and produces output
A way to store values
A type of program
A special line of code
What is a class in Python?
where you learn python
a way to store values
it is the same as a function
a code template for creating objects
What must go around strings when used in code?
What is Python?
A programming language
A word editor
A type of computer
What is a list in python
a collection of elements or values
a program that creates a shopping list for you
a type of function
a bunch of lines of code
Why might you want to use the random library?
To make your program more fun
To have python write a random program for you
If you want the program to pick something for you
A library that contains a mix of other libraries
What kind of loop is used to repeat as long as the program is running?
2, 18, 0, 73 are examples of what kind of data type?
To use a library not included in python what do you need to do first?
import it in your code
use a different programming language
install it from command prompt
Why might you want to use the time library?
to have a delay in between lines of code
So you have more time to write your program
So you can learn how to time travel
So you know what time it is
What does GUI stand for?
General User Interface
Great User Input
Great United Ireland
Graphical User Interface
Page 1 of 1
This content is neither created nor endorsed by Google.
Terms of Service