Hoja de repaso: Introduction to Computer Programming

Course Outline

  1. Programming Vocabulary Baseline
  2. Computers and Program Responsibility
  3. System and Application Programs
  4. Binary and Machine Language
  5. Three Programming Language Levels
  6. Compilation and Interpretation
  7. Classification and Exact Instructions

1. Programming Vocabulary Baseline

Essential Points

  • Unit 1 is a two-hour lecture with two hours of lecture time and no laboratory work, and students write and compile no code in this unit.

2. Computers and Program Responsibility

Key Concepts & Definitions

  • Computer : A machine that stores data and carries out instructions on that data exactly as given.
  • Program : A complete set of instructions that tells a computer how to perform one job.
  • Instruction : One single command inside a program.

Essential Points

📌 A computer obeys literally, obeys instructions in order unless told to jump, and never guesses when an instruction has no single definite meaning.

  • The programmer is accountable for every instruction a computer carries out, including instructions that were omitted or failed to handle a case.

3. System and Application Programs

Key Concepts & Definitions

  • System program : Keeps the computer itself working by managing memory, files, devices, and processor sharing.
  • Application program : Exists to perform a job wanted by the user, such as writing, browsing, or computing a grade.
  • Operating system : The main system program that shares memory, processor time, and files among other programs.

4. Binary and Machine Language

Key Concepts & Definitions

  • Binary : A number system that uses only the digits 0 and 1.
  • Machine language : Consists of instructions written in binary and is the only language form the processor can execute directly.

Essential Points

  • To convert a binary number to decimal, add the place values of the positions containing 1, whose values from right to left are 1, 2, 4, 8, 16, 32, and so on.

5. Three Programming Language Levels

Key Concepts & Definitions

  • Assembly language : Writes machine instructions as short command words such as LOAD, ADD, and STORE, with one word for each machine step.
  • High-level language : Written for programmer convenience, with one readable line representing many machine steps.

Essential Points

  • Machine-level code is binary for the processor, assembly-level code uses short words for one machine step, and high-level code uses readable statements for several machine steps.

Memory Hook

Machine → assembly → high-level

6. Compilation and Interpretation

Key Concepts & Definitions

  • Translator : A program that turns source written in one language into another language.
  • Compiler : Translates the whole source file into machine-ready form before the program runs and produces a machine-code file saved on disk.
  • Interpreter : Translates and carries out source code one instruction at a time while the program is running, without saving a translated file.

Essential Points

📌 Compilation is slower to start but faster to run and checks the whole file before execution, whereas interpretation starts immediately but translates during execution and finds an error when its line is reached.

Memory Hook

Whole file first versus one instruction at a time

7. Classification and Exact Instructions

Essential Points

  • To make an everyday instruction executable, replace every vague judgment with an exact condition and specify the exact output, such as displaying PASSED when the grade is 75 or more and FAILED otherwise.

Synthesis Tables

Program Families

FamilyPrimary purposeExamples
System programKeeps the machine working and manages resourcesOperating system, printer driver, antivirus scanner, file manager
Application programPerforms a task wanted by the userWord processor, web browser, spreadsheet, school enrollment portal

Translation Methods

DimensionCompilationInterpretation
Translation timingWhole source file before executionOne instruction at a time during execution
OutputSaved machine-code fileNothing saved
Startup and executionSlower startup, faster executionFaster startup, slower execution
Error detectionWhole file checked before anything runsError found when the faulty line is reached

Pon a prueba tus conocimientos

Pon a prueba tus conocimientos sobre Introduction to Computer Programming con 21 preguntas de opción múltiple con correcciones detalladas.

1. What does Unit 1 require students to do with code?

2. What is the scheduled format of Unit 1?

Realiza el cuestionario →

Repasa con tarjetas de memoria

Memoriza los conceptos clave de Introduction to Computer Programming con 38 tarjetas de memoria interactivas.

How long is the lecture time in Unit 1?

Two hours of lecture time.

Does Unit 1 include any laboratory work?

No, it includes no laboratory work.

Do students write or compile code in Unit 1?

No, students write and compile no code in Unit 1.

Ver tarjetas de memoria →

Similar courses

Crea tus propias hojas de repaso

Importa tu curso y la IA genera hojas, cuestionarios y tarjetas de memoria en 30 segundos.

Generador de hojas