Python Unit 2 Quiz 2

Python Unit 2 Quiz 2

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

conditional and iterative statements

conditional and iterative statements

11th Grade

10 Qs

Creating a document

Creating a document

1st Grade - Professional Development

9 Qs

Eventos de un experimento aleatorio

Eventos de un experimento aleatorio

9th Grade

11 Qs

C-Programming Basics

C-Programming Basics

12th Grade

16 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Bài thực hành 2 Viết chương trình để tính toán

Bài thực hành 2 Viết chương trình để tính toán

1st - 12th Grade

12 Qs

python-BTxâu

python-BTxâu

9th - 12th Grade

10 Qs

ÔN TẬP BÀI 3

ÔN TẬP BÀI 3

7th - 12th Grade

16 Qs

Python Unit 2 Quiz 2

Python Unit 2 Quiz 2

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Gerri McCann

Used 25+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code:

x = 3

y = 5

z = 2

print(y ** z + z)

What is output?

12

17

25

27

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code:

x = 3

y = - 4

z = 1

print( x + y * y )

2

-2

19

5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What output is produced by:

x = 19.29428347

x = x * 100

num = int(x)

print(num)

19.2943

19

1929

19.29

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line of code is necessary for random numbers to work in Python?

import random

import integer

x = randomint

x = int(input("Enter a number"))

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a Python Command?

int

str

input

dec

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output?

print(7 % 4)

0

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output?

print(8 % 4)

0

1

2

3

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?