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. 4GL Programming Language

  2. Database

  3. Modeling Language

  4. None of these

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

Rational Rose is a specialized software tool used for object-oriented software development and visual modeling. It utilizes the Unified Modeling Language (UML) to create diagrams and design software architectures. It is not a programming language or a database, but a tool for designing system models.

Multiple choice
  1. C

  2. C++

  3. JAVA

  4. None of these

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

C and C++ are traditional compiled languages. Java is also compiler-based because it is compiled into bytecode before execution. Since all the listed languages use a compiler, 'None of these' is the correct answer.

Multiple choice
  1. machine language

  2. high level language

  3. assembly language

  4. None of these

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

Machine language is the lowest-level programming language, consisting entirely of binary digits (0s and 1s). It is the only language that a computer's CPU can understand and execute directly.

Multiple choice
  1. ADA

  2. APL

  3. CHDL

  4. LOGO

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

CHDL stands for Computer Hardware Description Language, which is used to model the behavior and structure of digital systems. Other options like ADA and APL are general-purpose programming languages, while LOGO is designed for educational use.

Multiple choice
  1. LOGO

  2. COBOL

  3. COREL

  4. None of these

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

Corel is a software company known for products like CorelDRAW and WordPerfect, rather than a programming language. LOGO and COBOL are well-known programming languages used for education and business, respectively. Therefore, Corel is the outlier in this list of software languages.

Multiple choice
  1. First generation of computers

  2. Second generation of computers

  3. Third generation of computers

  4. Fourth generation of computers

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

COBOL (Common Business-Oriented Language) and FORTRAN (Formula Translation) were developed in the late 1950s. These high-level languages became widely used during the second generation of computers, which moved away from machine language toward more human-readable code. This era also saw the transition from vacuum tubes to transistors.

Multiple choice
  1. Basic

  2. Cobol

  3. Fortran

  4. None of these

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

BASIC (Beginner's All-purpose Symbolic Instruction Code) was traditionally designed as an interpreted language to allow for interactive programming and immediate feedback. COBOL and FORTRAN are typically compiled languages where the entire source code is converted to machine code before execution.