питон 2

питон 2

Professional Development

29 Qs

quiz-placeholder

Similar activities

....

....

Professional Development

25 Qs

Basic english

Basic english

Professional Development

26 Qs

Mini test

Mini test

Professional Development

24 Qs

E2F Units 1-2

E2F Units 1-2

Professional Development

24 Qs

Technical Skills- End  Examin - 13-01-2024 ECE & EEE SEM V

Technical Skills- End Examin - 13-01-2024 ECE & EEE SEM V

Professional Development

25 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

UTS Bahasa Inggris Kelas 7 GASAL

UTS Bahasa Inggris Kelas 7 GASAL

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?