Programming basics Flashcards
1
Q
what is an integer
A
whole number
2
Q
what is a float
A
decimals
3
Q
what is aboolean
A
true or false
4
Q
what is character
A
a single letter, number or symbol
5
Q
what is a string
A
a collection of characters
6
Q
what is casting
A
changing the data type of a variable
7
Q
what is the symbol of power
A
8
Q
what is the symbol for DIV
A
//
9
Q
what is the symbol for MOD
A
%
10
Q
what does DIV do
A
returns how many times one number goes into another
11
Q
what does MOD do
A
returns the remainder
12
Q
what is the symbol for not equal to
A
!=
13
Q
what is constant
A
a variable that cannot be changed when a program is being run
14
Q
how do you make a constant in Python
A
put “const” before the variable name
15
Q
what are the 2 types of loops
A
condition controlled loops
count controlled loops