Search Header Logo

Python Review - PLTW CSE / Codecademy

Authored by Allison Marcroft

Computers

9th - 12th Grade

CCSS covered

Used 55+ times

Python Review - PLTW CSE / Codecademy
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

53 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find T ?

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

106

688

112

684

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def.number (r1 , r2)

sum = r1 / r2

return sum

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

2 / 3

3 / 2

error

2

3.

MULTIPLE CHOICE QUESTION

30 sec • 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" }

4.

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

5.

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)

6.

MULTIPLE CHOICE QUESTION

30 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

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what will be the output of the following python code snippet ?

not (10 < 20) and not (10 > 30 )

TRUE

FALSE

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?