AI for Youth – Machine and Minds

AI for Youth – Machine and Minds

Assessment

Flashcard

Education

8th Grade

Practice Problem

Hard

Created by

Wayground 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

Media Image

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?

Media Image

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)]

Media Image

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?