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. FORTRAN

  2. COMPTRAN

  3. FLOW MATIC

  4. PASCAL

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

The PICTURE clause (for data formatting and editing) in COBOL was borrowed from COMTRAN (Commercial Translator), not from FLOW-MATIC, FORTRAN, or Pascal. COMTRAN was an IBM business language that contributed this data description feature.

Multiple choice technology programming languages
  1. Common Business Oriented Language

  2. Common Business Language

  3. Business Oriented Language

  4. Business Language

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

When the CODASYL committee first named the language in 1959, they called it 'Common Business Language' (CBL). It was later renamed to COBOL (Common Business Oriented Language). Option B reflects this original name.

Multiple choice technology operating systems
  1. Source code Debugger

  2. Compiler

  3. Assembler

  4. Command-line interpreter

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

A shell is a command-line interpreter that provides a user interface for access to an operating system's services, executing commands entered by the user.

Multiple choice technology web technology
  1. 2nd Generation Programming Language

  2. 3rd Generation Programming Language

  3. 4th Generation Programming Language

  4. 5th Generation Programming Language

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

IDEAL is a 4th Generation Programming Language (4GL) developed by Texas Instruments for application development on mainframes. 4GLs are designed to be more user-friendly and closer to natural language than 3GLs like COBOL. They provide higher-level abstractions and built-in functionality for common business tasks.

Multiple choice technology mainframe
  1. Basic Assembler Language

  2. Binary Assembly link

  3. Binary ASCII Language

  4. Bit Assembler Language

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

BAL stands for Basic Assembler Language, which is the assembly language used on IBM mainframe systems. It's a low-level programming language for system programming on IBM z/Architecture and earlier systems.

Multiple choice technology web 2.0
  1. Immediate language Assembler

  2. Immediate Dis-Assembler language

  3. Intermediate Language Dis-Assembler

  4. Intermediate De-Assembler language

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

ILDASM (Intermediate Language Disassembler) is a Microsoft tool that disassembles .NET assemblies into human-readable Intermediate Language (IL) code. It helps developers understand how high-level code compiles to IL.

Multiple choice technology
  1. Vim

  2. Perl

  3. Pico

  4. Vi

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

Perl is a programming language, not a text editor. Vim, Pico, and Vi are all text editors commonly used in Unix/Linux systems. Perl can be used to process text but is a scripting language first.

Multiple choice technology security
  1. Machine language

  2. Assembly level language

  3. Procedural language

  4. Non Procedural language

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

Assembly language uses mnemonics (human-readable abbreviations like MOV, ADD) and opcodes to represent machine instructions. Machine language (A) uses binary, while procedural (C) and non-procedural (D) languages are high-level paradigms.

Multiple choice technology testing
  1. code

  2. Debug

  3. Defect

  4. Failure

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

Code refers to computer instructions and data definitions expressed in a programming language or output by translators like compilers. Debug is the process of finding faults. A defect is a flaw in the code. A failure is the observable incorrect behavior. Option A matches the definition given.

Multiple choice technology programming languages
  1. PROLOG

  2. PYTHON

  3. PASCAL

  4. PERL

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

The code shows Prolog's fact/rule syntax using ':-' (horn clause operator). 'hello_world :- write('Hello World!')' defines a rule that succeeds when 'hello_world' is called and executes 'write'. This is unmistakably Prolog.