Week 1 Flashcards

1
Q

Is Python a high or low level language?

A

High level

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

What are low level languages also referred as?

A

low-level languages, sometimes referred to as “machine languages” or “as- sembly languages.”

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

Generally speaking what language do computers understand programs at?

A

At the low level

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

What is a disadvantage of a high level programming language?

A

Have to be processed to a lower level before they can be run.

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

What are the advantages of a high level programming language?

A

Much easier to program. Less time to write. Shorter and easier to read. More likely to be correct. Portable.

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

What are the two kinds of programs that process high level languages into low level?

A

Interpreters and compilers

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

What is an interpreter?

A

An interpreter reads high level language and executes. usually line by line.

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

What does a compiler do?

A

A compiler reads the program and translates it completely before execution.

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

What is problem solving?

A

Problem solving means the ability to formulate problems, think creatively about solutions, and express a solution clearly and accurately.

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

What is a program?

A

A sequence of instructions that specify how to perform a computation.

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

What are the 5 instructions that pretty much any program will use?

A

Input, output, math, conditional execution , and repetition

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

When referring to a program made through a compiler. what are the definitions for the terms below.

Source code, object code, and what is another term for object code?

A

Source code: high level program

Object code: translated program

Executable

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

Python is considered as what kind of an language?

Interpreter or compiler one?

A

Interpreter

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

What are the two ways to use the python interpreter?

A

Interactive and script mode

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

What does the chevron&raquo_space;> in Python indicate?

A

Indicates interpreter is ready for code to be typed in

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

Python scripts use what kind of an extension for file name?

A

.py

17
Q

Is programming error proof?

A

No it isn’t

18
Q

What is a programming error called?

A

Called a bug

19
Q

What is debugging?

A

Process of tracking down a bug, and finding it is debugging.

20
Q

What does syntax refer to?

A

Structure of a program and rules about that structure.

21
Q

What are runtime errors?

A

When an error appears after the program has started running.

22
Q

Why are runtime errors exceptions?

A

Because they indicate something exceptional and bad has happened.

23
Q

What is a semantic error?

A

When a program runs successfully, does what it is told to do, but not what you want it to do.

24
Q

What are the three errors that appear in programs?

A

Syntax, runtime, and semantic errors.

25
Q

What are formal languages?

A

Designed by people for specific applications.

26
Q

Programming languages have been designed to express what?

A

Have been designed to express computations.

27
Q

What are tokens in a language?

A

Basic elements of the language

28
Q

What are some examples of tokens

A

Words, numbers, and chemical elements

29
Q

What is the structure syntax rule?

A

Structure of a statement can’t have + before 1

30
Q

Formal languages tend to have strict rules about ______?

A

Syntax

31
Q

What is parsing?

A

Figure out the structure of a sentence, statement, or line of code.

32
Q

What is conditional execution?

A

Check for certain conditions and executed the appropriate sequence of statements