Search Header Logo

Test9

Authored by Rares Hampi

Information Technology (IT)

9th - 12th Grade

Used 5+ times

Test9
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of this code?

False

True

None

Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a valid variable name?

2nd_var

var-1

my_var

class

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of 3 * 2 * * 2?

36

12

18

16

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which function is used to convert a string to an integer?

str()

float()

int()

input()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the len() function do?

Returns the sum of numbers

Returns the type of the object

Returns the length of a sequence

Converts a number to a string

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following?

False False False

True False True

False True True

True True True

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a correct if statement?

if x = 10:

if x == 10:

if (x => 10)

if x equals 10:

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?