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
D
Correct answer
Explanation
Simula, introduced in 1967, is considered the first object-oriented programming language. It introduced key OOP concepts like classes, objects, inheritance, and subclasses. C++ (1979) and Java (1995) came much later. C is not object-oriented.
A
Correct answer
Explanation
Java was named after Java coffee, a type of coffee from Indonesia. The Java logo features a coffee cup. This is a well-known fact in programming history - the name was chosen during a brainstorming session at a coffee shop.
B
Correct answer
Explanation
Dennis Ritchie invented the C programming language at Bell Labs in 1972. C is a foundational language that influenced many later languages including C++, Java, and Python. C++ was developed later by Bjarne Stroustrup.
-
A free implementation of PostScript
-
A printing management tool
-
A program for converting files to PostScript
-
A free interpreter of PostScript
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.
-
Common Language Runtime
-
Communication Language Runtime
-
Common Language Realtime
-
Common Lease Runtime
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.
-
Java Tcl
-
JRuby
-
Sleep
-
JavaOne
D
Correct answer
Explanation
JavaOne is the name of a major technology conference, not a programming or scripting language. JRuby and Sleep are scripting languages, and Tcl is a well-known scripting language.
-
An interpreter language
-
A compiler language
-
Partial compiler and interpreter language
-
An Indian language
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.
-
Powerful Encryption and Report Language
-
Practical Extraction and Report Language
-
Practical Emotional and Rational Language
-
Powerful Execution and Riding Language
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.
-
Brian Goetz
-
Heinz Kabutz
-
Cay Horstmann
-
All of the above
-
None of the above
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.
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.
-
Hyper Text Markup Languauge
-
Hyper Tension Maker Language
-
Hyper Text Makeup Language
-
Hyper Test Markup Language
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.
-
Java Virtual Machine
-
Java Programming Language
-
Java Application Programming Interface
-
1, 2 & 3
-
1 & 3
-
2 & 3
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.
-
IGYWCL
-
IEWL
-
IEBCOMPILE
-
IGYCRCTL
D
Correct answer
Explanation
IGYCRCTL is the IBM COBOL compiler program. IGYWCL is not a valid program name. IEWL is the link editor, not a compiler. IEBCOMPILE is not an IBM utility program. The 'IGY' prefix identifies IBM COBOL products.
-
.NET Framework 2.0 CLR was introduced with Visual Studio 2005
-
.NET Framework 3.0 uses the .NET Framework 2.0 CLR
-
.NET Framework 3.5 uses the .NET Framework 2.0 CLR
-
.NET Framework 3.5 SP1 first time introduced the .NET Framework 3.0 CLR
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.
-
Object oriented programming
-
Subject oriented programming
-
Video game programming
-
Esoteric programming
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.