Python 10.4

Python 10.4

4th - 7th Grade

20 Qs

quiz-placeholder

Similar activities

Grade 6 exam practice

Grade 6 exam practice

6th Grade

15 Qs

Pop Quiz #3

Pop Quiz #3

6th Grade

15 Qs

Python programming

Python programming

6th Grade

20 Qs

End of year quiz: Small Basic

End of year quiz: Small Basic

7th Grade

20 Qs

Dash & Dot Programming

Dash & Dot Programming

3rd - 5th Grade

15 Qs

JAVA: Level-1

JAVA: Level-1

5th - 12th Grade

15 Qs

Assessment #2

Assessment #2

5th Grade - Professional Development

20 Qs

Python Revision

Python Revision

7th - 8th Grade

22 Qs

Python 10.4

Python 10.4

Assessment

Quiz

Computers

4th - 7th Grade

Medium

Created by

John Richards

Used 15+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What construct is used in line 3
Selection
Iteration
Sequence
Loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a function? 
def
if
while
for

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To obtain the length of a string, you can use which function?
length()
len()
index()
length_input()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to immediately terminate a loop
break
continue
stop
terminate

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
How would you convert "hello" to lower case?
"hello".lower()
lower"hello"
lower.("hello")
("hello").lower

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a multi-line comment?
"""Multi-line Comment Here"""
""Multi-line Comment Here""
"Multi-line Comment Here"
'Multi-line Comment Here'

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image
Why will the third line not work?
Because num could be an integer, float or a string
Because num will always be greater than count
Because count doesn't add 1
Because num will never be an integer

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?