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 programming languages
  1. Identification Division

  2. Linkage Division

  3. Data Division

  4. Procedure Division

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

The four main divisions in a COBOL program are Identification, Environment, Data, and Procedure. The Linkage Section is a component within the Data Division used for parameter passing, rather than a standalone division.

Multiple choice technology architecture
  1. .NET Framework 2.0 CLR was was introduced with VS 2005

  2. .Net Framework 3.0 uses the .NET Framework 2.0 CLR

  3. .Net Framework 3.5 uses the .NET Framework 2.0 CLR

  4. .Net Framework 3.5 SP1 first time introduce the .NET Framework 3.0 CLR

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

To answer this question, the user needs to have knowledge about Common Language Runtime (CLR), which is the virtual machine component of Microsoft's .NET framework that executes .NET programs.

Now, let's go through each option and explain why it is right or wrong:

A. .NET Framework 2.0 CLR was introduced with VS 2005: This statement is true. The CLR version 2.0 was introduced with Visual Studio 2005 and the .NET Framework 2.0.

B. .Net Framework 3.0 uses the .NET Framework 2.0 CLR: This statement is true. The .Net Framework 3.0 is just an add-on to the .Net Framework 2.0, and it uses the same CLR version 2.0.

C. .Net Framework 3.5 uses the .NET Framework 2.0 CLR: This statement is true. The .Net Framework 3.5 is built on top of the .Net Framework 2.0 and uses the same CLR version 2.0.

D. .Net Framework 3.5 SP1 first time introduced the .NET Framework 3.0 CLR: This statement is false. The .Net Framework 3.5 SP1 did not introduce the .NET Framework 3.0 CLR. It still uses the same CLR version 2.0.

Therefore, the answer is: D.

Multiple choice technology mainframe
  1. Structural mode and Printing mode

  2. Open mode and Closed mode

  3. Structured Mode and Reporting Mode

  4. Printing mode and Reporting mode

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

Natural has two primary programming modes: Structured Mode (for data manipulation and business logic) and Reporting Mode (for formatted report generation). Structural mode, Printing mode, Open/Closed mode are not the correct classification - these appear to be fabricated terms. The distinction between Structured and Reporting modes is fundamental to Natural programming, with each mode optimized for different types of tasks.

Multiple choice technology mainframe
  1. Program

  2. Subprogram

  3. Helproutine

  4. All of the above

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

Programs, Subprograms, and Helproutines are all valid Natural object types. Programs are main executable modules, Subprograms are callable modules using CALLNAT, and Helproutines provide help text and documentation. All three are fundamental object types in the Natural development environment, making 'All of the above' the correct answer.

Multiple choice technology security
  1. Ounce

  2. WebInspect

  3. IBM RAD

  4. None of the above

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

Ounce (now IBM Security AppScan Source) is a static application security testing (SAST) tool that analyzes source code for security vulnerabilities. WebInspect is a dynamic testing tool, IBM RAD is a development IDE, making Ounce the correct choice for static code analysis.

Multiple choice technology programming languages
  1. Byte Code

  2. Firewall

  3. Tetra Code

  4. View Code

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

Java achieves cross-platform compatibility by compiling source code into bytecode, which is an intermediate representation. This bytecode can run on any device with a Java Virtual Machine (JVM), enabling the 'write once, run anywhere' capability. The JVM translates bytecode into machine-specific instructions at runtime.

Multiple choice technology programming languages
  1. Embarcadero

  2. CodeGear

  3. Inprise

  4. Borland

  5. Pascal

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

Pascal is a programming language, while Embarcadero, CodeGear, Inprise, and Borland are all company names that owned Delphi at different times in its corporate history. Borland created Delphi, later spun off as CodeGear, acquired by Embarcadero; Inprise was Borland's brief name change. Pascal is the linguistic odd one.

Multiple choice technology web technology
  1. Coldfusion

  2. PHP

  3. Python

  4. ASP

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

PHP uses as its standard opening and closing tags, with the short form ?> also available when short_open_tag is enabled in configuration. This syntax embeds PHP code within HTML files. Other languages like Coldfusion use , Python is not typically embedded in HTML this way, and ASP uses <% %> tags.

Multiple choice technology web technology
  1. JavaScript

  2. Java

  3. Perl

  4. Rexx

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

JavaScript was originally named Mocha when it was created by Brendan Eich at Netscape in 1995. It was briefly renamed LiveScript before being officially launched as JavaScript. The name change was partly a marketing move to capitalize on Java's popularity, though the languages are unrelated.

Multiple choice technology mainframe
  1. COBOL

  2. CICS

  3. REXX

  4. Easytrieve

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

COBOL, REXX, and Easytrieve are all programming languages used on mainframe systems. CICS (Customer Information Control System) is a transaction processing system/middleware, not a programming language. It's an environment that runs programs written in languages like COBOL.

Multiple choice technology programming languages
  1. Data Oriented Language

  2. Service Oriented Language

  3. Object Oriented Language

  4. Structured Oriented Language

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

Visual Basic.NET is fundamentally an object-oriented language that supports core OOP principles like encapsulation, inheritance, and polymorphism. While it can handle data operations and structured programming, its architecture is built around objects and classes, not data-centric or service-only paradigms.