Search Header Logo

grade 7&8 week 8

Authored by jax teller

Information Technology (IT)

6th Grade

Used 1+ times

grade 7&8 week 8
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

Which is the correct way to assign the value 10 to a variable?

10 = x

x = 10

int x = 10

set x to 10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get user input in Python?

input()

get()

read()

scan()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data is returned by input() by default?

Integer

String

Boolean

Float

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to display output?

print()

echo()

show()

write()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command converts a string input into an integer?

toInt()

convert(input())

int(input())

str(input())

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code? for i in range(3): print("Hi")

Hi (once)

Hi (3 times)

Hi (infinite)

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In for i in range(5):, what values does i take?

1 to 5

0 to 5

0 to 4

1 to 4

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?