Semester Final Comp Sci 1 (1/12/2024)
star
star
star
star
star
Last updated over 1 year ago
20 questions
1
What is output by the code below?print("Comp Sci")print("Rocks")
What is output by the code below?
print("Comp Sci")
print("Rocks")
1
What is output by the code below?print("I am a \tninja")
What is output by the code below?
print("I am a \tninja")
1
What is output by the following code?print("Math and \nScience")
What is output by the following code?
print("Math and \nScience")
1
What is output by the following code?game = "chess"print("Play")print(game)
What is output by the following code?
game = "chess"
print("Play")
print(game)
1
What is output by the code below?p1 = "cherry"p2 = "chocolate"print("Do you want", p2, "or", p1, "pie?")
What is output by the code below?
p1 = "cherry"
p2 = "chocolate"
print("Do you want", p2, "or", p1, "pie?")
1
What is output by the code below?print((11%4)+3)
What is output by the code below?
print((11%4)+3)
1
What is output by the code below?print((13//2)+17)
What is output by the code below?
print((13//2)+17)
1
What is output by the code below?print(11.0/2)
What is output by the code below?
print(11.0/2)
1
What is output by the code below?num = 21num = num + 7print(num)
What is output by the code below?
num = 21
num = num + 7
print(num)
1
What is output by the code below?x = 54y = 3.5print(x-y)
What is output by the code below?
x = 54
y = 3.5
print(x-y)
1
What is output by the code below?def area(width,length): return width * length
print(area(2,2))
What is output by the code below?
def area(width,length):
return width * length
print(area(2,2))
1
What is output by the code below?def area(width,length): return width * length
print(area(6,5))
What is output by the code below?
def area(width,length):
return width * length
print(area(6,5))
1
What is output by the code below?def double(word): print(word, word)
double("aplus")
What is output by the code below?
def double(word):
print(word, word)
double("aplus")
1
What is output by the code below?def tripleIt(word): print(word, word, word)
tripleIt("tree")
What is output by the code below?
def tripleIt(word):
print(word, word, word)
tripleIt("tree")
1
What is output by the code below?def driving(vehicle): print("You are driving a", vehicle)
driving("van")
What is output by the code below?
def driving(vehicle):
print("You are driving a", vehicle)
driving("van")
1
What is output by the code below?def volume(width, length, height): return width * length * height
print(volume(2,2,2))
What is output by the code below?
def volume(width, length, height):
return width * length * height
print(volume(2,2,2))
1
What is output by the code below?def volume(width, length, height): return width * length * heightprint(volume(2,3,4))
What is output by the code below?
def volume(width, length, height):
return width * length * height
print(volume(2,3,4))
1
What is output by the code below?def singing(song): print("They are singing",) print(song)
singing("Twinkle Twinkle Little Star")
What is output by the code below?
def singing(song):
print("They are singing",)
print(song)
singing("Twinkle Twinkle Little Star")
1
What is output by the code below?def slope(deltaX, deltaY): return deltaY/deltaX
print(slope(4,8.0))
What is output by the code below?
def slope(deltaX, deltaY):
return deltaY/deltaX
print(slope(4,8.0))
1
What is output by the code below?def sayStuff(): print("Hello")
print("World")
sayStuff()
What is output by the code below?
def sayStuff():
print("Hello")
print("World")
sayStuff()