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
-
Programming Language
-
Debugging Tool
-
Framework
-
None of above
C
Correct answer
Explanation
Symfony is a popular, open-source PHP web application framework containing reusable PHP libraries and components. It is not a standalone programming language (it uses PHP) or a dedicated debugging tool, making framework the correct designation.
-
Yet Another Marketing Language
-
YAML Ain't Markup Language
-
YAML HyperProcessor Text
-
None of above
B
Correct answer
Explanation
YAML is a recursive acronym that stands for 'YAML Ain't Markup Language'. It was originally meaning 'Yet Another Markup Language' but was changed to emphasize that it's data-oriented, not a markup language like HTML or XML. Option A is close but 'Marketing' is incorrect.
-
C++
-
Java
-
PHP
-
none of above
C
Correct answer
Explanation
Symfony is a web application framework written in PHP. It was created by Fabien Potencier and is one of the most popular PHP frameworks for building web applications, used by many large-scale projects.
-
mark up
-
object based
-
content based
-
general purpose
D
Correct answer
Explanation
PHP is a general-purpose scripting language designed for web development. While originally created for dynamic web pages, it has evolved into a versatile language used for command-line scripting, GUI applications, and various other purposes beyond web development.
-
Server.Transfer
-
Response.Redirect
-
All the above
-
None of the above
A
Correct answer
Explanation
Server.Transfer is faster than Response.Redirect because it executes entirely on the server without a round-trip to the client browser. Response.Redirect sends a 302 response to the browser, which then makes a new request to the target URL, incurring additional network latency. Server.Transfer simply transfers execution to another page on the same server.
-
a computer Language
-
is a technology
-
is optimizer which makes website load faster
-
is a server side language
B
Correct answer
Explanation
AJAX is a web development technique for creating interactive web applications. It uses existing technologies like JavaScript and XMLHTTPRequest to asynchronously exchange data with a server, updating parts of a page without full reloads.
-
public class MyButton extends Button
-
public class MyButton becomes Button
-
public class MyButton inherits Button
-
public class MyButton implements Button
A
Correct answer
Explanation
ActionScript uses the 'extends' keyword for class inheritance, following Java's syntax. The correct declaration is 'public class MyButton extends Button'. Option B uses 'becomes' which is not valid. Option C uses 'inherits' which is not ActionScript syntax. Option D uses 'implements' which is for interfaces, not class inheritance.
-
private var arrC :ArrayCollection = new ArrayCollection([{label:"abc"},{label:"def"}]);
-
private var arrC :ArrayCollection =([{label:"abc"},{label:"def"}]);
-
private var arrC :ArrayCollection = new ArrayCollection([{"abc"},{"def"}]);
-
private var arrC :ArrayCollection = new ArrayCollection({label:"abc"},{label:"def"});
A
Correct answer
Explanation
ArrayCollection must be instantiated with the 'new' keyword and constructor. Option A shows correct syntax: 'new ArrayCollection([{label:"abc"},{label:"def"}])'. Option B is missing 'new' and constructor call. Option C has malformed objects without proper key-value structure. Option D passes two separate objects instead of an array.
D
Correct answer
Explanation
C is considered a middle-level language because it combines high-level language features (structured programming, abstractions) with low-level capabilities (direct memory manipulation, bit-level operations, pointer arithmetic). Java is purely high-level with extensive abstraction. Oracle is a database management system, not a language. .NET is a framework, not a language.
-
Both are Interfaces
-
Both are Classes
-
OAApplicationModule is a class and OAApplicationModuleImpl is an interface
-
OAApplicationModule is an interface and OAApplicationModuleImpl is a class
D
Correct answer
Explanation
In Oracle's naming convention, classes ending with 'Impl' are implementation classes, while names without 'Impl' are typically interfaces. OAApplicationModule is the interface, and OAApplicationModuleImpl is its concrete implementation class. Option D correctly identifies this relationship.
-
C# 4.0
-
J# 4.0
-
F#
-
Jscript
-
Jquery
C
Correct answer
Explanation
F# is a functional-first programming language that supports functional programming paradigms alongside traditional object-oriented and imperative styles. It was introduced to the .NET platform in Visual Studio 2010. C# 4.0 is an evolution of C# (not a 'new' functional language), J# is deprecated, JScript is a scripting language, and jQuery is a JavaScript library, not a .NET language.
-
Framework
-
Language
-
Compiler
-
Specification
D
Correct answer
Explanation
Java EE (now Jakarta EE) is a specification that defines APIs and standards for enterprise Java development, not a framework, language, or compiler itself. Vendors like Oracle, Eclipse, and Apache implement these specifications in products like GlassFish, JBoss, and TomEE. Java itself is the programming language, while Java EE builds upon it with enterprise services.
B
Correct answer
Explanation
Java is a programming language, but Java EE (Jakarta EE) is a platform specification that extends Java for enterprise applications; it is not itself a language. The question incorrectly groups them together as 'a Language,' making the statement false. Java EE provides APIs and services, while Java provides the syntax and semantics.
-
Transparent
-
Cluster
-
Pool
-
Internal
D
Correct answer
Explanation
Transparent, Cluster, and Pool are the three main types of ABAP Dictionary tables that physically exist in the database. Internal tables are NOT ABAP Dictionary tables - they are data structures that exist only during program runtime in memory. Internal tables are used for data manipulation within ABAP programs but are not stored in the database.
-
Transparent
-
Cluster
-
Pool
-
Internal
D
Correct answer
Explanation
ABAP Dictionary supports three table types: Transparent tables (one-to-one mapping to database tables), Cluster tables (stored in compressed clusters), and Pool tables (stored in table pools). Internal tables are runtime data structures in ABAP programs, not Dictionary objects, making D the correct answer.