Ch 1 - What is coding? Flashcards

1
Q

What is meant when “code follows instructions”?

A

It follows a set of very precise statements/directions to the letter.

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

How is code similar to languages?

A

Code is similar to languages in that;

  1. It can create the same functionality in the same way that languages can express the same objects, phrases and emotions.
  2. Similar to syntax and structure coding languages can overlap just like spoken languages, e.g imprimer and imprimir.
  3. Similar to spoken languages coding languages have a natural lifespan. The are “born” when a programmer thinks of a new, or easier, way to express a computational concept. To survive the language has to be adopted by other programmers and will die out, like Latin or Aramaic, due lack of use or wide spread adoption.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is meant when someone refers to a language as a “low level language”?

A

Low level languages interact directly with the CPU. They are capable of performing very basic commands and are generally hard to read. Machined code for example.

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

What is meant when someone refers to a language as a “High level language”?

A

High level languages use natural language and are easier to read and write. An example of some high level languages are C++, Python, or Ruby.

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

Why would an “Interpreter” or “Compiler” be used for coding?

A

An Interpreter or Compiler is used to translate a high-level language into a low-level language so that the computer can understand the instruction or instructions.

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

What is the difference between compiled code and interpreted code?

A

Compiled code executes faster but is fading due to higher processing speeds. High-level languages like C++, CBot and visual basic are complied.
Interpreted code is considered to be more portable. High-level languages like Java, Python and Ruby are interpreted.

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