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
-
COmputer Basic Operating Language
-
COmmon Business Oriented Language
-
Common OBservation Official Language
-
none of the above
B
Correct answer
Explanation
COBOL stands for COmmon Business Oriented Language. It was designed in 1959 for business, finance, and administrative systems. The name directly reflects its purpose - a common language for business applications.
-
A programming language
-
Extremely versatile language
-
Restructured Extended Executor Language
-
High-level procedural language
-
All of the above
E
Correct answer
Explanation
REXX (Restructured Extended Executor) is a high-level programming language that was designed to be extremely versatile. It can be used for various purposes including scripting, automation, and system interaction. Therefore, all the given descriptions are correct, making option E the right answer.
-
/Copy, Subroutines and Arrays
-
/Copy, Procedures and Arrays
-
/Copy, Subrotines and Procedures
-
None of the above
C
Correct answer
Explanation
Modular programming in AS/400 RPG uses three main techniques: /COPY compiler directives for including common source code, Subroutines for internal program modularization, and Procedures (also called subprocedures) which can be exported and shared across programs. Arrays (options A and B) are data structures, not modularization techniques. Option C correctly identifies /COPY, Subroutines, and Procedures as the modular programming techniques.
-
Open source general purpose
-
Proprietary general purpose
-
Open source special purpose
-
Proprietary special purpose
A
Correct answer
Explanation
PHP is fundamentally designed as an open-source, general-purpose scripting language. The 'open source' means its source code is freely available for anyone to use and modify. 'General purpose' indicates it can handle various types of programming tasks beyond web development, though it is especially well-suited for web applications. Options B and D are incorrect because PHP is not proprietary. Option C is incorrect because PHP is not limited to special purposes.
B
Correct answer
Explanation
COBOL is a structured programming language despite its age. Modern COBOL supports structured programming constructs like IF-ELSE, EVALUATE (case-like), PERFORM loops, and modular programming through CALL and nested programs. While early versions had unstructured elements (like GO TO), the language evolved to support structured programming principles.
-
Boston University
-
Arizona State University
-
University of Munich
-
London University
A
Correct answer
Explanation
ATS (Applied Type System) was developed by Hongwei Xi and colleagues at Boston University. It's a programming language designed to support formal verification through advanced type systems, allowing specification and verification of program properties.
-
Static
-
Tertiary
-
Dynamic
-
Both 1 and 3
D
Correct answer
Explanation
Descriptive programming in QTP has two types: Static (where properties are hardcoded in the script) and Dynamic (where properties are built programmatically at runtime). Both approaches eliminate the need for an object repository. Option B (Tertiary) is not a valid type of descriptive programming.
-
Programmatic descriptions for parent object and the child object is referred in Object Repository
-
Programmatic descriptions for both parent object and the child objects
-
Parent object is referred in Object Repository and the programmatic descriptions for child object
-
None of the above
B,C
Correct answer
Explanation
When using descriptive programming in QTP/UFT, we can describe all objects in the hierarchy programmatically, or describe the child programmatically while referencing its parent from the Object Repository. Once a child is described programmatically, its descendants must also be programmatically described.
-
a) Bit Mapping Support
-
b) Basic Mapping Standard
-
c) Basic Mapping Support
-
d) None of the above
-
e) Neither (a) nor (b)
C,E
Correct answer
Explanation
Basic Mapping Support (BMS) is the CICS facility used to define screens via assembler-level macro instructions. Both option C (which names BMS) and option E (neither a nor b) are correct since options A and B are incorrect terms.
-
Practical Extraction and Report Language
-
Practice for Exclusive and Report Language
-
Practical Extraction and Report Learning
-
Practical Exclusive and Report Language
A
Correct answer
Explanation
Perl is an acronym for 'Practical Extraction and Report Language'. This name reflects its original purpose for text processing, report generation, and system administration tasks.
-
Structured
-
Hierarchical
-
Reporting
-
onject oriented
A,C
Correct answer
Explanation
Natural programming language features two execution modes: Structured and Reporting. Structured mode is designed for structured coding with strict syntax validation, while Reporting mode allows quick, flexible data extraction and generation of reports with fewer syntax restrictions.
-
Hierarchical
-
Structured
-
object oriented
-
Reporting
B,D
Correct answer
Explanation
Natural has two primary programming modes: Structured mode (uses block structures like IF, LOOP) and Reporting mode (generates reports with LIST, DISPLAY statements). Object-oriented is not a Natural programming paradigm, and Hierarchical is not a recognized mode in Natural.
-
Visual Basic
-
Visual C++
-
Visual C#
-
Visual F#
-
None of the Above
E
Correct answer
Explanation
Visual Studio 2010 supported all the listed languages: Visual Basic, Visual C++, Visual C#, and Visual F#. F# was actually introduced as a first-class language in VS 2010. Therefore 'None of the Above' is correct because all the mentioned languages ARE supported.