Python Quiz Intro, Variables, and Data Types Flashcards

1
Q

T/F

Python is case sensitive.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

T/F

Python has a strong and active development community.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

T/F

Python is a powerful low level programming language that allows you to interact with the CPU.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To signify the end of a line of python code you use

A

\n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

T/F

Python may be installed on MacOS, Windows, and Linux Operating Systems

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

If you wanted to add a tab in a string, you would need to use the following:

A

\t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

T/F

You may use single quotes, or double quotes around characters to make a string.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A variable is ____________________________________.

A

a placeholder used to hold or represent a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If you wish to capitalize the first letter of each word in a string in python you would use the ____________ string method.

A

title()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A String is _________________________.

A

one or more characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

If you wanted to start a new line in a string, you could insert a ______.

A

\n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Number data type includes ______________ and ________________types of numbers.

A

integer, float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The value of x is ___________________.

x=5*4

A

20

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The value of x is _______________________.

x=6%3

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In Python, when you divide an integer by an integer, you end up with an _____.

A

float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly