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
-
01-49, 66
-
01-49,77
-
01-49,66,77,88
-
01-49
D
Correct answer
Explanation
In COBOL, standard record level numbers range from 01 to 49, with 01 being the highest (most major) and 49 being elementary items. Levels 66 (RENAMES), 77 (independent elementary items), and 88 (condition names) are special-purpose levels with specific functions outside the regular 01-49 hierarchy. Option A and B are incomplete, C includes special levels incorrectly.
-
Common Business Oriented Language
-
Common Business Object Language
-
Common Balls Of Light
-
Common Object Business Oriented LAnguage
A
Correct answer
Explanation
COBOL stands for Common Business Oriented Language, a high-level programming language designed for business applications. It was developed in 1959 and remains widely used in enterprise and government systems for transaction processing and administrative applications.
-
3rd generation programming language
-
4th generation programming language
-
5th generation programming language
-
All of the above
B
Correct answer
Explanation
SAS (Statistical Analysis System) is a 4th generation programming language (4GL). 4GLs are designed to be closer to human language and more domain-specific than 3GLs like C or Java. SAS provides high-level declarative syntax for data analysis.
-
PERL
-
BASIC
-
Shell Script
-
C++
B
Correct answer
Explanation
Server routines in Datastage are developed using BASIC programming language, which is the proprietary scripting language for Datastage server routines. PERL, Shell Script, and C++ are not used for developing server routines within the Datastage environment.
A
Correct answer
Explanation
PL/SQL (Procedural Language extensions to SQL) is Oracle's procedural programming language that combines SQL data manipulation with procedural constructs like variables, conditions, loops, and exception handling. It enables custom program logic to execute within the Oracle database server.
-
Syntax Checking
-
Semantic Analysis
-
Both
-
Checking the shared pool
-
All of the above
-
a low-level programming language.
-
a scripting language precompiled in the browser
-
a compiled scripting language.
-
an object-oriented scripting language.
D
Correct answer
Explanation
JavaScript is best described as an object-oriented scripting language. It is not precompiled in the browser (it uses JIT compilation or interpretation), nor is it a low-level language or a statically compiled language.
-
Identification Division
-
Environment Division
-
Data Division
-
Procedure Division
A
Correct answer
Explanation
The Identification Division is the only division that is mandatory in every COBOL program. It identifies the program to the compiler and must be present in all COBOL code. The Environment, Data, and Procedure divisions are commonly used but not all are mandatory.
D
Correct answer
Explanation
J2EE (Java 2 Enterprise Edition) components are written in Java. The 'Java' in the name indicates the programming language. C, C++, and C# are not used for J2EE components.
-
.NET Framework 2.0 CLR was was introduced with VS 2005
-
.Net Framework 3.0 uses the .NET Framework 2.0 CLR
-
.Net Framework 3.5 uses the .NET Framework 2.0 CLR
-
.Net Framework 3.5 SP1 first time introduce the .NET Framework 3.0 CLR
D
Correct answer
Explanation
.NET Framework 2.0 CLR shipped with VS 2005 (A is true). .NET 3.0 and 3.5 both use CLR 2.0 (B and C are true). .NET 3.5 SP1 still used CLR 2.0 - the 3.0 CLR didn't exist as a distinct version. CLR changed to 4.0 only with .NET Framework 4.0. Option D is false.
C
Correct answer
Explanation
The E-App (Electronic Application) system is built using VB (Visual Basic). This is a legacy technology choice common in enterprise applications, particularly in the insurance and financial services domain.
-
Low level
-
High level
-
Both 1 and 2
-
None
A
Correct answer
Explanation
Assembler is a low-level language that provides direct mnemonic representation of machine instructions with minimal abstraction from hardware.
-
automatic
-
enigmatic
-
pragmatic
-
syntactic
D
Correct answer
Explanation
In Object-Oriented Programming, the binding between data and the operations that can be performed on it is described as 'syntactic' because it follows the syntax rules of the language. This close binding is a fundamental characteristic of OOP languages.
-
generates
-
articulates
-
manipulates
-
eradicates
-
Identification Division
-
Linkage Division
-
Data Division
-
Procedure Division
B
Correct answer
Explanation
The four standard divisions in a COBOL program are Identification, Environment, Data, and Procedure. Linkage Division is not one of the four main divisions; it is a special division used specifically for defining parameters passed to a program when called from another program. The correct answer is B (Linkage Division).