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 architecture
  1. UML to Java

  2. UML to C

  3. UML to C++

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Round-trip engineering allows reversing transformations between UML and Java because Java preserves enough structure to reconstruct the UML. C lacks this expressiveness - its low-level constructs and procedural nature lose UML semantic information irreversibly. The same applies to C++.

Multiple choice technology architecture
  1. C++

  2. Java

  3. SmallTalk

  4. WSDL

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

IBM Rational Software Architect (RSA) provides built-in UML transformations for commonly used languages and standards like C++, Java, and WSDL. SmallTalk is an older object-oriented language that is not typically supported out of the box in modern RSA versions due to its limited industry adoption today. The transformation requires additional plugins or custom configuration.

Multiple choice technology programming languages
  1. Low Level Language

  2. High Level Language

  3. Machine Level Language

  4. Binary Level Language

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

SAS is a high-level software suite/programming language designed for advanced analytics, data management, and business intelligence, shielding users from hardware-level complexity. Low-level, machine, and binary languages represent instructions directly executed by CPU architectures.

Multiple choice technology programming languages
  1. C

  2. C++

  3. PASCAL

  4. FORTAN

  5. TAL

  6. All of the above

Reveal answer Fill a bubble to check yourself
F Correct answer
Explanation

COBOL 85 programs can invoke routines written in multiple programming languages including C, C++, Pascal, and Fortran through language interop capabilities. The TAL (Transaction Application Language) is also supported in HP NonStop environments. Therefore, all of these languages can be called from COBOL.

Multiple choice technology programming languages
  1. C

  2. C++

  3. PASCAL

  4. FORTAN

  5. TAL

  6. All of the above

Reveal answer Fill a bubble to check yourself
F Correct answer
Explanation

COBOL 85 supports calling routines written in other programming languages through Language Environment (LE) and inter-language communication interfaces. This includes C (for system-level operations), C++ (through appropriate interfaces), Pascal, Fortran (misspelled as 'FORTAN' in option D), and TAL (Tandem Application Language, a system programming language for Tandem/NonStop systems). Therefore, all of these languages can be invoked from COBOL 85.

Multiple choice technology mainframe
  1. Job Circuit Language

  2. JCL Control Language

  3. Job Control Language

  4. JCL Course Language

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

JCL stands for Job Control Language, which is used on IBM mainframe systems to define jobs and tell the operating system what resources are needed. Option A incorrectly suggests 'Circuit' instead of 'Control'. Option B is redundant ('JCL Control Language' would repeat 'Control'). Option D incorrectly suggests 'Course' rather than 'Control'.

Multiple choice technology mainframe
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

COBOL (Common Business-Oriented Language) was developed in 1959 by the CODASYL committee to address business programming needs. It is classified as a high-level language because it uses English-like syntax and abstracts away low-level machine details, making it readable and maintainable.

Multiple choice technology security
  1. Compiler

  2. Reverse Engineering tool

  3. Database Monitoring tool

  4. Macro Analyzer

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

OllyDbg is a well-known 32-bit assembler-level analyzing debugger for Microsoft Windows. It is widely used in reverse engineering, malware analysis, and software cracking because it allows binary code analysis, modification, and debugging without access to the source code.

Multiple choice
  1. MSIL

  2. CLR

  3. JIT

  4. DLL

  5. CTS

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

As a part of Microsoft's .NET Framework, the Common Language Runtime (CLR) is programming that manages the execution of programs written in any of the several supported languages, allowing them to share common object-oriented classes written in any of the languages. A program compiled for the CLR does not need a language-specific execution environment and can easily be moved to and run on any system with Windows 2000 or Windows XP .

Multiple choice
  1. $S\rightarrow AC\mid CB$ $C\rightarrow aCb\mid a\mid b$ $A\rightarrow aA\mid \varepsilon$ $B\rightarrow Bb\mid \varepsilon$
  2. $S\rightarrow aS\mid Sb \mid a\mid b$
  3. $S\rightarrow AC\mid CB$ $C\rightarrow aCb\mid \varepsilon$ $A\rightarrow aA\mid \varepsilon$ $B\rightarrow Bb\mid \varepsilon$
  4. $S\rightarrow AC\mid CB$ $C\rightarrow aCb\mid \varepsilon$ $A\rightarrow aA\mid a$ $B\rightarrow Bb\mid b$
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation