computing studies Flashcards
(25 cards)
comments
anything on the line after a # is considered a comment
identifiers
any sequence of letters, digits and underscores, starting with a letter. both uppercase and lowercase are case are supported
(ALU)
arithmetic logic unit
integer
a whole number
data type
a set of possible values
string
words or text
common arithmetic operators
+= addition,-=subtraction,*=multiplication,/=division,**=squared,//=div,%=mod
Boolean operators
and,or,not
how to loop
for i in range
common comparison operators
equals to ==, not equals to !=, less than <,greater than >,less than or equals to <=,greater than or equals to >=,
inputs and outputs
print and input
selection
if statements
if/elif/else
subprograms
functions, procedures, parameters
values
variables, constants, assignment
types of data types
string, integer, float, boolean, char, casting
data structure
list/array,indexes
string formats
width
precision
type
alignment
programming construct
iteration
-loops
-for
.count controlled
.fixed number of times
-while
.condition controlled
.indeterminate number of times
numbers [] =?
variable
array=?
a linear data structure
float=?
fractional numbers
boolean=?
logical true or false
character=?
a string with a length of 1
subprogram=?
a block of code given a unique identifiable name within a program