питон 2

питон 2

Professional Development

29 Qs

quiz-placeholder

Similar activities

STEP 4 (GFK)

STEP 4 (GFK)

4th Grade - Professional Development

25 Qs

Relationship Vocabulary

Relationship Vocabulary

Professional Development

25 Qs

INT present simple and present continuous

INT present simple and present continuous

Professional Development

25 Qs

EE Lesson 2 Book 4

EE Lesson 2 Book 4

KG - Professional Development

31 Qs

REVIEW (4-5) 2A

REVIEW (4-5) 2A

Professional Development

25 Qs

Frequency Adverbs and Time Expressions

Frequency Adverbs and Time Expressions

Professional Development

28 Qs

Extraordinario Inglés Semestre 5

Extraordinario Inglés Semestre 5

Professional Development

24 Qs

ALC Book 9 L3 Listening Practice

ALC Book 9 L3 Listening Practice

Professional Development

25 Qs

питон 2

питон 2

Assessment

Quiz

English

Professional Development

Easy

Created by

кек .

Used 1+ times

FREE Resource

AI

Enhance your content

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

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for an if statement in Python?

if x > 5:

if (x > 5)

if x > 5 then:

if x > 5 {}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for comparison in Python?


==

=

><

===

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to write an else statement in Python?

else:

else if:

elseif:

else do:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method in Python is used to convert a string to uppercase?

upper()

toUpperCase()

capitalize()

uppercase()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to handle exceptions in Python?

try-except

catch

error

throw

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for defining a class in Python?

class MyClass:

MyClass class:

define MyClass:

class MyClass():

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the continue statement do in a loop in Python?

Skips the rest of the current loop iteration.

Exits the loop completely.

Restarts the loop from the beginning.

Breaks the loop and goes to the next statement.

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?