питон 2

питон 2

Professional Development

29 Qs

quiz-placeholder

Similar activities

BASIC 01 GUIDED PRACTICE 2

BASIC 01 GUIDED PRACTICE 2

Professional Development

30 Qs

UH 1

UH 1

Professional Development

30 Qs

First Modul Test (EBONY HOTEL)

First Modul Test (EBONY HOTEL)

Professional Development

27 Qs

Python Programming 2nd Quiz

Python Programming 2nd Quiz

Professional Development

27 Qs

INTERCHANGE 1- REVIEW UNIT 1/2

INTERCHANGE 1- REVIEW UNIT 1/2

KG - Professional Development

24 Qs

E2F Units 1-2

E2F Units 1-2

Professional Development

24 Qs

Blast Review 1

Blast Review 1

Professional Development

25 Qs

ALC Book 17 Lesson 5 Review

ALC Book 17 Lesson 5 Review

Professional Development

25 Qs

питон 2

питон 2

Assessment

Quiz

English

Professional Development

Easy

Created by

кек .

Used 1+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?