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
D
Correct answer
Explanation
LISP (LISt Processing) was developed by John McCarthy in 1958 specifically for artificial intelligence research and remains influential in AI to this day. LISP's unique features - symbolic computation, recursive functions, and list-based data structures - made it ideal for early AI applications like natural language processing and theorem proving. Many modern AI concepts have roots in LISP, and it heavily influenced later AI languages like Prolog and Python.
-
A compiler does the same function as an interpreter.
-
Instructions in C programs are terminated by semicolon.
-
American National Standard Institute (ANSI) of C was set up in 1983.
-
C is a middle level language.
-
Both 2 and 3.
-
Machine language
-
Assembly language
-
Spoken language
-
none of these
-
programming language
-
machine language
-
spoken language
-
assembly language
C
Correct answer
Explanation
Natural language refers to languages that humans use for communication, such as English, Hindi, or Spanish. This contrasts with artificial or formal languages like programming languages (Python, Java) or machine language (binary), which are designed for specific computational purposes.
-
training
-
formula translation
-
translation
-
train
B
Correct answer
Explanation
FORTRAN is a programming language whose name comes from 'FORmula TRANslation'. It was developed in the 1950s specifically for scientific and numerical computations. The name accurately describes its purpose - translating mathematical formulas into executable code.
-
Machine language
-
English language
-
Assembly language
-
FORTRAN
D
Correct answer
Explanation
High-level languages are programming languages that are more abstract and easier for humans to read and write compared to low-level languages. FORTRAN (developed in 1957) was one of the first high-level programming languages. Machine language and Assembly language are both low-level languages that work closer to the hardware. English is a natural language, not a programming language.
-
object oriented language
-
structured language
-
procedural language
-
none of the above
A
Correct answer
Explanation
C++ is primarily an object-oriented language that supports key OOP features like classes, inheritance, and polymorphism, though it also supports procedural and structured programming paradigms.
-
first generation language
-
second generation language
-
third generation language
-
fourth generation language
D
Correct answer
Explanation
SQL (Structured Query Language) is a fourth-generation language (4GL) because it provides a high-level abstraction for working with databases. Unlike 3GLs like C or Java that require detailed procedural instructions, SQL allows users to specify what data they want using declarative statements like SELECT, letting the database engine handle the implementation details.
-
prescript
-
postscript
-
script
-
software
B
Correct answer
Explanation
PostScript is a page description language specifically designed for desktop publishing to describe how pages should appear when printed or displayed. It handles fonts, graphics, and layout precisely, making it the industry standard for professional typesetting and printing.
-
an application software
-
a system software
-
a hardware component
-
an operating system
B
Correct answer
Explanation
A language translator is best described as a system software.
-
Corel Draw
-
Pascal
-
MS Word
-
Sybase
B
Correct answer
Explanation
Pascal is a programming language designed for structured programming and education. Corel Draw is graphics software, MS Word is a word processor, and Sybase is a database management system - none of these are programming languages.
-
High-level programming languages are translated into machine language by compiler.
-
ABC was the first automatic electronic digital computer.
-
Byte represents a character.
-
Plotter is an output device.
-
None of these
-
Build a uniform symbol table
-
Build an identifier table
-
Parse the source program into basic tokens
-
All of the above
-
-
D
Correct answer
Explanation
Lexical analysis includes the process of converting the characters into tokens. It is combined with the parser, which analyses the syntax of programming languages.
-
LOGO
-
PC/M
-
SNOBOL
-
PL/1
-
None of these
B
Correct answer
Explanation
PC/M stands for programming language for micro computers. Because it gives high speed input/output operations and user friendly command language.