Search Header Logo

Python_Mock

Authored by Avakaza Technologies

Information Technology (IT)

Professional Development

Used 27+ times

Python_Mock
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is NOT a feature of Python?

A. Platform independent
B. Dynamically typed
C. Manual memory management
D. Interpreted Language

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is an infinite loop in Python?

A. while True:
B. for i in range(1, 10, -1):
C. while i > 0:
D. Both A and C

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which keyword is used to skip the current iteration of a loop?

A. skip
B. continue
C. pass
D. break

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you access the last character of a string s?

A. s[-1]
B. s[len(s)]
C. s[len(s)-1]
D. Both A and C

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the join() method do in threading?

A. Joins two threads
B. Waits for a thread to finish execution
C. Merges thread results
D. None of the above

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the items() method in Dictionary return?

A. Keys of the dictionary
B. Values of the dictionary
C. Key-value pairs as tuples
D. Items of dictionary

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

How many times will the following loop execute?

A. `3`
B. `2`
C. `1`
D. `0`

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?