paper 2 Flashcards
what is meant by decomposition
breaking a complex problem down into smaller problems and solving them individually
what is meant by abstraction
picking out the important bits of the information and leaving out the specific details that don’t matter
why is using algorithmic thinking useful when solving a problem
that algorithm could then be reused and adapted to solve similar problems in the future
what is meant by algorithmic thinking
a logical way of getting from a problem to the solution
define integer
whole number
define real
decimal numbers
define boolean
can only take one of two values usually TRUE or FALSE
define character
a single, letter, number, or symbol
define string
a collection of characters
what does casting mean
changes the data type
explain what int() does
converts the string 1 to the number 1
explain what float() does
converts the integer 1 to the float 1.0
explain what str() does
converts boolean true to the string true
explain what ASC() does
converts character b to ASCII number 98
explain what CHR() does
converts number 98 to ASCII letter b
how does == differ from =
= assignment opperator, == comparison opperator
what does != do
is not equal to
what does ** do
multiplies a number to the power of a number
what is meant by a constant
assigned to a data value and cannot be changed