AI for Youth – Machine and Minds

AI for Youth – Machine and Minds

8th Grade

10 Qs

quiz-placeholder

Similar activities

Python - Factory

Python - Factory

3rd - 8th Grade

15 Qs

BASIC COMPUTER

BASIC COMPUTER

7th - 8th Grade

15 Qs

Python Basics 🐍

Python Basics 🐍

2nd Grade - Professional Development

5 Qs

Основи Python

Основи Python

7th - 12th Grade

12 Qs

Lesson 1

Lesson 1

1st Grade - University

14 Qs

Peri Baris (Penilaian Harian Bahasa Inggris)

Peri Baris (Penilaian Harian Bahasa Inggris)

8th Grade

15 Qs

GREETINGS AND FAREWELLS

GREETINGS AND FAREWELLS

1st - 8th Grade

10 Qs

AI for Youth – Machine and Minds

AI for Youth – Machine and Minds

Assessment

Quiz

Education

8th Grade

Medium

Created by

S4DS DYPCOE

Used 3+ times

FREE Resource

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

Media Image

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

Media Image

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

Media Image

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?