Search Header Logo

Python Programming Quiz

Authored by 2111CS040096 KUMAR

Computers

1st Grade

Used 1+ times

Python Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the correct output of the following Python command:

10

40

50

400

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an immutable data type in Python?

Set

List

Tuple

Dictionary

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an invalid identifier in the Python programming language?

none

False

true

For

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the correct output of the following Python arithmetic expression:

-171

172

-170

170

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Traditionally the end of a stack from where PUSH(additional) and POP(deletion) take place, of popularly known as :

FRONT

TOP

LIFO

FIFO

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following Python code? sentence = "Hello, how are you?" print(sentence.replace("Hello", "Hi"))

Hi, how are you?

Hello, how are you?

Hi, how are Hello?

Hi, Hello are you?

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code?

World

World!

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?