Computer Knowledge

Programming Languages and Compilers

1,170 Questions

Programming languages and compilers involve the rules, syntax, and semantics used to write and execute software programs. Key areas include scripting languages, object oriented concepts, and parsing algorithms like top down parsers. Practice these computer science questions to build proficiency for technical and computer knowledge exams.

Object oriented languagesScripting languagesCompilers and parsersProgramming syntax

Programming Languages and Compilers Questions

Multiple choice
  1. low level language

  2. machine language

  3. object oriented language

  4. assembly language

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

C++ is a multi-paradigm programming language that supports object-oriented programming. While it also supports procedural and generic programming, its key feature is object-oriented capabilities like classes, inheritance, and polymorphism. Low-level languages (like assembly) and machine languages are closer to hardware, while C++ provides abstraction with hardware access when needed.

Multiple choice
  1. Program execution activity

  2. Program generator domain

  3. Program generation activity

  4. Pseudo-operations

  5. Caching

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This technique is used to represent the automatic generation of a program and source language is a specification language of an application domain.

Multiple choice
  1. Semantic analysis

  2. Permission analysis

  3. Control flow analysis

  4. Data flow analysis

  5. Lexical analysis

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

The task of scanning source statement, recognising and classifing the various tokens is known as lexical analysis. In this analysis, the text is read and divided into tokens and each of which corresponds to a symbol in the programming language.

Multiple choice
  1. assembly language programming

  2. programming of microcomputer

  3. control unit programming

  4. macro-programming of micro-computers

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Microprogramming involves programming the control unit of a CPU using microinstructions. Each machine instruction is broken down into micro-operations (microinstructions) stored in control memory. The control unit executes these microinstructions to perform the actual operations. It is not assembly language programming (which uses mnemonics), nor programming of microcomputers in general.