Basics Flashcards

(38 cards)

1
Q

Computers have their own language

A

Machine Language that are developed by humans

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

A complete set of known commands is called

A

Intstruction List

IL

example describe how to tie shoe

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

The difference, though, is that human languages developed naturally.

Moreover, they are still evolving, and new words are created every day as old words disappear.

A

Natural languages

Grunts to Shakespear and beyond

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

make up a language

ALLS

A

an alphabet: a set of symbols used to build words of a certain language (e.g., the Latin alphabet for English, the Cyrillic alphabet for Russian, Kanji for Japanese, and so on)

a lexis: (aka a dictionary) a set of words the language offers its users (e.g., the word “computer” comes from the English language dictionary, while “cmoptrue” doesn’t; the word “chat” is present both in English and French dictionaries, but their meanings are different)

a syntax: a set of rules (formal or informal, written or felt intuitively) used to determine if a certain string of words forms a valid sentence (e.g., “I am a python” is a syntactically correct phrase, while “I a python am” isn’t)

semantics: a set of rules determining if a certain phrase makes sense (e.g., “I ate a doughnut” makes sense, but “A doughnut ate me” doesn’t)

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

Instruction List

A

ABC
Alphabet Soup
Alphabet of computers

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

We need a language in which humans can write their programs and a language that computers may use to execute the programs, one that is far more complex than machine language and yet far simpler than natural language.

high-level programming languages

typing code so that HAL understands

A

Source Code

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

Files that contain source code

A

Source Files

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

source code translated once and repeated each time it is modified) and contains the machine code and is distributable worldwide.

A

Compilation

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

the program that does the translation of the code worldwide is called

A

Compiler

Bulldog……. worldwide

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

you (or any user of the code) can translate the source program each time it has to be run

A

INTERPRETATION

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

Program running the INTERPRETATION is

A

Interpreter

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

Interpreter is much like the Enigma machine that requires both the user and the end user to

A

Have the interpreter. If that does not happen it does not work.

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

Let’s assume once more that you have written a program. Now, it exists as a

A

Computer File

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

piece of text - actually piece of text - that is actually part of the source code of a

A

program.

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

each text file is like madonna

A

pure text - like a virgin

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

Bulldog advantages worldwide

A

faster

only user needs compiler

data stored as machine language

17
Q

Enigma Interpretation advantages

A

run code as soon as it is completed

code stored as computer language

18
Q

Bulldog disadvantages

A

time comsuming

must have 1 compiler per h/w platform

19
Q

Enigma disadvantages

A

not performant

both creator and end user need secret decoder book.

20
Q

Monty Python speaks fluently with

A

interpreted language

21
Q

To program the python you will need the

A

interpetor - cant run code without it

22
Q

languages used in the interpretation - enigma machine - manner like python are called

A

scripting languages

23
Q

the source programs that use interpretation manner much like enigma machine are called

24
Q

Python was created by Guido Van Rossum and the name is based on Monty Python’s Flying Circus

A

Guido is doing his version of Ministry of Silly Walks..

25
Python Goals easy (and intuitive) open source understandable suitable for everyday tasks
EOUS
26
Python is EZ
learn teach use understand obtain
27
Python drawbacks
not performant can be resistant to testing techniques debugging can be a bitch - Grace Hopper hates that!
28
Python is most prevelent on
Internet Services - ISPS
29
Python used by scientists, testers and
everyday use application
30
Python has friends in low places and is not suitable for creating drivers
low-level programming.
31
Python is not used in mobile devices
This is the land of Android
32
Python2 and Python3 are not
Compatible and don't talk to eachother
33
All versions of Python3 are
backwards compatible
34
like J. Jonah Jamesons supports you in writing code
editor
35
where to start and forcible stop code
console
36
launches code step-by-step and allows inspection at each moment of execution
debugger
37
Integrated Development Environment
IDLE
38
Error Output
the traceback (which is the path that the code traverses through different parts of the program - you can ignore it for now, as it is empty in such a simple code); the location of the error (the name of the file containing the error, line number and module name); note: the number may be misleading, as Python usually shows the place where it first notices the effects of the error, not necessarily the error itself; the content of the erroneous line; note: IDLE’s editor window doesn’t show line numbers, but it displays the current cursor location at the bottom-right corner; use it to locate the erroneous line in a long source code; the name of the error and a short explanation.