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. A free implementation of PostScript

  2. A printing management tool

  3. A program for converting files to PostScript

  4. A free interpreter of PostScript

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

GhostScript is a free, open-source interpreter for the PostScript page description language. It reads and processes PostScript files, converting them to various formats or rendering them for printers and displays. It's not a full implementation or management tool, but an interpreter that processes PostScript commands.

Multiple choice technology web technology
  1. Common Language Runtime

  2. Communication Language Runtime

  3. Common Language Realtime

  4. Common Lease Runtime

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

CLR stands for Common Language Runtime. It is the virtual machine component of Microsoft's .NET framework that manages the execution of .NET programs and provides services like memory management and security.

Multiple choice technology programming languages
  1. An interpreter language

  2. A compiler language

  3. Partial compiler and interpreter language

  4. An Indian language

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

Perl is a hybrid language; it compiles the source code into an internal bytecode representation before executing it immediately via its built-in interpreter.

Multiple choice technology programming languages
  1. Powerful Encryption and Report Language

  2. Practical Extraction and Report Language

  3. Practical Emotional and Rational Language

  4. Powerful Execution and Riding Language

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

PERL is officially an acronym for Practical Extraction and Report Language, coined by Larry Wall to reflect Perl's original purpose in text processing and report generation. The backronym 'Pathologically Eclectic Rubbish Lister' is a humorous later addition.

Multiple choice technology programming languages
  1. Brian Goetz

  2. Heinz Kabutz

  3. Cay Horstmann

  4. All of the above

  5. None of the above

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

Prominent Java experts, including Brian Goetz, Heinz Kabutz, and Cay Horstmann, advocate for writing clean, straightforward code because modern JIT compilers optimize standard OO patterns much better than complex, hand-optimized code.

Multiple choice technology mainframe
  1. DYNM

  2. NDYNAM

  3. DYNA

  4. DYNAM

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

The DYNAM compiler option enables dynamic linking in IBM COBOL, allowing subprograms to be loaded and called at runtime rather than statically bound. Options DYNM, NDYNAM, and DYNA are invalid compiler options. Dynamic linking is useful when subprograms may change or when memory management requires flexible loading strategies.

Multiple choice technology operating systems
  1. Hyper Text Markup Languauge

  2. Hyper Tension Maker Language

  3. Hyper Text Makeup Language

  4. Hyper Test Markup Language

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

HTML stands for Hyper Text Markup Language. The question asks about basic computer terminology, and option A correctly identifies what HTML stands for. The other options (Hyper Tension Maker, Hyper Text Makeup, Hyper Test) are incorrect and seem to be distractors designed to test knowledge of the correct acronym.

Multiple choice technology programming languages
  1. Java Virtual Machine

  2. Java Programming Language

  3. Java Application Programming Interface

  4. 1, 2 & 3

  5. 1 & 3

  6. 2 & 3

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

The Java Platform consists of the Java Virtual Machine (JVM) and the Java Application Programming Interface (API). The Java Programming Language is separate from the platform itself - it's what you write code in, but the platform is what runs it. Therefore, option E (1 & 3) is correct.

Multiple choice technology platforms and products
  1. .NET Framework 2.0 CLR was introduced with Visual Studio 2005

  2. .NET Framework 3.0 uses the .NET Framework 2.0 CLR

  3. .NET Framework 3.5 uses the .NET Framework 2.0 CLR

  4. .NET Framework 3.5 SP1 first time introduced the .NET Framework 3.0 CLR

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

The question asks for the INCORRECT statement. Option D is wrong because .NET Framework 3.5 SP1 did NOT introduce the 3.0 CLR - all versions through 3.5 SP1 used the 2.0 CLR. The 3.0 framework added WPF, WCF, and Workflow but still ran on CLR 2.0. Options A, B, and C correctly state the CLR version lineage.

Multiple choice technology web technology
  1. Object oriented programming

  2. Subject oriented programming

  3. Video game programming

  4. Esoteric programming

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

Whitespace is an esoteric programming language created in 2002 that uses only spaces, tabs, and linefeeds as syntax. It is designed to be unreadable to humans and challenging for compilers, fitting the definition of esoteric programming (languages designed as experiments or jokes rather than practical use). Options A, B, C are incorrect categorizations.