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

  2. Cobra

  3. VC++

  4. Python

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

Python is well-known for using significant whitespace (indentation) to define block structure, unlike languages like Java, C++, or Cobra that use braces/end keywords. Python's syntax relies on consistent indentation for nested blocks, making it the correct answer. Options A, B, C use brace-based syntax.

Multiple choice technology programming languages
  1. Compiled

  2. Interpreted

  3. Both

  4. None

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

Perl is primarily an interpreted language, though Perl scripts can be compiled to bytecode. Unlike C or Java which are compiled to native code, Perl code is typically executed by the Perl interpreter. Option B correctly identifies Perl as interpreted.

Multiple choice technology programming languages
  1. Practically Extracted Reporting Language

  2. Practical Extraction report Language

  3. Practical Extraction and report Language

  4. Practical Export and report Language

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

Perl officially stands for 'Practical Extraction and Reporting Language'. Option C has the exact wording. Options A and B have 'Extracted' instead of 'Extraction' and missing 'and'. Option D uses 'Export' which is incorrect.

Multiple choice technology programming languages
  1. Javadoc

  2. J#

  3. C++

  4. Cdoc

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

C# uses XML documentation comments (///) that are conceptually similar to Javadoc's /** */ syntax. Both systems allow embedding documentation directly in source code that can be extracted into formatted HTML documentation. Option D 'Cdoc' is not a real documentation system.

Multiple choice technology programming languages
  1. Microsoft

  2. HP

  3. Intel

  4. Borland

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

When C# was submitted as an ECMA standard in 2000, it was co-sponsored by Microsoft (the creator), HP, and Intel. These companies jointly submitted the specifications to ECMA International for standardization. Borland was not a co-sponsor of the initial C# specification.

Multiple choice technology performance
  1. C

  2. Perl

  3. Shell Script

  4. C++

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

MRTG (Multi Router Traffic Grapher) was written by Tobias Oetiker using the Perl programming language. Perl was chosen for its excellent text processing capabilities and cross-platform support. This choice made MRTG portable across different UNIX variants and other operating systems. The Perl source code can be run on any system with a Perl interpreter.

Multiple choice technology programming languages
  1. Binary Language

  2. Machine Language

  3. Primary Language

  4. Assembly Language

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

First-generation programming languages are machine languages, which consist of binary code (0s and 1s) that can be directly executed by the CPU. Binary Language refers to the binary format itself rather than the language category. Assembly Language is second-generation, and Primary Language is not a standard classification.

Multiple choice technology programming languages
  1. Assembly

  2. PASCAL

  3. COBOL

  4. BASIC

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

BASIC is traditionally implemented with an interpreter, allowing for interactive programming and immediate execution of commands. Assembly language uses assemblers (not interpreters), while Pascal and COBOL are primarily compiled languages. The interpreted nature of BASIC made it popular for educational purposes and rapid prototyping.

Multiple choice technology programming languages
  1. Business

  2. Scientific

  3. Simulation

  4. All of the above

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

COBOL (Common Business-Oriented Language) was specifically designed for business applications, particularly for data processing tasks in finance, administration, and government sectors. It excels at handling large volumes of data with fixed record formats. It was not designed for scientific computing or simulation purposes.

Multiple choice technology mainframe
  1. COmmon Business Oriented Language

  2. Common OBservation Official Language

  3. COmputer Basic Operating Language

  4. None of the above

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

COBOL stands for COmmon Business Oriented Language. It was designed in 1959 by CODASYL for business data processing, emphasizing readability and ease of use in business applications, making the other options incorrect.