python1

python1

KG - 4th Grade

10 Qs

quiz-placeholder

Similar activities

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

Alapismeretek

Alapismeretek

7th - 12th Grade

10 Qs

İnternet Programlama

İnternet Programlama

1st Grade

15 Qs

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Adventure game project

Adventure game project

7th - 8th Grade

12 Qs

REVISION

REVISION

1st - 2nd Grade

10 Qs

CD 3 PHẦN MỆ SOẠN THẢO VĂN BẢN

CD 3 PHẦN MỆ SOẠN THẢO VĂN BẢN

1st - 7th Grade

12 Qs

python1

python1

Assessment

Quiz

Computers

KG - 4th Grade

Practice Problem

Hard

Created by

jo denayer

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

x = 5

y = x

x = 6

what is y

5

6

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

a = 5

for x in range(10):

a = a if x != 0 else 0

What is the value of a at the end?

0

5

9

10

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

l1 = [1,2,3,4]

l2 = [1,2,3,4]

what will the following statement result in?

l1 is l2

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

10 // 3

0

10

3

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

x = 10

y = 5

if y == 5:

print('five')

elif x == 10:

print('ten')

elif y==5 and x == 10:

print('fifteen')

What gets printed?

'five'

'ten'

'fifteen'

all of the other answers together

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

def add():

x = 5

y = 8

val = x + x * y

Calling this function returns?

80

45

Nothing

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

what is the data type of the following?

aTuple = (1,'Jhon', 1+3j)

print(type(aTuple[2:3]))

list

complex

tuple

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?