питон 4

питон 4

Professional Development

46 Qs

quiz-placeholder

Similar activities

Inference

Inference

6th Grade - Professional Development

41 Qs

Teaching and Assessment_preliminary

Teaching and Assessment_preliminary

University - Professional Development

50 Qs

Final Exam

Final Exam

Professional Development

50 Qs

СPE UNIT 7

СPE UNIT 7

Professional Development

51 Qs

Parts of speeches

Parts of speeches

5th Grade - Professional Development

46 Qs

Appearance_Fashion

Appearance_Fashion

Professional Development

41 Qs

CONVERSATION TEST #1 --> NAN

CONVERSATION TEST #1 --> NAN

8th Grade - Professional Development

43 Qs

Grammar & Vocabulary Quiz

Grammar & Vocabulary Quiz

Professional Development

50 Qs

питон 4

питон 4

Assessment

Quiz

English

Professional Development

Medium

Created by

кек .

Used 2+ times

FREE Resource

46 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the not keyword in Python?

Reverses the result of a boolean expression.

Compares two values

Assigns a value to a variable

Ends a loop.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(type([1, 2, 3]))?

<class 'list'>

<class 'tuple'>

<class 'set'>

<class 'dict'>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function can you use to iterate over both keys and values of a dictionary?

items()

keys()

values()

iterate()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? print(10 / 4)

2.5

2

Error

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents a valid Python module?

A .py file containing Python code.

A .txt file containing text.

A .exe file containing executable code.

A .csv file containing comma-separated values

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you handle multiple exceptions in a single try block?

Use multiple except clauses

Use a try block for each exception

Write all exceptions on one line separated by semicolons.

Use the finally clause

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will check if a string starts with a specific prefix?

startswith()

endswith()

checkprefix()

beginwith()

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?