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
  1. A widget set for programmers

  2. A programming language

  3. A set of programmer's libraries

  4. A network service

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

Java is fundamentally a high-level, class-based, object-oriented programming language designed for platform independence.

Multiple choice technology
  1. Java is an object-oriented language.

  2. Java is a language that is network-aware.

  3. Java is a language which gives you great freedom in how you write your program.

  4. Java is a portable language.

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

Java enforces strict rules (strong typing, no pointers, garbage collection, OOP structure) that constrain how you write code - less freedom than C/C++ but safer and more maintainable.

Multiple choice technology programming languages
  1. Common Language Specification

  2. Common Language Runtime

  3. Base Class Library

  4. None

  5. All the Above

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

CTS (Common Type System) is contained in the Common Language Runtime (CLR), which is the execution engine of .NET. It is not contained in CLS, BCL, or other components.

Multiple choice technology operating systems
  1. C ,Java

  2. C,C++,Java

  3. Java,linux

  4. Java ,Pearl

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

Android's architecture uses multiple languages: Java for application development and the Android framework, C++ for native code and libraries (via NDK), and C for the Linux kernel itself. This layered approach balances performance with developer productivity.

Multiple choice technology web technology
  1. Rock Band

  2. Programming Language

  3. Web Browser

  4. Java Framework

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

Mosaic was a pioneering web browser released in 1993 by the National Center for Supercomputing Applications (NCSA). It was instrumental in popularizing the World Wide Web and helped establish the web as we know it today by making it accessible to non-technical users through its graphical interface.

Multiple choice technology mainframe
  1. Job Centre Language

  2. Job Control Language

  3. Job Comitte Language

  4. Job Control Limit

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

JCL stands for Job Control Language, which is used on IBM mainframe systems to tell the operating system what program to run and what resources to allocate. It's a scripting language for batch job processing. Job Centre Language, Job Comitte Language, and Job Control Limit are incorrect expansions.

Multiple choice technology programming languages
  1. C++

  2. Java

  3. Simula

  4. None of the above

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

Simula 67 was the first language to introduce key object-oriented concepts like classes, objects, inheritance, and subclasses. C++ and Java are multi-paradigm languages that also support non-OO features like primitive types, making them not 'fully' object-oriented.

Multiple choice technology
  1. Format Translator

  2. Form Translator

  3. File or Translator

  4. Formula Translator

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

FORTRAN stands for 'Formula Translator,' not Format, Form, or File Translator. It was developed in the 1950s specifically for scientific and engineering calculations that involved complex mathematical formulas. The name directly reflects its purpose: translating mathematical formulas into executable code.

Multiple choice technology programming languages
  1. JIT

  2. Language Specific Compiler

  3. MSIL

  4. CTS

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

MSIL (Microsoft Intermediate Language) is the key to .NET language interoperability. All .NET languages compile to MSIL, which then runs on the CLR. This allows code written in different .NET languages (C#, VB.NET, F#) to work together seamlessly. JIT converts MSIL to native code at runtime, while CTS defines common types but MSIL is the actual interoperability mechanism.

Multiple choice technology
  1. True

  2. False

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

COBOL and PASCAL are both high-level programming languages, not computer viruses. COBOL (Common Business-Oriented Language) is used in business and finance applications, while PASCAL was designed for teaching programming concepts. Viruses are malicious software that replicate themselves, which these languages are not.

Multiple choice technology mainframe
  1. (A) Sections

  2. (B) Paragraphs

  3. (C) Sentences

  4. (D) Statements.

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

In COBOL Procedure Division, only Sections are optional. You must have at least one Paragraph, which contains Sentences, which are composed of Statements. This hierarchy is: Sections (optional) > Paragraphs (required) > Sentences (required) > Statements (required). A procedure can consist of a single paragraph with sentences, without any sections, making sections the only truly optional element.

Multiple choice technology mainframe
  1. (A) Start

  2. (B) Rewrite

  3. (C) Delete

  4. (D) Update.

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

In COBOL, START, REWRITE, and DELETE are valid input/output verbs used to perform operations on files. UPDATE is not a valid COBOL verb; modifying an existing record is accomplished using the REWRITE verb. Thus, option D is the correct choice.

Multiple choice technology programming languages
  1. C++

  2. C#

  3. JAVA

  4. VB

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

C# is the primary language designed for the .NET Framework and makes the best use of the CLR. While VB.NET and managed C++ also compile to IL and run on the CLR, C# was designed alongside the CLR and provides the most natural mapping to its features. Java runs on its own JVM, and standard C++ doesn't use a runtime in the same way.