NEW
Font size
WorksheetsIntro to Python BBG
Total questions: 25
Worksheet time: 13mins
What is a variable?
A math operator
An element, feature, or factor that is liable to vary or change.
An if statement
A computer system that can change
What does print("hello) display?
hello
gives you an error
"hello"
"hello
What does the following code display?
a = 1
b = 2
print(a + a)
2
3
4
22
'my name' is a valid variable?
No
Yes
How do you ask an input from a user?
name = int("what is your name")
name = input(what is your name?)
input = name("what is your name?")
name = input("what is your name?")
What is a variable?
A math operator
An element, feature, or factor that is liable to vary or change.
An if statement
A computer system that can change
What does print("hello) display?
hello
gives you an error
"hello"
"hello
Finding and fixing the errors in a program
Indentation
Nesting
Event Block
Debugging
A block of code that may repeat or run more than once.
Loop
If
Function
Event Block
____________ is information the user sends to the computer
Software
Input
Secondary Memory
Program
How will the following code look on the screen?
print ("I love programming.")
print ("I love programming.")
"I love programming."
"I love programming."
I love programming.
I love programming.
I love programming. I love programming.
I LOVE PROGRAMMING
I LOVE PROGRAMMING
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
Python is used for:
Server Side Web Development
Software Development
Mathematics
All of the above
What data type is used to store a list of characters?
real
string
integer
boolean
What does IDE stand for?
Integrated Development Environment
Internet Development Editor
Internet Development Environment
Icelandic Development Editor
What does an if statement do?
Close the program
Ask a question
Make a decision
Write a comment
A series of letters, numbers, or symbols in quotation marks is:
Input
Output
String
Comment
Error
What is a number that has a decimal point?
Assignment
Concatenation
Value
Float
Integer
What is a whole number?
Assignment
Concatenation
Value
Float
Integer
what is the output of the below code snippet?
num1=10
num2=7//2
num2*=num1
print(num2)
10
35.0
30
30.0
