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. Machine language

  2. C

  3. JAVA

  4. LISP

  5. COBOL

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

A low level programming language is one that provides little or no abstraction from a computer's instruction set architecture. Generally, this refers to either machine code or assembly language.

Multiple choice
  1. Program Interpretation

  2. Program Translation

  3. Linear Search

  4. Binary Search

  5. Multiprogramming

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

This model bridges the execution gap by translating a program written in a programming language called the source program into an equivalent program in the machine or assembly language of the computer system called the target program.

Multiple choice
  1. Imperative statement

  2. Declaration statement

  3. Assembler directives

  4. YACC

  5. Debugger

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

This is an assembly language statement which indicates an action to be performed during the execution of the assembled program. This is a language processor development tool which is a syntax directed definition for the translation of the source program into an IR or the target program.

Multiple choice
  1. Lexical Analysis

  2. Syntax Analysis

  3. Intermediate Code Generation

  4. Code Optimisation

  5. Code Generation

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

This phase of the compiler transforms the parse tree into an intermediate language representation of the source program called Three-Address Code.

Multiple choice
  1. Loader

  2. Linker

  3. Object program

  4. Compiler

  5. Interpreter

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

The process of replacing symbolic references or names of libraries with actual usable addresses in memory before running a program is called as relocation and is performed mainly by the linker.

Multiple choice
  1. List Progress

  2. List Processor

  3. List Progressive

  4. List Programming

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

LISP (List Processing) is a high-level programming language designed for symbolic computation and list manipulation. Its name directly reflects its core functionality - processing lists as the primary data structure.

Multiple choice
  1. Programming in Logic

  2. Programming for Listing

  3. Programming for Language

  4. None of these

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

PROLOG (PROgramming in LOGic) is a logic programming language associated with artificial intelligence and computational linguistics. Its name directly indicates that it uses logic (declarative programming) rather than procedural imperative commands.

Multiple choice
  1. Godrej laboratories

  2. Bell laboratories

  3. Xinhua laboratories

  4. None of these

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

C language was developed at Bell laboratories.

Multiple choice
  1. FORTRAN

  2. ASCII

  3. BCD

  4. None of these

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

FORTRAN (Formula Translation) is a high-level programming language developed for scientific and numerical computing. ASCII is a character encoding standard, and BCD (Binary Coded Decimal) is a numeric encoding method - neither are programming languages.

Multiple choice
  1. Formula transfomer

  2. Formula translation

  3. Formula traveller

  4. Formula translander

  5. None of these

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

Correct option is 2