Computer Knowledge

Programming Languages and Compilers

2,284 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. a Programming Language and a Development Environment

  2. an Application Environment and a Deployment Environment

  3. Both (1) and (2)

  4. None of these

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

Java technology is a comprehensive platform that includes a programming language, development environment (tools like JDK), application environment (JRE), and deployment environment. Therefore option C (both 1 and 2) is correct.

Multiple choice
  1. polymorphism

  2. inheritance

  3. code reusability

  4. JNI (Java Native Interface)

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

JNI (Java Native Interface) allows Java code to call and be called by native applications and libraries written in other languages like C, C++, or assembly. It provides a bridge between Java and native code execution through the operating system.

Multiple choice
  1. high-Level

  2. machine

  3. symbolic

  4. english

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

A source program is code written in a high-level programming language like Python, Java, C++, or COBOL that humans can read and write. Source programs must be translated into machine code through compilers or interpreters before computers can execute them. Machine code is the output of translation, symbolic language refers to assembly, and English is not a programming language.

Multiple choice
  1. PL/1

  2. PASCAL

  3. ADA

  4. COBAL

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

Ada was specifically designed by the U.S. Department of Defense for real-time and process control systems, particularly in mission-critical applications. It supports concurrent programming, real-time operations, and high reliability requirements. While PL/1 is a general-purpose language and Pascal is educational, Ada's design philosophy focuses on safety and reliability in embedded systems.

Multiple choice
  1. Machine language

  2. Assembly language

  3. Programming language

  4. Feeding language

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

Machine language (or machine code) is the native binary language that computers directly execute - it consists of 1s and 0s that the CPU interprets as instructions. All other programming languages must ultimately be translated or compiled into machine language before the computer can understand and execute them. Assembly language uses mnemonics to represent machine instructions, while high-level programming languages are more human-readable but require compilers or interpreters.

Multiple choice
  1. BASIC

  2. COBOL

  3. FORTRAN

  4. LISP

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

LISP (LISt Processing) was developed by John McCarthy in 1958 specifically for artificial intelligence research and remains influential in AI to this day. LISP's unique features - symbolic computation, recursive functions, and list-based data structures - made it ideal for early AI applications like natural language processing and theorem proving. Many modern AI concepts have roots in LISP, and it heavily influenced later AI languages like Prolog and Python.