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
-
Netscape
-
Sun Micro system
-
None of the above
-
Both (1) and (2)
B
Correct answer
Explanation
Option 2 is the correct option.
-
C
-
C++
-
Assembly
-
Java
-
All of the above
-
compiled program
-
source program
-
object program
-
all of the above
-
none of these
B
Correct answer
Explanation
Source program is written in high level language.
C
Correct answer
Explanation
Option 3 is the correct answer.
A
Correct answer
Explanation
Option 1 is the correct answer.
-
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.
-
uses alphabetic codes in place of binary numbers used in machine language
-
is the easiest language to write programs
-
need not be translated into machine language
-
None of these
A
Correct answer
Explanation
Assembly languageĀ uses alphabetic codes in place of binary numbers used in machine language.
A
Correct answer
Explanation
Java is a modern, high-level, object-oriented programming language, whereas Algol, Cobol, and C are older languages.
-
is the language in which programs were first written
-
is the only language understood by the computer
-
differs from one type of computer to another
-
All of these
D
Correct answer
Explanation
Machine language is the low-level binary code that computers execute directly; it is hardware-specific and was the first language used for programming.
-
CLI provides the runtime specific code format and specification.
-
It translates the native code to be executable by a virtual machine.
-
CIL is an object-oriented assembly language.
-
The source code is CLI's equivalent to assembly language for a CPU.
-
All of these
-
a set of regular expressions
-
syntax tree
-
a set of tokens
-
a string of characters
C
Correct answer
Explanation
The lexical analyzer (or scanner) reads the source code as a stream of characters and groups them into meaningful sequences called tokens.
-
incremental compiler
-
reconfigurable compiler
-
dynamic compiler
-
selective compiler
A
Correct answer
Explanation
An incremental compiler is designed to recompile only the parts of the source code that have been modified, which saves time during the development cycle.
-
Syntax Analysis
-
Code Generation
-
Lexical Analysis
-
Intermediate Code Generation
A
Correct answer
Explanation
Syntax analysis (parsing) deals with the structure of the language defined by a grammar, which is independent of the specific machine architecture on which the code will run.
-
It is a machine language.
-
It is an assembly language.
-
It is a high-level language.
-
All of the above
-
Debugger
-
Editor
-
Spooler
-
Bugger
C
Correct answer
Explanation
A spooler is a system process that manages the queue of jobs for a peripheral device like a printer; it is generally considered a system service or daemon rather than a user-facing utility program.