JML - GILDARDO ALONSO CORTES GALLO
Quiz by , created more than 1 year ago

Type of Data

131
0
0
JML - GILDARDO ALONSO CORTES GALLO
Created by JML - GILDARDO ALONSO CORTES GALLO almost 4 years ago
Close

Type of Data - Phyton

Question 1 of 3

1

Numeric:
A numeric value is any representation of data which has a numeric value. Python identifies three types of numbers:
Positive or negative whole numbers (without a fractional part)
Any real number with a floating point representation in which a fractional component is denoted by a decimal symbol or scientific notation
A number with a real and imaginary component represented as x+yj. x and y are floats and j is -1(square root of -1 called an imaginary number)

Drag and drop to complete the text.

    Integer:
    Float:
    Complex number:

Explanation

Question 2 of 3

1

Data with one of two built-in values True or False. Notice that 'T' and 'F' are capital. true and false are not valid booleans and Python will throw an error for them.

Select one of the following:

  • Integer

  • Character

  • Boolean

Explanation

Question 3 of 3

40

Select from the dropdown lists to complete the text.

Sequence Type
A sequence is an ordered collection of similar or different data types. Python has the following built-in sequence data types:

( String:, Tuple:, List: ) is a collection of one or more characters put in single, double or triple quotes.
( Tuple:, String:, List : ) is an ordered collection of one or more data items, not necessarily of the same type, put in square brackets.
( List:, Tuple:, String: ) is an ordered collection of one or more data items, not necessarily of the same type, put in parentheses.

Explanation