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. Iterpreted Language

  2. Compiled Language

  3. Byte Code Language

  4. None of these

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

Java is neither purely interpreted nor purely compiled - it's a hybrid language. Java source code is compiled to bytecode, which is then either interpreted by the JVM or JIT-compiled to native code at runtime. 'Byte Code Language' is not a standard programming language classification.

Multiple choice technology testing
  1. a programming language

  2. A technique

  3. related to window XP

  4. None of the above

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

Extreme Programming (XP) is a software development technique/framework, not a programming language or related to Windows XP. It emphasizes pair programming, testing, and frequent releases.

Multiple choice technology programming languages
  1. Subject Oriented Language

  2. Object Oriented Language

  3. testing tool

  4. Server

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

Java is fundamentally an object-oriented programming language. It supports core OOP concepts including classes, objects, inheritance, encapsulation, polymorphism, and abstraction. Java is not a 'subject-oriented' language, a testing tool, or a server - it's a general-purpose programming language with OOP as its foundation.

Multiple choice technology platforms and products
  1. R/3

  2. ABAP

  3. Netweaver

  4. Java

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

ABAP (Advanced Business Application Programming) is SAP's proprietary programming language, designed specifically for developing business applications within the SAP ecosystem. R/3 is SAP's ERP product name, NetWeaver is their technology platform, and Java is a general-purpose language not owned by SAP.

Multiple choice technology programming languages
  1. Java programming is derived from C++.

  2. The Java Virtual Machine1(JVM) interprets the program for the native operating system.

  3. The compiler is identical to a C++ compiler.

  4. The APIs do all the work.

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

Java programs achieve platform independence through the Java Virtual Machine (JVM). Java source code is compiled to bytecode, which the JVM interprets or compiles to native code for the specific platform. The JVM abstracts away platform-specific details, allowing the same bytecode to run anywhere. Option B is correct.

Multiple choice technology programming languages
  1. System

  2. SecurityManager

  3. Math

  4. Runtime

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

The System class in java.lang provides the standard input, output, and error streams (System.in, System.out, System.err) used for basic console I/O. It also contains utility methods. SecurityManager is for security policies, Math is for mathematical functions, and Runtime is for interacting with the runtime environment. Option A is correct.

Multiple choice technology operating systems
  1. A free implementation of PostScript

  2. A printing management tool

  3. A program for converting files to PostScript

  4. A free interpreter of PostScript

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

GhostScript is a free, open-source interpreter for PostScript and PDF. It can render, convert, and display PostScript/PDF documents. Option C describes a converter (too narrow), A says implementation (could mean compiler), and B describes a management tool - D is most accurate as 'interpreter'.

Multiple choice technology programming languages
  1. FSBC

  2. TTBL

  3. GTBL

  4. STBL

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

In Model 204, TTBL (terminal table), GTBL (global table), and STBL (screen table) are valid user language working areas. FSBC is NOT a valid working area in the Model 204 system. Option A correctly identifies FSBC as invalid. Options B, C, and D are incorrect because they list valid working areas (TTBL, GTBL, STBL).

Multiple choice technology programming languages
  1. Common Language Runtime

  2. Common Language Routine

  3. Class Library Routine

  4. None

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

CLR stands for Common Language Runtime, which is the execution engine of the .NET Framework. It manages memory execution, thread execution, code safety verification, compilation, and other system services, making it a fundamental component of .NET applications.

Multiple choice technology web technology
  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

.NET Framework versions 2.0, 3.0, and 3.5 all used the same CLR 2.0 runtime. There is no such thing as a '.NET Framework 3.0 CLR' - the runtime versions are CLR 1.x, 2.0, 4.0, and .NET 5+. Statement D falsely claims a 3.0 CLR exists.