베타이 플랫폼은 활발히 개발 중이에요; 버그, 미완성 기능, 데이터 손실 위험이 있어요. 응원해 주셔서 감사해요!

Types Of Programming Language, Translators & Integrated Development Environments (IDEs)

플레이하며 배우기

이 문제들을 풀어 에너지를 얻은 뒤 낚시하고 탐험하세요. 계정이 필요 없어요.

선생님을 위해: Types Of Programming Language, Translators & Integrated Development Environments (IDEs)(Computer Science, CIE)을(를) 위한 바로 쓸 수 있는 수업 슬라이드, 복습 노트, 다이어그램 — 수업에 사용하거나, 학생들이 실시간 게임으로 즐기는 인터랙티브 클래스 활동으로 진행하세요.

수업 노트

Levels of Programming Languages

  • A programming language is a bridge between human understanding and computer execution.
  • Low-level languages (1st & 2nd generation) directly translate to machine code and allow direct hardware control.
  • Machine code (1st generation) is binary (0s and 1s) directly executable by the processor.
  • Assembly language (2nd generation) uses mnemonics like LDA, STA; one assembly instruction = one machine code instruction.
  • High-level languages (3rd generation) use English-like statements (e.g., Python, Java, C++).
  • One high-level instruction translates to many machine code instructions.
  • High-level languages are portable (can run on any computer with a translator) and easier to debug.

Assembly Language

  • Assembly language is a second-generation low-level language using mnemonics.
  • Common mnemonics: LDA (load into accumulator), ADD (add to accumulator), STO (store accumulator to RAM).
  • An assembler translates each mnemonic into its equivalent binary machine code.
  • Used when direct hardware control is needed, or to save memory/execution time.
  • Advantages: complete control over hardware, occupies less memory, executes faster.
  • Disadvantages: machine dependent, difficult to write/understand, more prone to errors.

Translators: Compilers & Interpreters

  • A translator converts source code into machine code so the processor can execute it.
  • Assembler translates assembly language into machine code.
  • Compiler translates high-level code all in one go, creating an executable file.
  • Compiler advantages: faster execution, optimised code, source code hidden.
  • Compiler disadvantages: memory intensive, difficult to debug, must recompile after changes.
  • Interpreter translates and executes high-level code one line at a time.
  • Interpreter advantages: easier to debug (stops at first error), uses less RAM.
  • Interpreter disadvantages: slower execution, no optimisation, requires translator each run.

Integrated Development Environments (IDEs)

  • An IDE is software that provides tools to make writing high-level code more efficient.
  • Editor – write, edit, and maintain code; features include prettyprint (colour-coded keywords), auto-completion, bracket matching, and commenting.
  • Error diagnostics – highlight errors and provide debuggers for step-by-step execution to find logic errors.
  • Run-time environment – allows the program to be run and output seen within the IDE.
  • Translator – built-in compiler or interpreter so no extra software is needed.

Comparison of low-level and high-level languages

Levels of Programming LanguageLow-Level1st Gen: Machine Code (binary)2nd Gen: Assembly (mnemonics)High-Level3rd Gen: Python, Java, C++English-like statementsOne instruction → many machine codePortable, easier to debugLow-Level Languages• Direct hardware control• Machine dependent• Faster execution• Less memory usage• Difficult to write/debug• More error-proneExamples:Machine code (binary)Assembly (LDA, STA)

Three types of translators: assembler, compiler, interpreter

TranslatorsAssembler• Translates assembly to machine code• One-to-one mapping• Used for low-level languagesCompiler• Translates all code in one go• Creates executable• Faster execution• Harder to debugInterpreter• Translates line by line• Executes immediately• Slower execution• Easier to debug• No executable file

슬라이드

Sign up free to view the lesson slides

Step through every slide for this topic — plus flashcards and revision notes — with a free account.

연습 문제

무료 미리 보기 — 55개 중 8개 문제. 가입하면 전부 볼 수 있어요.
  1. 1.Which generation of programming language is machine code?

    Easy
    • AFirst generation
    • BSecond generation
    • CThird generation
    • DFourth generation
  2. 2.What is a mnemonic in assembly language?

    Easy
    • AAn abbreviated text command such as LDA or STA
    • BA binary number representing an instruction
    • CA high-level English-like statement
    • DA memory address in RAM
  3. 3.Which of the following is an advantage of using a high-level language over a low-level language?

    Easy
    • ADirect control over hardware
    • BEasier to read and write
    • COccupies less memory
    • DFaster execution
  4. 4.How does a compiler translate high-level language code?

    Medium
    • AIt translates one line at a time and executes immediately
    • BIt translates all the code in one go before execution
    • CIt translates code using mnemonics
    • DIt translates code into assembly language first
  5. 5.A program written in a high-level language is being developed. Which translator is most suitable during the development stage?

    Medium
    • AAssembler
    • BCompiler
    • CInterpreter
    • DLinker
  6. 6.What does an assembler translate?

    Easy
    • AHigh-level language to machine code
    • BAssembly language to machine code
    • CMachine code to assembly language
    • DHigh-level language to assembly language
  7. 7.Which of the following is a feature of an Integrated Development Environment (IDE)?

    Easy
    • AAssembler
    • BPrettyprint
    • COperating system
    • DDatabase management system
  8. 8.Which of the following best describes why a program written in a high-level language must be translated before execution?

    Medium
    • ATo make the code easier to read
    • BTo convert it into machine code that the processor can understand
    • CTo reduce the file size
    • DTo add comments to the code

Unlock all 55 questions & more

무료 계정을 만들어 이 주제의 모든 문제, 슬라이드, 플래시카드, 복습 노트를 확인하세요.

기출 문제

이 주제의 기출 문제 연습이 곧 나와요.
곧 출시