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
-
FORTRAN
-
COMPTRAN
-
FLOW MATIC
-
PASCAL
B
Correct answer
Explanation
The PICTURE clause (for data formatting and editing) in COBOL was borrowed from COMTRAN (Commercial Translator), not from FLOW-MATIC, FORTRAN, or Pascal. COMTRAN was an IBM business language that contributed this data description feature.
-
Common Business Oriented Language
-
Common Business Language
-
Business Oriented Language
-
Business Language
B
Correct answer
Explanation
When the CODASYL committee first named the language in 1959, they called it 'Common Business Language' (CBL). It was later renamed to COBOL (Common Business Oriented Language). Option B reflects this original name.
-
IGYWCL
-
IEWL
-
IEBCOMPILE
-
IGYCRCTL
D
Correct answer
Explanation
IGYCRCTL is the actual IBM compiler program name for Enterprise COBOL for z/OS. IGYWCL is a cataloged procedure used to compile and link, while IEWL is the linkage editor.
-
Source code Debugger
-
Compiler
-
Assembler
-
Command-line interpreter
D
Correct answer
Explanation
A shell is a command-line interpreter that provides a user interface for access to an operating system's services, executing commands entered by the user.
-
2nd Generation Programming Language
-
3rd Generation Programming Language
-
4th Generation Programming Language
-
5th Generation Programming Language
C
Correct answer
Explanation
IDEAL is a 4th Generation Programming Language (4GL) developed by Texas Instruments for application development on mainframes. 4GLs are designed to be more user-friendly and closer to natural language than 3GLs like COBOL. They provide higher-level abstractions and built-in functionality for common business tasks.
-
1,2,3 and 4
-
1,3,and 4 only
-
1 and 2 only
-
1 only
A
Correct answer
Explanation
The numbering indicates order: C# (1), JScript (2), VB.NET (3), Managed C++ (4). All four languages are supported by .NET, making the statement technically accurate.
-
Basic Assembler Language
-
Binary Assembly link
-
Binary ASCII Language
-
Bit Assembler Language
A
Correct answer
Explanation
BAL stands for Basic Assembler Language, which is the assembly language used on IBM mainframe systems. It's a low-level programming language for system programming on IBM z/Architecture and earlier systems.
-
Immediate language Assembler
-
Immediate Dis-Assembler language
-
Intermediate Language Dis-Assembler
-
Intermediate De-Assembler language
C
Correct answer
Explanation
ILDASM (Intermediate Language Disassembler) is a Microsoft tool that disassembles .NET assemblies into human-readable Intermediate Language (IL) code. It helps developers understand how high-level code compiles to IL.
B
Correct answer
Explanation
Perl is a programming language, not a text editor. Vim, Pico, and Vi are all text editors commonly used in Unix/Linux systems. Perl can be used to process text but is a scripting language first.
-
Machine language
-
Assembly level language
-
Procedural language
-
Non Procedural language
B
Correct answer
Explanation
Assembly language uses mnemonics (human-readable abbreviations like MOV, ADD) and opcodes to represent machine instructions. Machine language (A) uses binary, while procedural (C) and non-procedural (D) languages are high-level paradigms.
-
code
-
Debug
-
Defect
-
Failure
A
Correct answer
Explanation
Code refers to computer instructions and data definitions expressed in a programming language or output by translators like compilers. Debug is the process of finding faults. A defect is a flaw in the code. A failure is the observable incorrect behavior. Option A matches the definition given.
-
i , ii , iii , iv
-
i , iii , ii , iv
-
iv, iii , i , ii
-
i , iv , iii , ii
-
PROLOG
-
PYTHON
-
PASCAL
-
PERL
A
Correct answer
Explanation
The code shows Prolog's fact/rule syntax using ':-' (horn clause operator). 'hello_world :- write('Hello World!')' defines a rule that succeeds when 'hello_world' is called and executes 'write'. This is unmistakably Prolog.
D
Correct answer
Explanation
The code uses line numbers (10, 20) and the 'PRINT' and 'GOTO' statements, which are characteristic of the classic BASIC programming language. Python, Z, and CSP do not use this syntax.