:Data types

:Data types

10th Grade

25 Qs

quiz-placeholder

Similar activities

Basic Python Review 228

Basic Python Review 228

9th - 12th Grade

20 Qs

تمارين بايثون للمسار الفني والمهني تقن 806 / 804

تمارين بايثون للمسار الفني والمهني تقن 806 / 804

10th Grade - University

27 Qs

Gmetrix Python

Gmetrix Python

9th - 12th Grade

20 Qs

Pengenalan Coding

Pengenalan Coding

1st Grade - Professional Development

20 Qs

Итоговый тест 2023

Итоговый тест 2023

9th - 12th Grade

22 Qs

Python alap

Python alap

10th - 12th Grade

25 Qs

Programování 1 - 1

Programování 1 - 1

10th Grade

20 Qs

:Data types

:Data types

Assessment

Quiz

Computers

10th Grade

Easy

Created by

admissions roboticschools

Used 2+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used to represent whole numbers in Python?

  • A) float

  • B) str

  • C) int

D) bool

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a string in Python?

  • A) "Hello"

  • B) 10

  • C) 3.14

D) True

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used to represent decimal numbers in Python?

  • A) bool

  • B) str

  • C) int

D) float

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a boolean value in Python?

  • A) 42

  • B) "Python"

  • C) False

D) 3.14

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct way to write a list in Python?

  • A) [1, 2, 3]

  • B) {1, 2, 3}

  • C) (1, 2, 3)

D) <1, 2, 3>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function converts a string to an integer in Python?

  • A) str()

  • B) int()

  • C) float()

D) bool()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert the number 3.5 to a string in Python?

  • A) str(3.5)

  • B) int(3.5)

  • C) float(3.5)

D) bool(3.5)

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?