Programming Flashcards
What is the difference between high level code and machine code?
machine code is a stream of binary bit patterns that represent instructions, these are decoded and executed on. It is processor specific and designed with hardware in mind high level (python) can be written by users in familiar language and works on different devices, they are translated into machine code to be executed
What is the need for translators?
to convert high level into machine code
What are the characteristics of an assembler?
converts assembly language into machine code
What are the characteristics of a compiler?
converts high level into machine code
What are the characteristics of an interpreter?
converts high level into machine code
What are common tools and facilities available in an IDE?
editors, error diagnostics, run-time environment, translators, auto-documentation
What is a sequence in an algorithm?
the steps the program runs through
What is a selection in an algorithm?
if, then, else, case
What is an iteration in an algorithm?
for, while, repeat
What is the term variable and constant as used in an imperative language?
Constants are values that remain the same as the program runs, the constant identify/name is used instead of the value
Variables have an identifier/name to that corresponds to a value that can change
What is the integer data type?
a whole number
What is the real data type?
numbers with decimals or fractional part
What is the Boolean data type?
TRUE/FALSE
What is the character data type?
single alphanumerical character (not used in calculations)
What is the string data type?
any number of characters in a row