Search Header Logo

ÔN TẬP CUỐI HỌC KÌ II

Authored by undefined undefined

Mathematics

University

Used 2+ times

ÔN TẬP CUỐI HỌC KÌ II
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

39 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the While statement, the loop block is executed until:

<đk>= False

<đk> = True

<kl>=True

<kl>= False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the program, when encountering which command must it stop (even if it is in a loop)?

break

end

peat

reak

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the meaning of the following program: k=2 while k<50: print(k) k=k+3

prints the sequence from 2 to less than 50, increasing by 3 each time.

prints the sequence less than 50, increasing by 3 each time.

prints the sequence outside 50, summing the elements of the sequence.

prints the sequence three times the sequence of 50.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following program: for k in range(10): print(k,end= “ ”) if k==5: break

0,1,2,3,4,5

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

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

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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to get the length of the list K?

len(K)

len[K]

len “K”

K.len()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the list H=[5,7,9,6,4], what is the command to access the element with the value 9 in that list H?

H[2]

H[3]

H[9]

H(2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a list, we can access each element of the list through:

index

value

list

command

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?