AI for Youth – Machine and Minds

AI for Youth – Machine and Minds

Assessment

Flashcard

Education

8th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the output of print("Hello" + " World")?

Back

Hello World

2.

FLASHCARD QUESTION

Front

What is the correct way to take input from a user in Python? Options: input = "Enter your name", name = input("Enter your name: "), name = input["Enter your name"], input(name) = "Enter your name"

Back

name = input("Enter your name: ")

3.

FLASHCARD QUESTION

Front

What will be the output of the code? Options: Yes, No, Error, None

Back

Yes

4.

FLASHCARD QUESTION

Front

Which of the following is immutable (cannot be changed) in Python? List, Tuple, Dictionary, Set

Back

Tuple

5.

FLASHCARD QUESTION

Front

How do you access the value of key 'age' in the dictionary?

Back

student.get("age")

6.

FLASHCARD QUESTION

Front

What will be the output of the following list operation?
Options:
[1, 2, 3],
[1, 2, 3, 4],
[1, 2, 3, 4, None],
[1, 2, 3, (4)]

Back

[1, 2, 3, 4]

7.

FLASHCARD QUESTION

Front

What is the correct way to check if a key exists in a dictionary? Options: 'key' in dict, dict.has_key('key'), dict.exist('key'), dict.find('key')

Back

'key' in dict

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?