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
-
JAVA
-
FORTRAN
-
HTML
-
Paint
-
PASCAL
C
Correct answer
Explanation
HTML stands for Hyper Text Markup Language. It allows users to produce web pages that include text, graphics and pointers to other web pages.
-
Machine language
-
C
-
JAVA
-
LISP
-
COBOL
A
Correct answer
Explanation
A low level programming language is one that provides little or no abstraction from a computer's instruction set architecture. Generally, this refers to either machine code or assembly language.
-
JAVA
-
C#
-
SmallTalk
-
BASIC
-
Python
D
Correct answer
Explanation
BASIC is not an object oriented programming language.
-
Program Interpretation
-
Program Translation
-
Linear Search
-
Binary Search
-
Multiprogramming
B
Correct answer
Explanation
This model bridges the execution gap by translating a program written in a programming language called the source program into an equivalent program in the machine or assembly language of the computer system called the target program.
-
Lexical rules
-
Syntax rules
-
Semantic rules
-
Program rules
-
Execution rules
C
Correct answer
Explanation
This rule helps in the analysis of the source program associate meaning with valid statements of the language.
-
Imperative statement
-
Declaration statement
-
Assembler directives
-
YACC
-
Debugger
A
Correct answer
Explanation
This is an assembly language statement which indicates an action to be performed during the execution of the assembled program.
This is a language processor development tool which is a syntax directed definition for the translation of the source program into an IR or the target program.
-
Lexical Analysis
-
Syntax Analysis
-
Intermediate Code Generation
-
Code Optimisation
-
Code Generation
C
Correct answer
Explanation
This phase of the compiler transforms the parse tree into an intermediate language representation of the source program called Three-Address Code.
-
LEX
-
Compiler
-
Interpreter
-
YACC
-
Debugger
D
Correct answer
Explanation
This is a language processor development tool which is a syntax directed definition for the translation of the source program into an IR or the target program.
-
Loader
-
Linker
-
Object program
-
Compiler
-
Interpreter
B
Correct answer
Explanation
The process of replacing symbolic references or names of libraries with actual usable addresses in memory before running a program is called as relocation and is performed mainly by the linker.
-
List Progress
-
List Processor
-
List Progressive
-
List Programming
B
Correct answer
Explanation
LISP (List Processing) is a high-level programming language designed for symbolic computation and list manipulation. Its name directly reflects its core functionality - processing lists as the primary data structure.
-
Programming in Logic
-
Programming for Listing
-
Programming for Language
-
None of these
A
Correct answer
Explanation
PROLOG (PROgramming in LOGic) is a logic programming language associated with artificial intelligence and computational linguistics. Its name directly indicates that it uses logic (declarative programming) rather than procedural imperative commands.
-
Godrej laboratories
-
Bell laboratories
-
Xinhua laboratories
-
None of these
B
Correct answer
Explanation
C language was developed at Bell laboratories.
-
FORTRAN
-
ASCII
-
BCD
-
None of these
A
Correct answer
Explanation
FORTRAN (Formula Translation) is a high-level programming language developed for scientific and numerical computing. ASCII is a character encoding standard, and BCD (Binary Coded Decimal) is a numeric encoding method - neither are programming languages.
-
Machine language
-
Assembly language
-
C language
-
FORTRAN
-
Only (1) and (2)
E
Correct answer
Explanation
Yes, both are low level languages.
-
Formula transfomer
-
Formula translation
-
Formula traveller
-
Formula translander
-
None of these