Programming Basics Flashcards

1
Q

what does int(“1”) do

A

converts the string 1 into the integer 1

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

what does float(1) do

A

converts the integer 1 into the float 1.0

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

what does bool(1) do

A

converts the integer 1 into the boolean value True

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

what does str(True) do

A

converts the boolean value True into a string

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

what does ASC(“b”)

A

converts the ASCII character b into its ASCII number 98

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

what does CHR(98) do

A

converts the ASCII number 98 into the ASCII character b

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

what does a DIV operator do

A

returns the whole number part of a division

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

what does aMOV operator do

A

returns the remainder number of a division

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

what does exponentiation mean

A

using powers such as 2^3 or 2**3

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