Programming Basics Flashcards
1
Q
what does int(“1”) do
A
converts the string 1 into the integer 1
2
Q
what does float(1) do
A
converts the integer 1 into the float 1.0
3
Q
what does bool(1) do
A
converts the integer 1 into the boolean value True
4
Q
what does str(True) do
A
converts the boolean value True into a string
5
Q
what does ASC(“b”)
A
converts the ASCII character b into its ASCII number 98
6
Q
what does CHR(98) do
A
converts the ASCII number 98 into the ASCII character b
7
Q
what does a DIV operator do
A
returns the whole number part of a division
8
Q
what does aMOV operator do
A
returns the remainder number of a division
9
Q
what does exponentiation mean
A
using powers such as 2^3 or 2**3