Central Command(s)
Python Programming Principles
How It Works
(De)bugging Out
You Will Answer These
Or (If/Elif)Else
100

Which command will display the text 'Hello world!' on the screen? 

A) print(Hello world!) 

B) print("Hello world!")

C) print "Hello world!" 

D) print = "Hello world!" 

The Correct Answer is : 

B) print("Hello world!")

100

What is a variable? 

A) A piece of data that can change

B) A coding technique 

C) A piece of data you cannot change 

D) A special file 

The correct answer is:

A) A piece of data that can change

100

Write the code that will correctly ask the user for their age? 

age = input("How old are you?")

100

Fix the following code:

name = "Zoey"

print(Zoey)

name = "Zoey"

print(name)

100

Which of these codes tests whether the variable x is the same as 'Hello'? 

A) if x = "Hello" 

B) if x == "Hello"

C) if x != "Hello" 

D) if x <> "Hello"

The correct answer is:

B) if x == "Hello"

200

myName = input() - 

Is myName a string, a function, a variable, or a method 

A) String

B) Variable

C) Function

D) Method

The correct answer is:

B) Variable

200

What does input do? 

A) It allows users to change the program 

B) It allows a user to solve a task 

C) It converts data types 

D) It allows users to enter data

The correct answer is :

D) It allows users to enter data

200

What is the result of this command? print ("5" + "3") 

A) 8 

B) "8" 

C) "5" + "3" 

D) 53

The correct answer is :

D) 53

200

Fix the following code:

if x = 8:

    print(x)

if x == 8:

    print(x)

200

What is the output?

basketball_player = "Steph Curry"

if basketball_player == "Lebron James":

     print("I mean, he's alright I guess.")

else:

     print("They might be better than Lebron!")

They might be better than Lebron!

300

Which function will convert a number to a string? 

str()

300

What data type is 3.95? 

Float

300

Which decision statement will be triggered if the variable x is less than 20? 

A) if x > 20: 

B) if x == 20: 

C) if x <> 20: 

D) if x < 20:

The correct answer is:

D) if x < 20:

300

Assume that this is meant to be a dictionary. Fix the code:

class = ["Jaxon": 100,

"Jayce": 100

"Hannah": 98

]

class = {"Jaxon": 100,

"Jayce": 100,

"Hannah": 98

}

300

What is the output?

name = "Ryann"

if name == "Jackson":

    print("This guy yaps a lot!")

else:

     print("This person isn't Yapson Bowness!")

This person isn't Yapson Bowness!

400

Which function will convert a string containing only digits into a whole number? 

int()

400

What data type is True/False?

Boolean

400

How would we fix this code? 

name= "Bob"

print(Name)

The correct answer is:

Make 'Name' lower case

400

Fix the following code:

names = [Brianna, Gillian, Cannon]

names = ["Brianna", "Gillian", "Cannon"]

400

What would the output of this code be if the user entered the value 70? 

if grade >= 80:

    print("Distinction")

elif grade >=70:

    print("Merit")

elif grade >= 60:

    print("Pass")

Merit

500

What effect does the # character have? 

A) Tells Python that this is a really important line of code. 

B) Tells Python to tweet when this line of code gets run. 

C) Tells Python that line is a comment.

D) It does nothing, Python ignores this character. 

The correct answer is:

C) Tells Python that line is a comment.

500

Is Python front-end or back-end development?

Back-end development

500

What would the output of this program be? 

number1=3

number2=7

number3=5

print(number1+number2*number3)

The correct answer is:

38

500

Fix the following code:

define class():

     print("These goofballs will hopefully figure out the problem here!")

def class():

     print("These goofballs will hopefully figure out the problem here!")

500

What would the output be of this code?

status = True

if status = True:

     print("We know the answer to this!")

This would give no output because there is an error.

if status == True: