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. First Generation Computers

  2. Second Generation Computers

  3. hird Generation Computers

  4. Fourth Generation Computers

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

Third Generation Computers (1965-1971) used integrated circuits (ICs) and were the first to use structured programming languages like C, COBOL, and FORTRAN. Second Generation used assembly language, while Fourth Generation saw the rise of high-level languages and personal computing. First Generation used machine language with vacuum tubes. The option label 'hird' is a typo for 'Third'.

Multiple choice general knowledge
  1. Machine Language was developed prior to Assembly Language

  2. Assembly Language Was developed prior to Machine Language

  3. Both Assembly and machine languages were developed together

  4. First generation computers used machine language and second generation computers used assembly language

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

Machine language (binary code) was indeed developed first and used in First Generation Computers. Assembly language (using mnemonics) came later as a more programmer-friendly alternative. First Generation computers used machine language directly, while Second Generation computers introduced assembly language. Options A and D correctly represent this historical progression.

Multiple choice general knowledge science & technology
  1. Common Business Objective Language

  2. Common Business Oriented Language

  3. Common Business Oriental Language

  4. None Of the above

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

COBOL stands for Common Business Oriented Language. It was designed for business applications. 'Oriental' is incorrect, and 'Objective' doesn't fit the language's purpose.

Multiple choice general knowledge science & technology
  1. SmallTalk

  2. C++

  3. Ruby

  4. Jade

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

SmallTalk was the first object-oriented programming language with an integrated graphical user interface featuring overlapping windows, integrated documents, and cut & paste editing. C++ and Ruby came later, and Jade doesn't match these pioneering features.

Multiple choice general knowledge science & technology
  1. Short Code

  2. PASCAL

  3. C++

  4. JAVA

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

Short Code, developed in 1949-1950, was the first high-level programming language actually implemented on an electronic computer (the UNIVAC). It required manual translation to machine code, making it more of a pseudocode system, but represented the first attempt to abstract away from raw machine instructions. Pascal (1970), C++ (1983), and Java (1995) came much later.

Multiple choice general knowledge science & technology
  1. Translator

  2. Locator

  3. Assembler

  4. Compiler

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

A compiler is a program that translates high-level programming languages (like C++, Java) into low-level machine code that the computer can execute. While assemblers and translators also handle code conversion, the compiler specifically handles high-level to low-level translation for languages with complex abstractions. A locator is unrelated to language translation.

Multiple choice general knowledge science & technology
  1. Procedural

  2. Non-Procedural

  3. Both of the Above

  4. Non of the Above

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

Fourth-generation languages (4GL) are non-procedural, meaning you specify what result you want rather than how to achieve it step-by-step. Examples include SQL and query languages where you declare the desired data without detailing the retrieval algorithm. This contrasts with procedural languages (3GL) like C or Java where you explicitly write execution steps.

Multiple choice general knowledge
  1. Developing computer applications using a language that a computer understands

  2. Asking a robot to bring water from the water-cooler

  3. Teaching your servant how to cook fried rice

  4. All the above

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

Programming can be broadly understood as giving instructions to achieve a specific outcome, whether to computers, robots, or even people. All the given examples involve giving structured instructions to perform tasks.

Multiple choice general knowledge science & technology
  1. High level Language

  2. Machine Language

  3. Micro Processor Language

  4. None of the Above

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

Java is a high-level programming language that abstracts away low-level machine details. It runs on a virtual machine (JVM) and uses automatic memory management. Machine language and microprocessor language are low-level, closer to hardware.

Multiple choice general knowledge science & technology
  1. High level Language

  2. Machine Language

  3. Micro Processor Language

  4. None of the Above

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

Java is a high-level programming language that abstracts away low-level machine details. It runs on a virtual machine (JVM) and uses automatic memory management. Machine language and microprocessor language are low-level, closer to hardware.

Multiple choice general knowledge
  1. Common Learning Reader

  2. Combined Language Runtime

  3. Common Language Runtime

  4. Common Learning Runtime

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

The Common Language Runtime (CLR) is the virtual machine component of .NET that manages code execution, memory management, exception handling, and security. It provides a runtime environment for .NET applications.

Multiple choice general knowledge
  1. C

  2. Java

  3. CPP

  4. .Net

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

This question is poorly framed as 'odd' is ambiguous without criteria. C is a procedural language while Java and C++ are object-oriented, and .NET is a framework. The answer depends on unstated classification rules.