Search Header Logo

Python

Authored by Sheela Selva

Computers

University - Professional Development

Used 167+ times

Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Find T ?

T=144 / 2 + 5 * 9 - ( 8 -3 )

106

688

112

684

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Find the Output:

Item = {"ECE" , "CSE" , "EEE" , "CIVIL"}

Item.add (2,"MECH")

print(Item)

{ "ECE" , "MECH" , "CSE" , "EEE" , "CIVIL" }

{ "ECE" , "CSE" , "MECH" , "EEE" , "CIVIL" }

{ "ECE" , "CSE" , "EEE" , "CIVIL" }

{ "ECE" , "CSE" , "EEE" ,"MECH" , "CIVIL" }

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Find the Output ?

A = "Anand Institute of higher technology"

print ( A[-5:7]

_Institute of higher techn

nstitute of higher technol

d Institute of higher techn

Institute of higher techno

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

def.number (r1 , r2)

sum = r1 / r2

return sum

a = number (r2 = 15 , r1 = 10)

2 / 3

3 / 2

error

2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is the output of the following code ?

var1 = 1

var2 = 2

var3 = "3"


print (var + var2 var3)

Error. Mixing operators between numbers and strings are not supported

6

33

123

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function convert a string to a float in python ?

float(X)

int(x[,base])

long(X[,base])

str(X)

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

what is the output of the following programing ?

X = [ 'ab' , 'cd' ]

for i in X:

i.upper()

print (x)

[ 'AB' , 'CD' ]

[ 'ab' , 'cd' ]

[ AB , CD ]

ERROR

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?