What is Programming Flashcards
What are some examples of instructions you can put into your code?
1)Checksum
2)Add
3) go and get
4)set variable
really anything
What are statements? And give an example.
They are simple sentences in programming.
Example: balance = 500;
Example: alert(“Hello, World”);
What is Machine Code? and which low level languages are closest to Assembly Code?
1) Machine Code is the binary 1s and 0s that the CPU takes and executes.
2) C (lowest), C++, C#, Java, PHP….
What are are the differences between Low and High level code?
Low level code is pretty close to machine code, but is slow to write.
High level code must be compiled/interpreted so its faster to write but is slower to run.
What is Programming?
Being able to take an idea, break it into parts and then write those parts in to specific instructions. This is your source code.
What are the 3 things we need to know before starting to write code?
1) How to write the code (How do you start writing it?)
2) How it will be covered
What are the 3 types of languages? (in terms of compiling) and what are their Pros and Cons?
1) Compiled.
Pros: You Compile the source code for a platform and its ready to run. Its ready to run. Source code is private
Cons: Extra step in compiling. not cross platform.
2) Interpreted
Pros: Cross platform. easy to test.
Cons: Must interpret each time you run (slower) . Source Code is public.
3) Intermediate.
You partial compile, and the rest is interpreted on the market machine.