Lecture 1 - Programming Language Compiler Flashcards

1
Q

6 (Importance of Studying Programming Languages)

Importance of Studying Programming Languages

A
  • To improve your ability to develop effective algorithms
  • To improve use of your existing programming language
  • To increase your vocabulary of useful programming constructs
  • To allow better choice of programming language
  • To make it easier to learn a new language
  • To make it easier to design a new language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

6 (Importance of Studying Programming Languages)

Importance of Studying Programming Languages

A
  • To improve your ability to develop effective algorithms
  • To improve use of your existing programming language
  • To increase your vocabulary of useful programming constructs
  • To allow better choice of programming language
  • To make it easier to learn a new language
  • To make it easier to design a new language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

?

is a computer program that transforms code written in a high-level programming language into the machine code

Compiler and Interpretation

A

Compiler

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

?

It is a program which translates the human-readable code to a language a computer processor understands (binary 1 and 0 bits)

Compiler and Interpretation

A

Compiler

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

?

compiler is only program and cannot fix errors found in that program.

Compiler and Interpretation

A

Compiler

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

?

is a computer program, which coverts each high-level program statement into the machine code. This includes source code, pre-compiled code, and scripts.

Compiler and Interpreter

A

Interpreter

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

?

do the same job which is converting higher level programming language to machine code.

Compiler and Interpreter

A

compiler and interpreters

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

?

will convert the code into machine code (create an exe) before program run

Compiler and Interpreter

A

compiler

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

?

convert code into machine code when the program is run.

Compiler and Interpreter

A

Interpreters

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

?

Compiled code runs faster

KEY DIFFERENCES OF COMPILER AND INTERPRETER

Compiler and Interpreter

A

Compiler

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

?

Interpreted code runs slower

KEY DIFFERENCES OF COMPILER AND INTERPRETER

Compiler and Interpreter

A

Interpreter

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

?

? takes an inter program

KEY DIFFERENCES OF COMPILER AND INTERPRETER

Compiler and Interpreter

A

Compiler

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

?

? takes a single line of code

KEY DIFFERENCES OF COMPILER AND INTERPRETER

Compiler and Interpreter

A

Interpreter

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

?

? will parse all of the language statements for its correctness. If incorrect, throws an error

KEY DIFFERENCES OF COMPILER AND INTERPRETER

Compiler and Interpreter

A

Compiler

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

?

No linking of files or machine code generation

KEY DIFFERENCES OF COMPILER AND INTERPRETER

Compiler and Interpreter

A

Interpreter

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

?

If no error, the compiler will convert source code to machine

KEY DIFFERENCES OF COMPILER AND INTERPRETER

Compiler and Interpreter

17
Q

?

Source statements executed line by line during execution

KEY DIFFERENCES OF COMPILER AND INTERPRETER

Compiler and Interpreter

A

Interpreter

18
Q

?

It links different code files into a runnable program

KEY DIFFERENCES OF COMPILER AND INTERPRETER

Compiler and Interpreter

19
Q

? reads the source code, outputs executable code

Role of Compiler

Compiler and Interpreter

20
Q

Translates software written in a ? into instructions that computer can understand.

Role of Compiler

Compiler and Interpreter

A

higher-level language

21
Q

It converts the text that a programmer writes into a format the ? can understand.

Role of Compiler

Compiler and Interpreter

22
Q

The process of ? is relatively complicated. It spends a lot of time analyzing and processing the program

Role of Compiler

Compiler and Interpreter

A

compilation

23
Q

The executable result is some form of machine-specific ?

Role of Compiler

Compiler and Interpreter

A

binary code

24
Q

The ? converts the source code line-by-line during RUN Time

Role of Interpreter

Compiler and Interpreter

A

interpreter

25
# **?** **completely translates a program** written in a high-level language into machine level language | Role of Interpreter ## Footnote Compiler and Interpreter
Interpret
26
Interpreter **allows evaluation and** **?** of the program while it is executing. | Role of Interpreter ## Footnote Compiler and Interpreter
modification
27
Relatively less time spent for analyzing and **processing the** **?** | Role of Interpreter ## Footnote Compiler and Interpreter
program
28
Program execution is relatively **slow compared to** **?** | Role of Interpreter ## Footnote Compiler and Interpreter
compiler
29
(5) Compiler Construction Tools ## Footnote Compiler Construction Tools
* Scanner generators * Syntax-directed translation engines * Parser generators * Automatic code generators * Data-flow engines
30
# **?** This tool **takes regular expressions** as input. For example **LEX for Unix Operating System.** ## Footnote Compiler Construction Tools
Scanner generators
31
# **?** These software tools offer an intermediate code by using the **parse tree**. ## Footnote Compiler Construction Tools
Syntax-directed translation engines
32
# **?** It has a goal of associating **one or more translations** with each node of the **parse tree**. ## Footnote Compiler Construction Tools
Syntax-directed translation engines
33
# **?** A **?** takes a **grammar as input** and automatically **generates source code** which can parse streams of characters with the help of a **grammar**. ## Footnote Compiler Construction Tools
Parser generators
34
# **?** **Takes intermediate code** and converts them into **Machine Language** ## Footnote Compiler Construction Tools
Automatic code generators
35
# **?** This tool is **helpful for code optimization**. ## Footnote Compiler Construction Tools
Data-flow engines
36
# **?** Here, information is **supplied by user and intermediate code** is **compared to analyze any relation.** ## Footnote Compiler Construction Tools
Data-flow engines
37
# **?** It is also known as **data-flow analysis** ## Footnote Compiler Construction Tools
Data-flow engines
38
# **?** It helps you to find out **how values** are transmitted **from one part** of the program **to another part**. ## Footnote Compiler Construction Tools
Data-flow engines