DV Module 1 Flashcards

1
Q

What Elements make up a language?

A

Alphabet: a set of symbols that build words

Lexis: A set of words that language offers its users

Syntax: A set of rules to follow to create a sentence

Semantics: A set of rules that determine weather a phrase makes sense. the program has to make sense.

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

What is IL

A

An alphabet of a machine language

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

Python is an example of two different computer programming languages

A

High-level programming language

Interpreted language

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

A program written in a programming language is called:

and the File containing it is called

A

Source Code

Source File

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

Two way to transfroming a program from a high-level programming language into machine language:

A

COMPILATION - the source program is translated once (however, this act must be repeated each time you modify the source code) by getting a file (e.g., an .exe file if the code is intended to be run under MS Windows) containing the machine code; now you can distribute the file worldwide; the program that performs this translation is called a compiler or translator;

INTERPRETATION - you (or any user of the code) can translate the source program each time it has to be run; the program performing this kind of transformation is called an interpreter, as it interprets the code every time it is intended to be executed; it also means that you cannot just distribute the source code as-is, because the end-user also needs the interpreter to execute it.

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

In what order does an Interpreter read code

A

Top to bottom
Right to left

it will stop if there is an error in the code and stop reading it if all seems well in the code it will try to execute it.

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

Interpreted language are often called

A

Scripting Languages

well the programs encoded in them are called Scripts

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

what is Python?

A

Python is a widely-used, interpreted, object-oriented, and high-level programming language with dynamic semantics, used for general-purpose programming.

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

Who made Python?

A

Guido van Rossum

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

Different types of Python codes

A

Cpython, Cython, Jython and PyPy/ RPython

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

IDLE

A

Integrated Development and Learning Environment

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

a complete set of know commands is called:

A

an instruction list

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

What is CPython?

A

The default implementation of the python, written in the C language

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

What do you call a tool that lets you launch your code step-by-step and inspect it at each moment of execution.

A

a debugger

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

what will
prin (“Goodbye!”)
output

A

It will generate and error message

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

What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts?

A

A Console

17
Q

What is Machine Code?

A

A low-level programming language consisting of binary digits/bits that the computer reads and understands

18
Q

What is true about compilation

A

It is faster then interpretation

The code is converted directly into machine code executable by the processor.