Variables and Data Types Answers

7 verified answers
1
Free Preview

Which of the following are common data types? Check all that apply.

A
integers
B
characters
C
extents
D
floating point numbers
E
Boolean
F
alphanumeric strings
2
Free Preview

Question text not available

Answers:
before the variable can be used.:has to be stated
.:JavaScript
before the variable can be used.:does not have to be stated
.:Python
3

Which of the following are characteristics of the Boolean data type? Check all that apply.

A
It holds infinite values.
B
It uses operators such as AND, OR, and NOT.
C
It holds a TRUE or FALSE value.
D
It is named after a nineteenth-century mathematician and logician
4

Which of the following statements are true of an integer data type? Check all that apply.

A
It can be a whole number.
B
It can be a negative number.
C
It uses TRUE/FALSE statements.
D
It represents temporary locations.
E
It cannot hold a fraction or a decimal number.
5

Question text not available

Answers:
data type can hold whole positive and negative numbers.:integer
data types.:floating-point
data types.:floating-point
6

Identify the correct characteristics of Python lists. Check all that apply.

A
Python lists are enclosed in curly braces { }.
B
Python lists contain items separated by commas.
C
Python lists are versatile Python data types.
D
Python lists may use single quotes, double quotes, or no quotes.
7

Identify the correct characteristics of Python tuples. Check all that apply.

A
Python tuples can be updated.
B
Python tuples are similar to Python lists.
C
Python tuples are enclosed in brackets [ ].
D
Python tuples are versatile.
E
Python tuples are read-only lists.

Did you find these answers helpful?