Computing Study Flashcards
(25 cards)
Comments
Anything on line after a # is considered as a comment
identifiers
Any sequence of letter, digits and underscores , starting with a letter
Both uppercase and lowercase are case are supported
(ALU)
Arithmetic logic unit
Integer
A hole number
Data type
A set of possible values
String
Words or Text
Common Arithmetic Operators
+=addition, -=subtraction, *=multiplication,/=division,**=squared,//=div, %=mod
Bool Operators
And ,or, not
How to loop
for in range
Common comparison operators
Equals to == , not equals to !=,less than <,more than >,less than or equals to <=,more than or equals to >=
inputs and outputs
Print and input
Selection
if/elis/else
if statement
Subprograms
Function, procedures, parameters
Values
Variable, constants , assignment
Types of data types
String, integer, char, boolean , float ,casting
Data structure
list/array, indexes
String formats
width, precision, type alignment
Programing construct
-literation
-loops
-for
.count controlled
.fixed number of times
-while
.condition controlled
.indeterminate number of times
number [] = ?
Variable
Float=?
Fractional number
Boolean=?
Logical true or false
Character=?
a string with a length of 1
Array=?
A linear data structure
Subprogram=?
A block of code give a unique identifiable name within a program