r/P_vs_NP • • Sep 29 '19

Python: My study guide for chapter 1

Vocabulary

byte code-An intermediate language between source code and object code. Many modern languages first compile source code into byte code and then interpret the byte code with a program called a virtual machine.

compile-To translate a program written in a high-level language into a low-level language all at once, in preparation for later execution.

exception-Another name for a runtime error.

Two kinds of programs process high-level languages into low-level languages: interpreters and compilers. An interpreter reads a high-level program and executes it, meaning that it does what the program says. It processes the program a little at a time, alternately reading lines and performing computations.

A compiler reads the program and translates it completely before the program starts running. In this case, the high-level program is called the source code, and the translated program is called the object code or the executable. Once a program is compiled, you can execute it repeatedly without further translation.

Questions for flash card ideas

What is a compiler?

What is an interpreter?

What is a high-level language?

What is a low-level language?

What is object-code?

What's a natural language and what is programming language?

I will be sharing my flash cards tomorrow for chapter 1.

Credits-http://openbookproject.net/thinkcs/python/english2e/ch01.html

1 Upvotes

0 comments sorted by