Search Header Logo

Midterm Review

Authored by Sylvia wang

Computers

6th - 8th Grade

Used 3+ times

Midterm Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(5 + 3 * 2)?
print(5 + 3 * 2)的输出结果是什么?

16

11

13

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the range(1,5) function generate?
range(1,5) 函数生成什么?

[1, 2, 3, 4, 5]

[1, 2, 3, 4]

[0, 1, 2, 3, 4]

[5, 4, 3, 2, 1]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is best when the number of iterations is known?
当循环次数已知时,最好使用哪种循环?

while loop

for loop

if-else

repeat-until

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to check if x is equal to 10?
如何正确检查 x 是否等于10?

if x = 10:

if x == 10:

if x === 10:

if x != 10:

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation (power)?
哪个运算符用于幂运算?

^

**

//

%%

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will print(type(3.14)) output?
print(type(3.14)) 输出什么?

<class 'int'>

<class 'float'>

<class 'str'>

<class 'bool'>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will print(type(3.14)) output?
print(type(3.14)) 输出什么?

<class 'int'>

<class 'float'>

<class 'str'>

<class 'bool'>

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?