Python - 01

Python - 01

1st - 5th Grade

11 Qs

quiz-placeholder

Similar activities

Python Quiz - 4

Python Quiz - 4

4th - 11th Grade

10 Qs

Python 101

Python 101

1st - 5th Grade

15 Qs

Python

Python

1st - 10th Grade

10 Qs

Python Series

Python Series

1st - 5th Grade

15 Qs

Comments in Python

Comments in Python

5th - 8th Grade

10 Qs

Python classes OOP

Python classes OOP

5th Grade

11 Qs

KODEKIDDO HACK #MLH3

KODEKIDDO HACK #MLH3

4th Grade - University

10 Qs

Quiz1_7C

Quiz1_7C

3rd Grade - University

15 Qs

Python - 01

Python - 01

Assessment

Quiz

Computers

1st - 5th Grade

Medium

Created by

Hector Santaella

Used 3+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How would you convert a string into lowercase?

string.lower

string.lower()

lower(string)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you get a list of all the keys in a dictionary?

mydict.keys()

mydict.keys

keys.mydict

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How would you declare a comment in Python?

¢Comment

#Comment

//Comment

{/*

Comment

/*}

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Syntax for a lambda function in Python

lambda arguments : expression

lambda expression : arguments

lamb expression : arguments

l expression : arguments

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How would you check if a key exists in a Python dictionary?

my_dictionary.has_key(key_to_lookup)

my_dictionary.has(key_to_lookup)

has_key(my_dictionary)

6.

MULTIPLE CHOICE QUESTION

45 sec • Ungraded

Python is only for backend?

Yes

No

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Example for snake-case

one_attribute

One_attribute

oneAttribute

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?