Computer Knowledge
Programming Languages and Compilers
2,284 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
-
Common language runtime
-
Execution support
-
.NET FCL
-
Web form
-
Windows form
B
Correct answer
Explanation
It contains most of the capabilities normally associated with the language runtime.
-
STL
-
Programming language
-
API
-
JDK
-
Microsoft Windows
C
Correct answer
Explanation
An application programming interface (API) specifies how some software components should interact with each other.
-
a Programming Language and a Development Environment
-
an Application Environment and a Deployment Environment
-
Both (1) and (2)
-
None of these
C
Correct answer
Explanation
Java technology is a comprehensive platform that includes a programming language, development environment (tools like JDK), application environment (JRE), and deployment environment. Therefore option C (both 1 and 2) is correct.
-
polymorphism
-
inheritance
-
code reusability
-
JNI (Java Native Interface)
D
Correct answer
Explanation
JNI (Java Native Interface) allows Java code to call and be called by native applications and libraries written in other languages like C, C++, or assembly. It provides a bridge between Java and native code execution through the operating system.
-
Cryptographic UnexpectedOperationException
-
CryptographicAttributeObjectCollection
-
CryptoConfig
-
RandomNumberGenerator
-
CryptographicException
E
Correct answer
Explanation
In this .NET cryptographic class, the exception that is thrown when an error occurs during a cryptographic operation.
-
#endregion
-
#region
-
#line
-
#undef
-
#define
B
Correct answer
Explanation
This statement is used in C# to specify a block of code that can be expanded or collapse when using outlining feature of the Visual Studio Code Editor.
-
SystemException
-
ArgumentNullException
-
IndexOutOfRangeException
-
InteropException
-
ComException
B
Correct answer
Explanation
This exception is raised in C# when a method throws an exception in case an argument is null.
-
SystemException
-
InvaildOperationException
-
ArgumentException
-
SEHException
-
ComException
B
Correct answer
Explanation
This Exception class is used when the call to the method is invalid for the objects current state.
-
SystemException
-
InvaildOperationException
-
ArgumentException
-
SEHException
-
ComException
B
Correct answer
Explanation
This Exception class is used when the call to the method is invalid for the objects current state.
B
Correct answer
Explanation
Lisp, Java, and Perl are all well-known programming languages. See is not a programming language - it is not recognized in computer science or software development.
-
VB Script
-
Java Script
-
CSS
-
Java
-
None of these
-
high-Level
-
machine
-
symbolic
-
english
A
Correct answer
Explanation
A source program is code written in a high-level programming language like Python, Java, C++, or COBOL that humans can read and write. Source programs must be translated into machine code through compilers or interpreters before computers can execute them. Machine code is the output of translation, symbolic language refers to assembly, and English is not a programming language.
C
Correct answer
Explanation
Ada was specifically designed by the U.S. Department of Defense for real-time and process control systems, particularly in mission-critical applications. It supports concurrent programming, real-time operations, and high reliability requirements. While PL/1 is a general-purpose language and Pascal is educational, Ada's design philosophy focuses on safety and reliability in embedded systems.
-
Machine language
-
Assembly language
-
Programming language
-
Feeding language
A
Correct answer
Explanation
Machine language (or machine code) is the native binary language that computers directly execute - it consists of 1s and 0s that the CPU interprets as instructions. All other programming languages must ultimately be translated or compiled into machine language before the computer can understand and execute them. Assembly language uses mnemonics to represent machine instructions, while high-level programming languages are more human-readable but require compilers or interpreters.
D
Correct answer
Explanation
LISP (LISt Processing) was developed by John McCarthy in 1958 specifically for artificial intelligence research and remains influential in AI to this day. LISP's unique features - symbolic computation, recursive functions, and list-based data structures - made it ideal for early AI applications like natural language processing and theorem proving. Many modern AI concepts have roots in LISP, and it heavily influenced later AI languages like Prolog and Python.