Mod 2 Test

Mod 2 Test

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python File handling - 2

Python File handling - 2

12th Grade

20 Qs

AP CSA Unit One Review

AP CSA Unit One Review

11th Grade

23 Qs

Level 3 Python Quiz 4

Level 3 Python Quiz 4

9th - 12th Grade

20 Qs

Python Basics Review

Python Basics Review

10th Grade

18 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

SAINS KOMPUTER TINGKATAN 4 (BAB1)

SAINS KOMPUTER TINGKATAN 4 (BAB1)

KG - University

21 Qs

Gateway Level 3 Python Quiz 3

Gateway Level 3 Python Quiz 3

9th - 12th Grade

15 Qs

ONE 6th FORM Introduction to Python Basics

ONE 6th FORM Introduction to Python Basics

11th 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?