1/22
Looks like no tags are added yet.
what is a program?
a program is a sequence of instructions that dictate the flow of electrical impulses within a computer system
what is an interpreter?
an interpreter is a platform that translates high-level language code into machine code when you run a series of statements
what is source code?
high level language code
what is target code?
machine language code
what is an editor?
an editor is a platform where one can enter the program code and save to files
what is a compiler?
a compiler translates the source code to target code
e.g., C compiled and converted to C++ code
what is the difference between a compiler and an interpreter?
a compiler translates the whole program at once, while an interpreter translates and runs the code line by line
what does ide stand for?
integrated development environments
examples: idle, thonny, etc
what is included in an ide?
the editor, debugger and other programming aids (in one comprehensive program)
(think ade in an ide)
what is a profiler?
a profiler is used to evaluate a program’s performance and finds parts of a program that can be improved to make the program run faster
what is a debugger?
a debugger allows a programmer to see which source code line is currently being executed
does not exactly tell you what’s wrong with the code
syntax definition
syntax refers to the way pieces of the language are arranged to make well-formed sentences
what can we use programming to do?
web development, game development, machine learning
what is coverage?
coverage is ensuring all code in a program is actually being used somewhere during testing
what is machine learning?
study of computer algorithms that improve automatically through training and experience
what does the below code do?
type(x)
tells you what type of expression (boolean, string, etc) x is
what does the below codes do?
str(‘4’)
int(‘5’)
assigns ‘4’ to a string value and 5 to an integer value
what is an assignment statement?
an assignment statement associates a value with a variable
what is the equal sign’s significance?
it is the assignment operator and is what creates an assignment statement
if we want to make x = 100 and y = 50, how can you print it in one line?
x, y, =100, =50
print(x, y)
what if you didn’t mind a float or an int?
eval()