Computer Knowledge
Programming Languages and Compilers
2,284 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
-
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.
-
tan(x/y)
-
sin(x/y)
-
atan2(x,y)
-
cos(x/y)
-
pow(x,y)
C
Correct answer
Explanation
This mathematical function is used to return arc tangent of the given expression x/y.
-
tan(x)
-
sin(x)
-
cos(x)
-
pow(x,y)
-
atan(x)
E
Correct answer
Explanation
This mathematical function is used to return arc tangent of the given variable x.
-
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
E
Correct answer
Explanation
AI researchers have developed several specialised languages for AI research including Lisp and Prolog.
-
Operating system
-
Compiler
-
Text editor
-
Debugger
-
PDF reader
B
Correct answer
Explanation
A compiler is a system level program that translates a program written in a high level language to a machine language.
-
Filter
-
FilterIndex
-
FileName
-
None of these
B
Correct answer
Explanation
This property of Common Dialog control determines which filter value will be displayed by default.