Understanding Python Data Types

Understanding Python Data Types

University

27 Qs

quiz-placeholder

Similar activities

Жели 175-200

Жели 175-200

University

25 Qs

Taylor Swift

Taylor Swift

University

25 Qs

Conductores/capacitores

Conductores/capacitores

University

23 Qs

python

python

University

30 Qs

capati roti canai

capati roti canai

University

22 Qs

CODE 4 KITSW ROUND - 2

CODE 4 KITSW ROUND - 2

University

25 Qs

Kiến thức về .NET và C#

Kiến thức về .NET và C#

University

31 Qs

иоә

иоә

University

29 Qs

Understanding Python Data Types

Understanding Python Data Types

Assessment

Quiz

Others

University

Hard

Created by

Vinod Murugesan

FREE Resource

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the four primitive data types in Python?

int, float, str, bool

int, float, list, tuple

char, double, list, dict

str, bool, set, complex

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

float

string

int

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a variable in Python?

x : 10

var x = 10;

x = 10

let x = 10;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

1invalidVariable

invalid-variable-name

invalid variable name

valid_variable_name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function would you use to check the type of a variable in Python?

type()

check_type()

var_type()

get_type()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the expression type(3.14)?

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to represent text in Python?

int

list

str

float

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?