Search Header Logo

Python Programming Quiz 1

Authored by Mr.K.V.K.Sasi Kanth AP@CSE

Information Technology (IT)

Professional Development

Used 1+ times

Python Programming Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(10 // 3)?

3.33

3

4

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Python function definition?

def func:

def func()

function func()

func def()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does type([]) return?

list

[]

type

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^

**

exp()

^^

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of bool([])?

True

False

None

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'hello'.capitalize() return?

'Hello'

'hello'

'HELLO'

'Hello '

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method checks if a string ends with a specific substring?

ends()

finish()

endswith()

close()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?