Python: Print and Data Types

Python: Print and Data Types

10th - 12th Grade

18 Qs

quiz-placeholder

Similar activities

Bài 29. Nhận biết lỗi chương trình

Bài 29. Nhận biết lỗi chương trình

9th - 12th Grade

14 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

Computer Science - X

Computer Science - X

8th - 10th Grade

20 Qs

Google

Google

7th - 12th Grade

20 Qs

网络与通讯

网络与通讯

12th Grade

15 Qs

ÔN TINHK1, K4

ÔN TINHK1, K4

10th Grade

14 Qs

Excel

Excel

12th Grade

15 Qs

BÀI 24-25 TIN 10

BÀI 24-25 TIN 10

10th Grade

20 Qs

Python: Print and Data Types

Python: Print and Data Types

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Ilan Chaim

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does this print:


x = int(1)

y = int(2.8)

z = int("3")

print(x, end=" ")

print(y, end = " ")

print(z, end = " ")

1

2.8

error

1 2.8 error

1

2

3

1 2 3

1 2.8 3

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be printed?


x = float(1)

y = float(2.8)

z = float("3")

w = float("4.2")

print(x, end = " ")

print(y, end = " ")

print(z, end = " ")

print(w)

x y z w

1

2

3

4

1.0 2.8 3.0 4.2

1 2 3 4

error

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will this print?


x = 10

x = str("s1")


print(x)

error

10

x

s1

10s1

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will this print?


day = "Thursday"

print(type(day))

<class 'complex'>

<class 'float'>

<class day>

<class 'int'>

<class 'str'>

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will this print?


day = 32.5

print(type(day))

<class 'complex'>

<class 'float'>

<class day>

<class 'int'>

<class 'str'>

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

grade1 = input("What did you get in p1? ")

grade2 = input("What did you get in p2? ")


sum = grade1 + grade2


If you enter 70 for grade1 and 80 for grade2, what will sum print to?

grade1grade2

error

8070

150

7080

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following data types can consist of numbers, alphabets and symbols?

String

Integer

Float

Boolean

Create a free account and access millions of resources

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?

Discover more resources for Computers