AI for Youth – Machine and Minds

AI for Youth – Machine and Minds

8th Grade

10 Qs

quiz-placeholder

Similar activities

Programming Questions

Programming Questions

8th Grade

11 Qs

Paris

Paris

6th - 9th Grade

12 Qs

naruto

naruto

5th - 12th Grade

15 Qs

Python quiz

Python quiz

KG - Professional Development

10 Qs

Lesson 12 - Transfer statements

Lesson 12 - Transfer statements

5th - 8th Grade

10 Qs

Python-8CB

Python-8CB

8th Grade

10 Qs

Logic Programming Day 1 Quiz

Logic Programming Day 1 Quiz

7th - 12th Grade

10 Qs

Java Strings

Java Strings

1st Grade - Professional Development

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?