Search Header Logo

Mod 2 Test

Authored by Scott Freeman

Computers

9th - 12th Grade

Used 1+ times

Mod 2 Test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

y = 2 + 3 * 5.

print(Y)

error

25.

17

17.0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code if the user enters two lines containing 2 and 4 respectively?

x = input()

y= input()

print (x +y)

2

24

4

6

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The 0o prefix means that the numbers after it is denoted as:

binary

decimal

hexadecimal

octal

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The print() function can outpur values of:

just one argument

not more than five arguments

any number of arguments (excluding zero)

any number of arguments (including zero)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The meaning of the keyword parameter is determined by:

Its positions within the argument list

its value

the argument's name specified along with its value

its connection with existing variables

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following variable names are illegal?

select two

True

true

TRUE

and

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following snippet (code) if the user enters two lines containing 2 and 4 respectively?

x = int(input())

y = int(input())

x = x//y

y= y//x

print(y)

4.0

error

2.0

8.0

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?