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
-
W. A. Wulf
-
Martin Richards
-
D. B. Russell
-
A. N. Habermann
B
Correct answer
Explanation
BCPL (Basic Combined Programming Language) was designed by Martin Richards of the University of Cambridge in 1967. It was influential in the development of the B and C programming languages.
-
Iterpreted Language
-
Compiled Language
-
Byte Code Language
-
None of these
D
Correct answer
Explanation
Java is neither purely interpreted nor purely compiled - it's a hybrid language. Java source code is compiled to bytecode, which is then either interpreted by the JVM or JIT-compiled to native code at runtime. 'Byte Code Language' is not a standard programming language classification.
-
a programming language
-
A technique
-
related to window XP
-
None of the above
B
Correct answer
Explanation
Extreme Programming (XP) is a software development technique/framework, not a programming language or related to Windows XP. It emphasizes pair programming, testing, and frequent releases.
-
an object-oriented scripting language.
-
a compiled scripting language.
-
a scripting language precompiled in the browser.
-
a low-level programming language
-
Less than 5%
-
Less Than 25%
-
40%
-
More than 50%
-
Subject Oriented Language
-
Object Oriented Language
-
testing tool
-
Server
B
Correct answer
Explanation
Java is fundamentally an object-oriented programming language. It supports core OOP concepts including classes, objects, inheritance, encapsulation, polymorphism, and abstraction. Java is not a 'subject-oriented' language, a testing tool, or a server - it's a general-purpose programming language with OOP as its foundation.
B
Correct answer
Explanation
ABAP (Advanced Business Application Programming) is SAP's proprietary programming language, designed specifically for developing business applications within the SAP ecosystem. R/3 is SAP's ERP product name, NetWeaver is their technology platform, and Java is a general-purpose language not owned by SAP.
-
Java programming is derived from C++.
-
The Java Virtual Machine1(JVM) interprets the program for the native operating system.
-
The compiler is identical to a C++ compiler.
-
The APIs do all the work.
B
Correct answer
Explanation
Java programs achieve platform independence through the Java Virtual Machine (JVM). Java source code is compiled to bytecode, which the JVM interprets or compiles to native code for the specific platform. The JVM abstracts away platform-specific details, allowing the same bytecode to run anywhere. Option B is correct.
-
System
-
SecurityManager
-
Math
-
Runtime
A
Correct answer
Explanation
The System class in java.lang provides the standard input, output, and error streams (System.in, System.out, System.err) used for basic console I/O. It also contains utility methods. SecurityManager is for security policies, Math is for mathematical functions, and Runtime is for interacting with the runtime environment. Option A is correct.
-
IGYWCL
-
IEWL
-
IEBCOMPILE
-
IGYCRCTL
D
Correct answer
Explanation
IGYCRCTL is the actual compiler program for IBM Enterprise COBOL. IGYWCL is a cataloged procedure (JCL) that invokes the compiler and the link-editor, but the specific program that performs the compilation is IGYCRCTL.
-
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 PostScript and PDF. It can render, convert, and display PostScript/PDF documents. Option C describes a converter (too narrow), A says implementation (could mean compiler), and B describes a management tool - D is most accurate as 'interpreter'.
A
Correct answer
Explanation
In Model 204, TTBL (terminal table), GTBL (global table), and STBL (screen table) are valid user language working areas. FSBC is NOT a valid working area in the Model 204 system. Option A correctly identifies FSBC as invalid. Options B, C, and D are incorrect because they list valid working areas (TTBL, GTBL, STBL).
-
Common Language Runtime
-
Common Language Routine
-
Class Library Routine
-
None
A
Correct answer
Explanation
CLR stands for Common Language Runtime, which is the execution engine of the .NET Framework. It manages memory execution, thread execution, code safety verification, compilation, and other system services, making it a fundamental component of .NET applications.
-
.NET Framework 2.0 CLR was was introduced with VS 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 introduce the .NET Framework 3.0 CLR
D
Correct answer
Explanation
.NET Framework versions 2.0, 3.0, and 3.5 all used the same CLR 2.0 runtime. There is no such thing as a '.NET Framework 3.0 CLR' - the runtime versions are CLR 1.x, 2.0, 4.0, and .NET 5+. Statement D falsely claims a 3.0 CLR exists.