What direction is Turtle always facing when loaded in?
East/Right
What is a syntax error?
Syntax errors are mistakes in programs that occur when the programmer makes a typo.
What is Caesar Cypher?
A method of encryption through shifting letters of a message.
Solve:
6/2-6+(12%5)
-4
What will the following print?
name = "Dragonfruit"
print(len(name))
11
The first 3 commands for starting a Turtle program
import turtle
wn = turtle.Screen()
TURTLE = turtle.Turtle()
What is the issue with the following code?
Print("Apples Oranges Chicken")
The error in the code was that the print command's first letter was capitalized.
What is public key encryption?
The use of a public key to encrypt and a private key to decrypt code.
Solve the following:
(81/9+3)-(2(23%9)+4)
-2
Using repetition (*), how would you print "hahahahaha"?
print("ha" * 5)
The lines of code to make a 10 unit x 10 unit square
for x in range(4):
TURTLE.forward(10)
TURTLE.left(90)
Where is the error in the following code?
list = (carrots, lemons, lettuce, milk)
print(list)
The error is that the list doesn't have quotation marks ("") around the items.
What is encryption and decryption?
Encryption is the method of encoding data to make it secure.
Decryption is uncoding information with a key or password.
Compute the following:
1+2+3+4**2/2+2**5
46
What would the following print?
Stuff = "chickenrainbowlemonnugget"
print(Stuff[7:11])
rain
What is the result of the following code?
import turtle
wn = turtle.Screen()
TURTLE = turtle.Turtle()
forward(20)
ERROR
(The "forward(20)" needs TURTLE. in front of it)
DA-I-LY DOUBLE!!!!!!!!
Random Question:
What is the order of planets in our solar system starting from the Sun?
Name 4 different dangers of computing.
Virus
Worm
Malware
Phishing
Rouge Access Point
Keylogging Technology
What is the value of:
9(3**3*(8%3))/6
81
What would print from the following?
Crabs = "supercalifragilisticexpialidocious"
print(Crabs.index("g"))
12
What are the angle degree turns are needed to make a triangle, square, and hexagon?
Triangle - 120 degree turn
Square - 90 degree turn
hexagon - 45 degree turn
Find the bugs in the following code.
Greeting = input(What is the number?)
Variable = Greeting * 3
print(Variable)
The enclosed question after input needs quotation marks.
The Greeting variable getting multiplied by 3 should be an integer, not a string.
What is the following message with the letters shifted up 3 times?
Zlafkd Olzhp
Coding Rocks
What is b
a=banana
b= (len(a)*4)-3*2+3**2
24
What is potato?
Chicken = "iwerierioanifeifejiififiiaiwineifiefoaepiiiii"
potato = (Chicken.count(i))
19