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
-
Smalltalk
-
C++
-
Java
-
C
-
None of these
D
Correct answer
Explanation
This programming language does not support query language proposal for the ODMG object model.
-
Software bootstraping
-
Compiler bootstraping
-
Reloaction
-
Plugins
-
Processor status
A
Correct answer
Explanation
It can also refer to the development of successively more complex, faster programming environments.
-
Syntax analyzer
-
Intermediate code generation
-
Code generation
-
Byte code verifier
-
Lexical analyzer
E
Correct answer
Explanation
It reads the source program one character at a time, carving the source program into a sequence of atomic units called tokens.
-
Lex
-
Yacc
-
MASM assembler
-
Syntax analyzer
-
Byte code verifier
B
Correct answer
Explanation
It allows a user to specify a possibly ambiguous grammer along with precedence and associativity information about operators.
-
Semantics
-
Semantic gap
-
Specification gap
-
Execution gap
-
Language processor
D
Correct answer
Explanation
It is the gap between the semantics of programs, written in different programming languages.
-
Left linear grammar
-
Operator grammar
-
Type-1 grammar
-
Right regular grammar
-
Binding
C
Correct answer
Explanation
This grammar production specifies that derivation or reduction of strings can take place only in specific contexts.
-
MASM32 assembler
-
MASM assembler
-
Yacc
-
Interpreter
-
Byte code verifier
A
Correct answer
Explanation
It has been designed to look familiar to a programmer who has already written API based code in windows.
-
VB Script
-
Java Script
-
CSS
-
Java
-
A combination of computer hardware
-
A program which translates from one high-level language to another
-
A program which translates from a high-level language to a machine-level language
-
A program which translates from a machine-level language to a high-level language
-
Control words
-
Reserved words
-
Control structures
-
Reserved keys
-
None of these
B
Correct answer
Explanation
Reserved words are terms that programming languages set aside for specific purposes and cannot be used as identifiers (variable names, function names, etc.). Examples include 'if', 'while', 'class', 'return' in most languages.
-
4GLs
-
macro languages
-
object oriented languages
-
visual programming languages
-
none of these
D
Correct answer
Explanation
Programming language built into user programs such as Word and Excel are known as visual programming languages.
-
Content coupling
-
Common coupling
-
External coupling
-
Control coupling
-
Data coupling
A
Correct answer
Explanation
Content coupling (also known as pathological coupling) is when one module modifies or relies on the internal workings of another module.
-
Recognised only by a Turing machine
-
Context-sensitive
-
Regular
-
Unrestricted
-
Context-free
E
Correct answer
Explanation
C is a context-free language.
-
Linker
-
Assembler
-
Compiler
-
Loader
-
Interpreter
A
Correct answer
Explanation
In computer science, a linker or link editor is a computer program that takes one or more object files generated by a compiler and combines them into a single executable program.
-
High-level language
-
Microcode
-
Interrupt
-
Computer organization
-
Instruction set architecture
E
Correct answer
Explanation
An instruction set, or instruction set architecture (ISA), is the part of the computer architecture related to programming, including the native data types, instructions, registers, addressing modes, memory architecture, interrupt and exception handling, and external I/O. An ISA includes a specification of the set of opcodes (machine language), and the native commands implemented by a particular processor.