What is Programming Flashcards

1
Q

What are some examples of instructions you can put into your code?

A

1)Checksum
2)Add
3) go and get
4)set variable
really anything

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are statements? And give an example.

A

They are simple sentences in programming.
Example: balance = 500;
Example: alert(“Hello, World”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Machine Code? and which low level languages are closest to Assembly Code?

A

1) Machine Code is the binary 1s and 0s that the CPU takes and executes.
2) C (lowest), C++, C#, Java, PHP….

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are are the differences between Low and High level code?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Programming?

A

Being able to take an idea, break it into parts and then write those parts in to specific instructions. This is your source code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 3 things we need to know before starting to write code?

A

1) How to write the code (How do you start writing it?)

2) How it will be covered

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 3 types of languages? (in terms of compiling) and what are their Pros and Cons?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly