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

A

Compiler

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

A

Compiler

19
Q

? reads the source code, outputs executable code

Role of Compiler

Compiler and Interpreter

A

Compliers

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

A

CPU

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
Q

?

completely translates a program written in a high-level language into machine level language

Role of Interpreter

Compiler and Interpreter

A

Interpret

26
Q

Interpreter allows evaluation and ? of the program while it is executing.

Role of Interpreter

Compiler and Interpreter

A

modification

27
Q

Relatively less time spent for analyzing and processing the ?

Role of Interpreter

Compiler and Interpreter

A

program

28
Q

Program execution is relatively slow compared to ?

Role of Interpreter

Compiler and Interpreter

A

compiler

29
Q

(5) Compiler Construction Tools

Compiler Construction Tools

A
  • Scanner generators
  • Syntax-directed translation engines
  • Parser generators
  • Automatic code generators
  • Data-flow engines
30
Q

?

This tool takes regular expressions as input. For example LEX for Unix Operating System.

Compiler Construction Tools

A

Scanner generators

31
Q

?

These software tools offer an intermediate code by using the parse tree.

Compiler Construction Tools

A

Syntax-directed translation engines

32
Q

?

It has a goal of associating one or more translations with each node of the parse tree.

Compiler Construction Tools

A

Syntax-directed translation engines

33
Q

?

A ? takes a grammar as input and automatically generates source code which can parse streams of characters with the help of a grammar.

Compiler Construction Tools

A

Parser generators

34
Q

?

Takes intermediate code and converts them into Machine Language

Compiler Construction Tools

A

Automatic code generators

35
Q

?

This tool is helpful for code optimization.

Compiler Construction Tools

A

Data-flow engines

36
Q

?

Here, information is supplied by user and intermediate code is compared to analyze any relation.

Compiler Construction Tools

A

Data-flow engines

37
Q

?

It is also known as data-flow analysis

Compiler Construction Tools

A

Data-flow engines

38
Q

?

It helps you to find out how values are transmitted from one part of the program to another part.

Compiler Construction Tools

A

Data-flow engines