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 general knowledge
  1. BASIC

  2. COBOL

  3. Java

  4. Pascal

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

The question is poorly framed - there's no single 'computer language of the Internet.' However, Java became historically significant for web applications due to platform independence and applets. BASIC and COBOL are older languages, Pascal is educational. The question likely expects 'Java' based on its web prominence.

Multiple choice general knowledge science & technology
  1. C

  2. CPP

  3. C with classes

  4. C+

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

C++ was originally named 'C with Classes' by its creator Bjarne Stroustrup when he first developed the language at Bell Labs starting in 1979. The name was changed to C++ in 1983, with the '++' being from the C increment operator. 'C' and 'C+' were different languages/proposals, not earlier names of C++.

Multiple choice general knowledge science & technology
  1. English

  2. Binary

  3. Trinary

  4. java

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

Computers work on binary language at the hardware level. Binary uses only two digits - 0 and 1 - which correspond to electrical states (off/on). All data and instructions are ultimately represented in binary, which the computer's processor can directly execute. Computers do not natively work on English, Trinary (base-3), or Java (which is a high-level programming language).

Multiple choice general knowledge
  1. SmallTalk

  2. Simula

  3. Java

  4. C++

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

Simula, developed in the 1960s (Simula 67), is widely considered the first object-oriented programming language. It introduced objects, classes, inheritance, and subclasses. Smalltalk (1972) popularized OOP principles but came later. Java and C++ were developed in the 1990s, well after Simula established the OOP paradigm.

Multiple choice general knowledge science & technology
  1. Guido Von Rossum

  2. Dennis Ritchie

  3. Cjarne Stroustrup

  4. Larry Wall

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

Larry Wall, creator of Perl, made this famous quote about writing assembly-like code in any language, making option D correct. Guido Van Rossum (A) created Python, Dennis Ritchie (B) created C, and Bjarne Stroustrup (C) created C++ (note the typo in his name).

Multiple choice general knowledge science & technology
  1. Machine Language

  2. High Language

  3. Assembly Language

  4. None

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

First generation computers (1940s-1950s) used machine language directly - the lowest-level binary code that computers execute. Assembly and high-level languages were developed later in second and third generations to make programming more human-readable.

Multiple choice general knowledge
  1. C

  2. Perl

  3. Fortran

  4. Linux

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

Linux is an operating system kernel and operating system family, NOT a computer programming language. C, Perl, and Fortran are all well-established programming languages used for various purposes - C for systems programming, Perl for text processing and scripting, and Fortran for scientific computing.

Multiple choice general knowledge science & technology
  1. jPDL

  2. BPEL

  3. pageflow

  4. BPMN

  5. All of the above

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

jBPM has evolved to support multiple process definition languages: jPDL (original), BPMN (current standard), BPEL for web services orchestration, and pageflow for web navigation flows. This versatility makes it widely applicable.

Multiple choice general knowledge science & technology
  1. PASCAL

  2. C

  3. C++

  4. C#

  5. LISP

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

The Linux kernel is primarily written in the C programming language, chosen for its efficiency, low-level access, and portability across hardware architectures. While some components may use assembly language for architecture-specific optimizations, C remains the core language. Linus Torvalds specifically selected C for its balance between high-level structure and low-level control. Option B correctly identifies C as the kernel's primary language.

Multiple choice general knowledge science & technology
  1. written in java code

  2. zero code tool

  3. written in perl language

  4. All of the above

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

Intalio is a Business Process Management system built using Java code for its core functionality. It markets itself as a 'zero code tool' because business users can create processes through visual modeling without writing code. This dual nature - Java-based foundation but code-free user experience - makes both A and B correct statements. The claimed answer (A, B) correctly identifies these complementary characteristics.

Multiple choice general knowledge science & technology
  1. FORTRAN, LISP, PASCAL, MODULA-2, ADA

  2. JAVA, JAVASCRIPT

  3. VISUAL BASIC, VISUAL C, VISUAL JAVA

  4. NONE OF THESE

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

Visual Basic, Visual C, and Visual Java are Microsoft Windows-specific development products. FORTRAN, LISP, Pascal, Modula-2, and Ada are all available on Linux through GCC and other compilers. Java and JavaScript are fully supported on Linux. The Visual Studio products are Windows-only.

Multiple choice general knowledge science & technology
  1. File Translation

  2. Format Translation

  3. Formula Translation

  4. Floppy Translation

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

FORTRAN is a programming language developed by IBM in the 1950s. The name comes from 'Formula Translation' because it was designed for scientific and engineering calculations involving mathematical formulas. 'File Translation' and 'Format Translation' are incorrect expansions.