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 programming languages
  1. Pascal

  2. Java

  3. Forth

  4. Python

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Forth, created by Chuck Moore in 1970, generates threaded code as its primary execution model. Threaded code is a technique where code consists of addresses of subroutines, making Forth distinct among languages for this characteristic.

Multiple choice technology programming languages
  1. Because Ruby forces object orientation and does not permit procedural or functional style code

  2. Because Ruby makes no distinction between objects and primitive types

  3. Because Ruby's syntax is similar to that of Perl

  4. Because Ruby programmers are full of themselves

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Ruby is considered 'purely' object-oriented because it has no primitive types - everything, including integers, booleans, and nil, are objects. Java and C++ distinguish between objects and primitives (int, char, bool, etc.), making them less 'pure' in OOP terms.

Multiple choice technology programming languages
  1. He was co-creator of the Unix operating system

  2. He was co-creator of AWK a programming language for text processing

  3. He was co-creator of the C programming language

  4. He was co-inventor of the concept of object-oriented programming

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Brian Kernighan is best known as the co-creator of AWK (with Aho and Weinberger), a domain-specific programming language for text processing. He also co-authored 'The C Programming Language' with Dennis Ritchie but did not create C itself or Unix.

Multiple choice technology programming languages
  1. PostScript

  2. BASIC

  3. C#

  4. SQL

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

SQL (Structured Query Language) in its standard form is not Turing-complete - it's a query language designed for data manipulation and retrieval. While modern SQL dialects have added procedural extensions, core SQL lacks the control structures and recursion needed for Turing completeness.

Multiple choice technology programming languages
  1. Another BPEL Process

  2. A java client

  3. A non-java client

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

BPEL (Business Process Execution Language) processes expose web service interfaces, making them invocable by any client that can make SOAP or REST calls. This includes other BPEL processes, Java clients, and non-Java clients (.NET, Python, etc.) through standard web service protocols.

Multiple choice technology web technology
  1. By using multiple <property> elements inside the <class> element.

  2. By using multiple <field> elements inside the <class> element.

  3. By using multiple <coulmn> elements inside the <class> element.

  4. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Hibernate mapping files, individual properties of a persistent class are mapped to table columns using multiple elements nested inside the element. Each element defines the column mapping, type, and other attributes for a single class property.