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

Multiple choice technology embedded technologies
  1. Internationalization

  2. Core java libraries

  3. User interface functionalities

  4. Input/output(java.io)

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

CLDC (Connected Limited Device Configuration) defines the core Java runtime environment for resource-constrained devices but does not address user interface functionalities, which are instead defined by profiles like MIDP.

Multiple choice technology security
  1. architecture neutral and portable

  2. interpreted, threaded, and static

  3. robust and secure

  4. simple, object oriented, and familiar

Reveal answer Fill a bubble to check yourself
A,C,D Correct answer
Explanation

Java was designed to be architecture-neutral (write once, run anywhere), simple and object-oriented for easier adoption, and robust/secure for reliable applications. These were among the primary design goals stated by Java's creators to improve upon C++.

Multiple choice technology
  1. PASCAL

  2. C++

  3. JAVA

  4. APPLE

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

PASCAL, C++, and JAVA are all well-known programming languages. APPLE is a company name (and a brand of computers/phones), not a programming language. While Apple has created programming languages (Swift), APPLE itself is not a language name.

Multiple choice technology programming languages
  1. same as Java

  2. kind of like Java

  3. different than Java

  4. written part of Java

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

JavaScript is a completely different language from Java with different syntax, purpose, and implementation - they share only marketing names, not technical heritage. Options A, B, and D incorrectly suggest a relationship with Java.

Multiple choice technology programming languages
  1. subjective

  2. objective

  3. evil

  4. object based

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

JavaScript is an object-based language where everything revolves around objects, though it uses prototype-based inheritance rather than class-based inheritance. Options A, B, and C are not valid programming paradigm descriptions for JavaScript.

Multiple choice technology programming languages
  1. same as Java

  2. kind of like Java

  3. different than Java

  4. written part of Java

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

JavaScript is a completely different language from Java, despite the similar name. JavaScript was originally named Mocha, then LiveScript, before being renamed as a marketing tactic to ride Java's popularity. Java is a statically-typed, compiled language while JavaScript is dynamically-typed and interpreted.

Multiple choice technology programming languages
  1. subjective

  2. objective

  3. evil

  4. object based

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

JavaScript is an object-based language, meaning it uses objects as its fundamental building blocks but doesn't have classical inheritance. Unlike purely objective languages like C++, it uses prototype-based inheritance. It's not subjective or evil in any technical sense.

Multiple choice technology programming languages
  1. C#

  2. Java

  3. Objective-C

  4. C++

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

Java eliminated C-style direct pointer manipulation and pointer arithmetic to improve memory safety and security, relying instead on managed object references and automatic garbage collection.

Multiple choice technology programming languages
  1. You couldn't type APL code using the characters on an ordinary typewriter keyboard

  2. As a Mac OS-only language you couldn't program in APL without using a GUI editor

  3. APL had no concept of strings; text had to be processed and output one character at a time

  4. As the world's only Albanian Programming Language all APL's keywords were based on Albanian

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

APL used a special character set with symbols that couldn't be typed on standard keyboards, requiring specialized input equipment. This made it impractical as keyboards standardized. Option B is wrong (APL predates Mac OS), C is wrong (APL handled strings), and D is a joke.

Multiple choice technology programming languages
  1. Functions can take other functions as arguments and return them as results

  2. Algorithms are expressed in natural mathematical terms rather than as procedural steps

  3. Every function must modify some kind of state - either within the machine or in the outside world

  4. Recursion is encouraged

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

Functional programming emphasizes pure functions with no side effects - they don't modify state (option C is false, thus 'NOT a characteristic'). Options A (higher-order functions), B (mathematical style), and D (recursion) are all true characteristics.

Multiple choice technology programming languages
  1. Subversion

  2. Apache Ant

  3. NetBeans

  4. Spring

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

NetBeans is a comprehensive IDE for Java development, similar to how Visual Studio serves C# developers. It provides code editing, debugging, and project management features. Subversion is version control, Apache Ant is a build tool, and Spring is a framework - none are full IDEs.