
Grok- Python Quiz
Authored by Lachlan Secondary
Professional Development
10th Grade
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Correct Python Code View for Hello, World! is?
Print ('hello, World!')
print ('Hello, World!')
Print (“hello, world!”)
print (Hello World)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Correct Python Code View of What is your name? is?
name = input(“what is your name? ')
name = input('What is your name.)
name = input('What is your name? ')
name=input('What is your name? ')
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Correct Python Code View of Hello, Mia is?
print('Hello,', name)
pRint('Hello,', name)
print('Hello,', NAME)
print ('HelloName’)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Correct Python Output View of:
print ("So you call yourself '" + name + "' huh?")
So you call yourself 'Rory' huh?
So You call your self 'Rory' huh?
So you call yourself 'Rory' Huh”
So you call yourself 'Rory' HUH?”
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Friend1 = input("Friend: ")
print ("Hello, young " + Friend1)
output view is:
Friend: Trever
Hello, young Trever
friend: Trever
hello, young Trever
Friend Trever
Hello young Trever
FriendTrever
Hello, young Trever
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
text = input('Enter text: ')
print(len(text))
is an example of:
Enter text: hi
2
Enter text: BOO
4
Enter text: Hello
10
Enter TEXT: Hiiii
2
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
word = input('What do you want me to say? ')
num = int(input('How many times do you want me to say it? '))
print (word * num)
an example is:
What do you want me to say? Hi
How many times do you want me to say it? 2
HiHi
What do you want me to say? HI
How many times do you want me to say it? 1
HIHIHI
What do you want me to do?
How many times do you want me to say it? 1
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?