AI for Youth – Machine and Minds
Quiz
•
Education
•
8th Grade
•
Practice Problem
•
Medium
S4DS DYPCOE
Used 3+ times
FREE Resource
Enhance your content in a minute
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')
Create a free account and access millions of resources
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?
Similar Resources on Wayground
10 questions
Earth and Life Science - MINERALS
Quiz
•
7th - 11th Grade
13 questions
Technologies Terminology -Year 8 Materials
Quiz
•
7th - 8th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
10 questions
Amazon
Quiz
•
1st - 12th Grade
12 questions
Spanish: Basic words
Quiz
•
1st Grade - Professio...
15 questions
Notability Refresh
Quiz
•
6th - 8th Grade
13 questions
computer components
Quiz
•
8th - 10th Grade
12 questions
Bass Clef Ledger Lines
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
