ט-2 אופציה 2

ט-2 אופציה 2

7th Grade

40 Qs

quiz-placeholder

Similar activities

Coding Technical Vocabulary

Coding Technical Vocabulary

6th - 12th Grade

37 Qs

Unit 2: Heredity

Unit 2: Heredity

7th Grade

38 Qs

Tổng hợp Python

Tổng hợp Python

6th - 8th Grade

40 Qs

Day 2

Day 2

7th Grade

43 Qs

Reactions 1 (Activate Y7) - Glossary Quiz

Reactions 1 (Activate Y7) - Glossary Quiz

6th - 8th Grade

38 Qs

Animal Questions Part 2

Animal Questions Part 2

1st Grade - University

36 Qs

Concepts in Computer Science

Concepts in Computer Science

7th Grade

38 Qs

STAAR Review Part 2 KAP

STAAR Review Part 2 KAP

6th - 8th Grade

40 Qs

ט-2 אופציה 2

ט-2 אופציה 2

Assessment

Quiz

Science

7th Grade

Hard

Created by

Levy Roni.Aharon

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

my_list = [1, 2, 3]

my_list.append(4)

print(my_list)

[1, 2, 3]

[1, 2, 3, 4]

[4, 1, 2, 3]

[1, 2, 3, 4, 4]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method removes the last element of a list?

remove()

pop()

delete()

discard()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first element in a Python list?

0

1

-1

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed by the following code?

queue = [] queue.append(10) queue.append(20) queue.pop(0) print(queue)

[20]

[10, 20]

[10]

[]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? name = "Python" print(name[2])

P

y

t

h

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a function in Python?

def myFunction:

define myFunction:

def myFunction():

function myFunction:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the len() function do when used with a list?

Deletes the list

Returns the length of the list

Adds an element to the list

Sorts the list

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?