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

Multiple choice technology web technology
  1. Programming Language

  2. Debugging Tool

  3. Framework

  4. None of above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Yet Another Marketing Language

  2. YAML Ain't Markup Language

  3. YAML HyperProcessor Text

  4. None of above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. C++

  2. Java

  3. PHP

  4. none of above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. mark up

  2. object based

  3. content based

  4. general purpose

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Server.Transfer

  2. Response.Redirect

  3. All the above

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. a computer Language

  2. is a technology

  3. is optimizer which makes website load faster

  4. is a server side language

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. public class MyButton extends Button

  2. public class MyButton becomes Button

  3. public class MyButton inherits Button

  4. public class MyButton implements Button

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. private var arrC :ArrayCollection = new ArrayCollection([{label:"abc"},{label:"def"}]);

  2. private var arrC :ArrayCollection =([{label:"abc"},{label:"def"}]);

  3. private var arrC :ArrayCollection = new ArrayCollection([{"abc"},{"def"}]);

  4. private var arrC :ArrayCollection = new ArrayCollection({label:"abc"},{label:"def"});

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. java

  2. oracle

  3. .net

  4. c

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Both are Interfaces

  2. Both are Classes

  3. OAApplicationModule is a class and OAApplicationModuleImpl is an interface

  4. OAApplicationModule is an interface and OAApplicationModuleImpl is a class

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology platforms and products
  1. C# 4.0

  2. J# 4.0

  3. F#

  4. Jscript

  5. Jquery

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Framework

  2. Language

  3. Compiler

  4. Specification

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Transparent

  2. Cluster

  3. Pool

  4. Internal

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology packaged enterprise solutions
  1. Transparent

  2. Cluster

  3. Pool

  4. Internal

Reveal answer Fill a bubble to check yourself
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.