
AI for Youth – Machine and Minds
Authored by S4DS DYPCOE
Education
8th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print("Hello" + " World")
Hello World
HelloWorld
Hello+World
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to take input from a user in Python?
input = "Enter your name"
name = input("Enter your name: ")
name = input["Enter your name"]
input(name) = "Enter your name"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the code?
Yes
No
Error
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is immutable (cannot be changed) in Python?
List
Tuple
Dictionary
Set
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the value of key 'age' in the dictionary?
student[age]
student.get("age")
student("age")
student.get(age)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following list operation?
[1, 2, 3]
[1, 2, 3, 4]
[1, 2, 3, 4, None]
[1, 2, 3, (4)]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to check if a key exists in a dictionary?
'key' in dict
dict.has_key('key')
dict.exist('key')
dict.find('key')
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?