Search Header Logo
Python - print/output/input + data types

Python - print/output/input + data types

Assessment

Presentation

Computers

6th - 8th Grade

Practice Problem

Easy

Created by

Hương Thanh

Used 4+ times

FREE Resource

2 Slides • 30 Questions

1

Multiple Choice

To output "hello world!" which would be the correct python line of code

1

output("Hello World!)

2

Print("Hello World!)

3

print("hello world!)

4

print("hello world!")

2

Multiple Choice

Question image

What is the variable(biến) in the code shown

1

variable

2

Name

3

print

4

name

3

Multiple Select

Question image

Pick a syntax error in the code (Choose more than one)

1

Capital P for print

2

Missing brackets

3

Missing comma

4

Missing speech marks

4

Multiple Choice

Question image

What is the output of the following code if raining was entered

1

Take a brolly!

2

Have a great day

3

The code would not run

5

Multiple Choice

Question image

What is the output of the following code if "sunny" was entered

1

Take a brolly!

2

Have a great day

3

The code would not run

6

Multiple Choice

Question image

What would output if the answer to Q2 was barcelona?

1

well done you have a point

2

try again

3

the code would not run

7

Fill in the Blank

What key term in python allows the user to answer a question

8

Multiple Choice

What is the word (command) used to display numbers and text on the screen?
1
print
2
input
3
output
4
command

9

Multiple Choice

What symbol is used in python to assign values to a variable?
1
equals =
2
plus + 
3
forward slash /
4
asterisk *

10

Multiple Choice

Question image
What is the name of the programming language we are learning?
1
Scratch
2
Python
3
Pie thin
4
Scribble

11

Multiple Choice

Question image
What is the name of the programming language we are learning?
1
Scratch
2
Python
3
Pie thin
4
Scribble

12

Multiple Choice

What will be the output?
name = 'Dave'
print (name)
1
Dave
2
'Dave'
3
name
4
(name)

13

Multiple Choice

Python is an example of a....
1
Text-based programming language
2
Object orientated programming language
3
language written in java script
4
Visual-based programming language

14

Multiple Choice

What would print (10 + 16) produce?
1
20
2
22
3
24
4
26

15

Multiple Choice

Which is the Python logo?

1
2
3
4

16

Multiple Choice

What is an input?

1

A function that allows us to ask the user to enter some data.

2

To plug in something.

3

Data displayed on a screen.

4

A function

17

Multiple Choice

What is a output?

1

A piece of data that is shown on the screen.

2

Data that the user enters

3

An output

4

A orange

18

Multiple Choice

What function is used to output a message in python?

1

print("")

2

input=name

3

print

4

name=input

19

Multiple Choice

What syntax would you use to create a name variable?

1

name=input()

2

input=name

3

name=input{}

4

name=INPUT

20

media

Các kiểu dữ liệu
Data Types

21

Data Types

  • Phải đặt trong dấu ""

  • VD: "John", "@$$5^6&"

String (Chuỗi ký tự)

  1. Int (integer) - Số nguyên - VD: 45

  2. Float - Số thực (thập phân) - VD: 1.25

Number Types

22

Multiple Choice

"hello"

1

String

2

Integer

3

Float

4

Word

23

Multiple Choice

45

1

String

2

Integer

3

Float

4

Number

24

Multiple Choice

56.867

1

String

2

Integer

3

Float

4

Decimal

25

Multiple Choice

"89"

1

String

2

Integer

3

Float

4

Number

26

Multiple Choice

56 + 30

1

String

2

Integer

3

Float

4

Number

27

Multiple Choice

"89 / 90"

1

String

2

Integer

3

Float

4

Number

28

Multiple Choice

"(*&)()^%#$^*"

1

String

2

Integer

3

Float

4

Number

29

Multiple Choice

78.0

1

String

2

Integer

3

Float

4

Number

30

Multiple Choice

" "

1

String

2

Integer

3

Float

4

Number

31

Multiple Select

Select all strings:

1

greeting = (Hello)

2

greeting = ("Please enter your name")

3

greeting = (Welcome to Comp Sci)

4

greeting = ("Happy Friday!!!")

32

Multiple Select

Please select all floating point numbers:

1

1.444

2

34567

3

777.980

4

32.0

5

21

To output "hello world!" which would be the correct python line of code

1

output("Hello World!)

2

Print("Hello World!)

3

print("hello world!)

4

print("hello world!")

Show answer

Auto Play

Slide 1 / 32

MULTIPLE CHOICE