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

Multiple choice technology mainframe
  1. COmputer Basic Operating Language

  2. COmmon Business Oriented Language

  3. Common OBservation Official Language

  4. none of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. A programming language

  2. Extremely versatile language

  3. Restructured Extended Executor Language

  4. High-level procedural language

  5. All of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. /Copy, Subroutines and Arrays

  2. /Copy, Procedures and Arrays

  3. /Copy, Subrotines and Procedures

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Open source general purpose

  2. Proprietary general purpose

  3. Open source special purpose

  4. Proprietary special purpose

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Boston University

  2. Arizona State University

  3. University of Munich

  4. London University

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Static

  2. Tertiary

  3. Dynamic

  4. Both 1 and 3

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Programmatic descriptions for parent object and the child object is referred in Object Repository

  2. Programmatic descriptions for both parent object and the child objects

  3. Parent object is referred in Object Repository and the programmatic descriptions for child object

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. a) Bit Mapping Support

  2. b) Basic Mapping Standard

  3. c) Basic Mapping Support

  4. d) None of the above

  5. e) Neither (a) nor (b)

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Practical Extraction and Report Language

  2. Practice for Exclusive and Report Language

  3. Practical Extraction and Report Learning

  4. Practical Exclusive and Report Language

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. Structured

  2. Hierarchical

  3. Reporting

  4. onject oriented

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology operating systems
  1. Hierarchical

  2. Structured

  3. object oriented

  4. Reporting

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology platforms and products
  1. Visual Basic

  2. Visual C++

  3. Visual C#

  4. Visual F#

  5. None of the Above

Reveal answer Fill a bubble to check yourself
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.