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
-
Program execution activity
-
Language processing activity
-
Program generator domain
-
Allocation
-
Program translation
B
Correct answer
Explanation
This technique arises due to the differences between the manner in which a software designer describes the ideas concerning the behaviour of a software and the manner in which these ideas are implemented in a computer system.
-
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.
-
iomanip.h
-
stdio.h
-
fstream.h
-
iostream.h
C
Correct answer
Explanation
The fstream.h header file (or in standard C++) provides classes and functions for file input/output operations. The read() function reads data from a file, and open() opens a file stream. iostream.h handles console I/O, stdio.h is for C-style I/O, and iomanip.h is for I/O formatting.
-
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.
-
interpretor
-
compiler
-
assembler
-
comparator
-
None of these
C
Correct answer
Explanation
Assembler is a computer program that converts assembly language to machine language.
A
Correct answer
Explanation
Lex is a well-known tool used to generate lexical analyzers (scanners) for various programming languages. It reads specification files and produces C code for lexical analysis. Yaac, EQN, and TeX serve different purposes.
-
lexical analyzer
-
scanner
-
parser
-
code generator
-
Top-down parsing
-
Bottom-up parsing
-
Both 1 and 2
-
None of the above
-
specifying the syntax of a language
-
describing how a program works
-
shell programming
-
multi user programming
A
Correct answer
Explanation
BNF (Backus-Naur Form) is a formal notation used to specify the syntax of programming languages and other formal languages. It defines grammar rules and production rules, not how programs work or shell programming.
-
is a low level language
-
descibes what processing is to be done without specifying the particular procedures to be used
-
is frequently used by software designers
-
all of the above
B
Correct answer
Explanation
descibes what processing is to be done without specifying the particular procedures to be used