Search Header Logo
G9-basic python review

G9-basic python review

Assessment

Presentation

Computers

9th Grade

Practice Problem

Easy

Created by

Adeline Jia

Used 3+ times

FREE Resource

9 Slides • 22 Questions

1

media

Python review

2

Input, Output & Variables

What do you think is happening?

media

3

How do we output text onto the screen?

media

4

How do we ask the user for an input and sore what they type in?

media

5

Multiple Choice

what is the output of the following?

print("Welcome")

1

Welcome

2

"Welcome"

3

'Welcome'

4

Welcome"

6

Multiple Choice

print("welcome friend"+" "+"ha ha")

1

welcome friend

2

welcome friend ha ha

3

ha ha

4

welcome friend + ha ha

7

  • Example

media

8

Open Ended

你可以使用IDLE编写Puthon程序,然后将代码复制粘贴到此处。

题目说明:Write an algorithm that asks the user to enter their favourite colour.

then outputs the sentence “Your favourite colour is colour” .

(where colour is the inputted string).

9

Open Ended

你可以使用IDLE编写Puthon程序,然后将代码复制粘贴到此处。

题目说明:Enter the length, width, and depth of a rectangular swimming pool.

 Write a program to calculate the volume of water required to fill the pool and output the volume.

10

Decisions - Selection

media

​What will this program print if a user enters 25?

11

Define: conditional

media
media

12

Multiple Choice

What best describes a conditional?

1

I will do what I want

2

If the answer is no, then I'll do something

3

If it doesn't snow I will wear my sno boots to school

4

If the answer is yes, the I'll do something

13

Multiple Choice

Question image

What will this program print if a user enters 30 ?

1

It's really warm in here!

2

We have good weather today

3

syntax error

4

are u okay?

14

Multiple Choice

Question image

What will this program print if a user enters 20 and 25 ?

1

It's really warm in here!

2

We have good weather today

3

syntax error

4

u are cute

15

Open Ended

Question image

What is the output of this program?

请描述这段程序的输出结果

16

Fill in the Blank

print(15//2)

17

Fill in the Blank

print(2**3)

18

Fill in the Blank

print(17%2+5)

19

Fill in the Blank

print(9/2)

.

20

Comparison operators

media

​AND returns True only if both the operands are True else it returns False.

OR returns False only if both the operands are False else it returns True.

NOT is the opposite of it

21

Multiple Choice

Question image

What is the output?

1

a not equals 10

2

a equals 10

22

Multiple Choice

Question image

What is the output?

1

Their product will be negative

2

Their product will be positive

23

Open Ended

你可以使用IDLE编写Puthon程序,然后将代码复制粘贴到此处。

题目说明:输入三个数,存在变量a, b, c中,通过 if-else 比较,找出最大的数字并输出。

24

Iterations in Python

media

25

Open Ended

Question image

what does the range function do?

程序的运行结果是?

26

Multiple Choice

*提示:你可以在IDLE中尝试这段代码

What is the output of the following:-

x = "123"

for i in x:

print("a")

1

x

1

a

2

1

2

3

3

x

1

2

3

4

a

a

a

27

Multiple Choice

*提示:你可以在IDLE中尝试这段代码

Choose the correct answer

for i in "python":

print(i)

1

Syntax Error

2

p

y

t

h

o

n

3

p?y?t?h?o?n?

4

python

28

Open Ended

Question image

你可以使用IDLE编写Puthon程序,然后将代码复制粘贴到此处。

题目说明:使用for循环,打印出如图的样子。

29

Open Ended

Question image

你可以使用IDLE编写Puthon程序,然后将代码复制粘贴到此处。

题目说明:使用for循环,打印出如图的样子。

30

Open Ended

Question image

你可以使用IDLE编写Puthon程序,然后将代码复制粘贴到此处。

题目说明:使用for循环,打印出如图的样子。

31

Open Ended

Question image

你可以使用IDLE编写Puthon程序,然后将代码复制粘贴到此处。

题目说明:提示用户输入N个数字,然后计算并显示其平均值。用户必须在程序开始时提供N的值。

media

Python review

Show answer

Auto Play

Slide 1 / 31

SLIDE