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
-
A widget set for programmers
-
A programming language
-
A set of programmer's libraries
-
A network service
B
Correct answer
Explanation
Java is fundamentally a high-level, class-based, object-oriented programming language designed for platform independence.
-
Java is an object-oriented language.
-
Java is a language that is network-aware.
-
Java is a language which gives you great freedom in how you write your program.
-
Java is a portable language.
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.
A,B,D
Correct answer
Explanation
Custom transformations in PowerCenter are written in C, C++, or Java. These languages provide the performance and integration needed for custom code within the Informatica ecosystem. Perl and C# are not supported for Custom transformations.
-
Common Language Specification
-
Common Language Runtime
-
Base Class Library
-
None
-
All the Above
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.
-
C ,Java
-
C,C++,Java
-
Java,linux
-
Java ,Pearl
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.
-
Rock Band
-
Programming Language
-
Web Browser
-
Java Framework
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.
-
Job Centre Language
-
Job Control Language
-
Job Comitte Language
-
Job Control Limit
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.
-
C++
-
Java
-
Simula
-
None of the above
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.
-
Format Translator
-
Form Translator
-
File or Translator
-
Formula Translator
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.
-
JIT
-
Language Specific Compiler
-
MSIL
-
CTS
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.
-
JAVA
-
C#
-
works in java but not in C#
-
works in C# but not in JAVA
-
works in both languages
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.
-
(A) Sections
-
(B) Paragraphs
-
(C) Sentences
-
(D) Statements.
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.
-
(A) Start
-
(B) Rewrite
-
(C) Delete
-
(D) Update.
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.
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.