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
-
low level language
-
machine language
-
object oriented language
-
assembly language
C
Correct answer
Explanation
C++ is a multi-paradigm programming language that supports object-oriented programming. While it also supports procedural and generic programming, its key feature is object-oriented capabilities like classes, inheritance, and polymorphism. Low-level languages (like assembly) and machine languages are closer to hardware, while C++ provides abstraction with hardware access when needed.
-
Basic
-
Tally
-
Pascal
-
Fortran
B
Correct answer
Explanation
Tally is fully computerised financial business accounting software. It was developed by Tally solutions private limited India in 1988.
-
Semantic analysis
-
Source code analysis
-
Syntax analysis
-
Control flow analysis
-
Data flow analysis
C
Correct answer
Explanation
This analysis takes the list of tokens produced by the lexical analysis and arranges the tokens in a tree structure.
-
Program execution activity
-
Program generator domain
-
Program generation activity
-
Pseudo-operations
-
Caching
C
Correct answer
Explanation
This technique is used to represent the automatic generation of a program and source language is a specification language of an application domain.
-
Linking
-
Allocation
-
Relocation information
-
Pseudo operation
-
Caching
A
Correct answer
Explanation
The process of merging many object modules to form a single machine language program is known as linking.
-
Semantic analysis
-
Permission analysis
-
Control flow analysis
-
Data flow analysis
-
Lexical analysis
E
Correct answer
Explanation
The task of scanning source statement, recognising and classifing the various tokens is known as lexical analysis. In this analysis, the text is read and divided into tokens and each of which corresponds to a symbol in the programming language.
-
Program translator
-
Program generator domain
-
Client side diagnostic tool
-
Process monitor
-
Lexer generator
E
Correct answer
Explanation
This tool is used to transform human readable specification of tokens and white spaces into the efficient program.
-
Program translator
-
Program generator domain
-
LR parser
-
Program interpreter
-
System monitor
C
Correct answer
Explanation
This tool can be constructed to recognise virtually all programming language constructs for which context free grammers can be written.
-
Program translator
-
Program generator domain
-
Lexical analyser
-
Protocol analyser
-
Client side diagnostic tools
C
Correct answer
Explanation
This tool takes input the string of individual letters and divide the string into tokens.
-
Compiler
-
Assembler
-
Interpreter
-
Debugger
-
Object program
D
Correct answer
Explanation
This language translator in microprocessor is basically a program that enables the programmers to find and remove errors from a program.
-
Application software
-
Operating system
-
Programming software
-
System software
-
Windows
C
Correct answer
Explanation
Programming software usually provides tools to assist a programmer in writing computer programs and software using different programming languages.
-
Ruby on Rails
-
PHP
-
Java
-
C++
-
C
E
Correct answer
Explanation
It is a purely procedural language.
-
both are procedural languages
-
both are based on I-calculus
-
both are declarative
-
both use Horn-clauses
-
None of these
C
Correct answer
Explanation
Correct answer; both of them are declarative.
-
assembly language programming
-
programming of microcomputer
-
control unit programming
-
macro-programming of micro-computers
C
Correct answer
Explanation
Microprogramming involves programming the control unit of a CPU using microinstructions. Each machine instruction is broken down into micro-operations (microinstructions) stored in control memory. The control unit executes these microinstructions to perform the actual operations. It is not assembly language programming (which uses mnemonics), nor programming of microcomputers in general.
-
COBOL
-
C
-
PROLOG
-
FORTRAN
-
None of these
C
Correct answer
Explanation
It is a general purpose programming language associated with artificial intelligence and computational linguistics.