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 technology programming languages
  1. C# Language Code

  2. Assembly Language Code

  3. Intermediate Language which CLR understands

  4. Pseudo-code

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

C# code is compiled to Intermediate Language (IL), also called Microsoft Intermediate Language (MSIL). The CLR (Common Language Runtime) executes IL through JIT compilation to native machine code. This is different from the original C# source code, assembly language, or pseudocode.

Multiple choice technology mainframe
  1. Restructure EXtended eXecutor language

  2. Restructured EXtending eXecutor language

  3. Restructured EXtended eXecutor language

  4. Restructured EXtended eXecution language

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

REXX (Restructured EXtended eXecutor) is a programming language developed by IBM. The official expansion emphasizes its restructured design and extended execution capabilities. It's commonly used on mainframe systems for scripting and automation.

Multiple choice technology web technology
  1. Web Services Developing Language

  2. Web Services Definition Language

  3. Web Servers Definition Language

  4. None of these

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

WSDL stands for Web Services Definition Language. It is an XML-based language used to describe web services, their format, and how to access them. The key distractor A incorrectly says 'Developing' instead of 'Definition'.

Multiple choice technology programming languages
  1. A type of coffee

  2. An object-oriented programming language

  3. An interactive website

  4. None of the above

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

Java is a high-level, class-based, object-oriented programming language designed to have as few implementation dependencies as possible. It was developed by Sun Microsystems (now Oracle) and is widely used for enterprise applications, Android development, and web backends. Coffee was the original inspiration for the name, but Java itself is code.

Multiple choice technology mainframe
  1. Alpha-numeric (X), alphabetic (A) and numeric(9).

  2. Alpha-numeric (X) and numeric(9).

  3. Alpha-numeric (X), alphabetic (A), String (S) and numeric(9)

  4. None of the above

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

COBOL has three fundamental data types specified by picture clauses: Alphabetic (A) for letters only, Alphanumeric (X) for letters, numbers, and special characters, and Numeric (9) for digits only. Option C incorrectly includes 'String (S)' which is not a COBOL picture clause - the 'S' in picture clauses indicates a signed number, not a separate data type. The basic three types are A, X, and 9.

Multiple choice technology web technology
  1. Programming Language

  2. Content Management System

  3. Scripting Language

  4. Operating System

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

Drupal is a free, open-source Content Management System (CMS) written in PHP. It provides a platform for building and managing websites, blogs, and online communities without writing code from scratch. Drupal's modular architecture allows extensibility through themes and modules, distinguishing it from programming languages, scripting languages, or operating systems.

Multiple choice technology web technology
  1. Java

  2. c#

  3. PHP

  4. ASP.net

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

Drupal is written in PHP, a server-side scripting language designed for web development. The Drupal core and most contributed modules use PHP. This choice allows Drupal to run on any server with PHP support, including Apache and Nginx on Linux, Windows, or macOS. Java, C#, and ASP.NET are used in other web frameworks but not Drupal.

Multiple choice technology mainframe
  1. High Level Language

  2. Low Level Language

  3. Mid Level Language

  4. None of the Above

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

Assembly language is classified as a low-level language because it provides minimal abstraction from the computer's instruction set architecture. Unlike high-level languages which use human-readable syntax and complex abstractions, assembly language uses mnemonic codes that directly correspond to machine instructions, requiring programmers to manage hardware details like registers and memory addresses.

Multiple choice technology mainframe
  1. Interpretor

  2. Compiler

  3. Assembler

  4. None of the above

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

An assembler is the specialized program that translates assembly language mnemonics into machine code. Unlike compilers which work with high-level languages, or interpreters which execute code line-by-line, assemblers perform a direct one-to-one conversion of assembly instructions to their binary machine code equivalents.

Multiple choice technology mainframe
  1. Duomorphic

  2. Isomorphic

  3. Trimorphic

  4. Translate

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

Assembler translation is isomorphic because there is a one-to-one correspondence between assembly language mnemonics and machine instructions. Each assembly statement typically maps to exactly one machine instruction, maintaining a direct structural relationship between the source code and the output.