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
-
First Generation Computers
-
Second Generation Computers
-
hird Generation Computers
-
Fourth Generation Computers
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'.
-
Machine Language was developed prior to Assembly Language
-
Assembly Language Was developed prior to Machine Language
-
Both Assembly and machine languages were developed together
-
First generation computers used machine language and second generation computers used assembly language
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.
-
C
-
IBM I
-
COBOL
-
IBM FORTRAN
D
Correct answer
Explanation
FORTRAN (FORmula TRANslation) was developed by IBM in 1957 and became the first widely used high-level programming language, designed primarily for scientific and engineering calculations.
D
Correct answer
Explanation
Gmail was renowned for pioneering the AJAX (Asynchronous JavaScript and XML) programming technique, which allowed for smooth, asynchronous page updates without full page reloads. This technique revolutionized web applications.
-
Common Business Objective Language
-
Common Business Oriented Language
-
Common Business Oriental Language
-
None Of the above
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.
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.
-
Short Code
-
PASCAL
-
C++
-
JAVA
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.
-
Translator
-
Locator
-
Assembler
-
Compiler
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.
-
Procedural
-
Non-Procedural
-
Both of the Above
-
Non of the Above
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.
C
Correct answer
Explanation
Go (Golang) was developed by Google in 2009, designed by Robert Griesemer, Rob Pike, and Ken Thompson. It was created to address criticism of other languages while keeping their useful characteristics. The language is based on C syntax.
-
Developing computer applications using a language that a computer understands
-
Asking a robot to bring water from the water-cooler
-
Teaching your servant how to cook fried rice
-
All the above
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.
-
High level Language
-
Machine Language
-
Micro Processor Language
-
None of the Above
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.
-
High level Language
-
Machine Language
-
Micro Processor Language
-
None of the Above
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.
-
Common Learning Reader
-
Combined Language Runtime
-
Common Language Runtime
-
Common Learning Runtime
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.
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.