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
-
ASP.Net
-
JavaScript
-
PHP
-
Both (2) and (3)
-
None of the above
B
Correct answer
Explanation
It is a client side programming language.
-
PL-1
-
C++
-
Java
-
Primitive
-
Non-numeric
C
Correct answer
Explanation
This language was originally called 'Oak' which was developed by Sun Microsystems of USA in 1991.
-
Visual C++
-
Javac
-
Visual Basic
-
C#
-
Appletviewer
A
Correct answer
Explanation
This language is used to create tight and fast window applications and device drivers.
-
Abstract window toolkit
-
Java applet
-
Java IDL
-
Java beans
-
AlarmPresentation
C
Correct answer
Explanation
Java IDL enables objects to interact regardless of whether they are written in the java programming language or another language such as COBOL, C++ or others.
-
Parser generator
-
Data-flow engine
-
Automatic code generator
-
Preprocessor
-
Syntax-directed translation engine
D
Correct answer
Explanation
Preprocessor is a cousin of compiler.
-
code generator
-
scanner
-
semantic analyzer
-
parser
-
intermediate code generator
C
Correct answer
Explanation
Semantic analyzer produces annotated parse tree.
-
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.
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.