Python - Data Types

Python - Data Types

12th Grade - University

11 Qs

quiz-placeholder

Similar activities

Java Reserved Words

Java Reserved Words

University

10 Qs

Basic Python

Basic Python

10th Grade - University

10 Qs

Arduino Programming

Arduino Programming

7th - 12th Grade

12 Qs

Berotak Sengku

Berotak Sengku

9th - 12th Grade

15 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

Module 1-Flow Control_5th_Semseter

Module 1-Flow Control_5th_Semseter

University

10 Qs

Java Fundamentals

Java Fundamentals

12th Grade

9 Qs

Nirmala School quiz

Nirmala School quiz

9th - 12th Grade

12 Qs

Python - Data Types

Python - Data Types

Assessment

Quiz

Instructional Technology, Education

12th Grade - University

Hard

Created by

Teaching Assistant Ivy

Used 39+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are immutable

Number

String

Tuple

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is true about complex numbers?

The real and imaginary component can be float

The real part should be an integer

Scientific notation cannot be used in complex number

All of above

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

The int() function can be useful to convert

string to integer

hexadecimal to integer

float to int

complex number to int

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid integer in Python?

0o123

123

0123

0x123

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are valid complex number objects?

4+5j

5j+4

0j

5+4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An Expression 'str' in 'string' will return

True

False

ValueError

TypeError

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a core data type?

List

Tuple

Dictionary

Class

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?