Mod 2 Test

Mod 2 Test

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

OCA Unit 2 Quiz

OCA Unit 2 Quiz

11th Grade - Professional Development

20 Qs

Python Basics Quiz 1

Python Basics Quiz 1

8th Grade - University

15 Qs

Do Now Lesson 2

Do Now Lesson 2

9th - 12th Grade

15 Qs

Python Basics

Python Basics

KG - University

15 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

Python File handling - 2

Python File handling - 2

12th Grade

20 Qs

"switch" Java Statement - 1

"switch" Java Statement - 1

9th - 10th Grade

17 Qs

Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

Mod 2 Test

Mod 2 Test

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Scott Freeman

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?