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. Abstract window toolkit

  2. Java applet

  3. Java IDL

  4. Java beans

  5. AlarmPresentation

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

Java IDL enables objects to interact regardless of whether they are written in the java programming language or another language such as COBOL, C++ or others.

Multiple choice
  1. code generator

  2. scanner

  3. semantic analyzer

  4. parser

  5. intermediate code generator

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

Semantic analyzer produces annotated parse tree.

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.