Search Header Logo

Python Basic

Authored by Gustavo Santander

Professional Development, Computers

University

Used 11+ times

Python Basic
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var = "rojo"

if "amarillo" == var:

        print(False)

else:

        print(True)

False

rojo

amarillo

True

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var = 4

if 8 == var:

        print(False)

else:

        print(True)

4

8

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var1 = "guardar"

var2 = 13

var3 = 13.2

var4 = True

if 3 < var2 and var2 < 20:

    print('es correcto')

else:

    print('esta fuera los limites')

False

True

es correcto

esta fuera los limites

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var = 0

for i in range(0,10):

    if i % 2 == 0:

        print(i)

1,3,5,7,9

0,1,2,3,4,5,6,7,8,9,10

0,2,4,6

0,0,0,0,

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var = 0

for i in range(0,10):

    if i % 3 == 0:

        print(i)

0,3,6,9

0,2,4,6,8

3,6,9

2,4,6,8

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A = 9

B = 8

C = 2

result = B A - B B / 4 * C

print(result

20

30

40

50

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A = 9

B = 8

C = 2

result = (A*B) / 3 *3

print(result)

80

70

72

74

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?