Search Header Logo

Python Quizz-13

Authored by shilpa gupta

Computers

University

Used 17+ times

Python Quizz-13
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following program :

print "Hello World"[::-1]

dlroW olleH

Hello Worl

d

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

x = 50

def fun1():

x = 25

print(x)

fun1()

print(x)

25

50

50

25

Error

Null

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of print(type(10))

int

float

complex

none

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print(type(0xFF))

Hexadecimal

int

float

string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python 3, what is the type of

print(type(range(5)))

int

float

complex

range

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of

print(type([]) is list)

True

false

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

str = "pynative"

print (str[1:3])

yn

pyn

pyna

pynative

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?