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 java
  1. class, if, void, long, Int, continue

  2. goto, instanceof, native, finally, default, throws

  3. try, virtual, throw, final, volatile, transient

  4. strictfp, constant, super, implements, do

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

All the words in option B are among the 49 Java keywords. Although goto reserved as a keyword in Java, goto is not used and has no function.Option A is wrong because the keyword for the primitive int starts with a lowercase i.Option C is wrong because "vi

Multiple choice .net
  1. VB.NET

  2. VB 6

  3. C++

  4. C#

  5. Java

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

To determine the language that is not a true object-oriented programming language, we need to understand the concept of object-oriented programming and the characteristics that define it.

Object-oriented programming (OOP) is a programming paradigm that uses objects, which are instances of classes, to represent and manipulate data. Key features of OOP include encapsulation, inheritance, and polymorphism.

Now let's go through each option and determine if it is a true object-oriented programming language:

A. VB.NET: VB.NET is a true object-oriented programming language. It is an evolution of Visual Basic and fully supports OOP concepts.

B. VB 6: VB 6, also known as Visual Basic 6, is not a true object-oriented programming language. While it has some object-oriented features, such as support for classes and objects, it lacks full support for OOP concepts like inheritance and polymorphism.

C. C++: C++ is a true object-oriented programming language. It supports all the key features of OOP, including encapsulation, inheritance, and polymorphism.

D. C#: C# is a true object-oriented programming language. It was specifically designed for the Microsoft .NET framework and fully supports OOP concepts.

E. Java: Java is a true object-oriented programming language. It was designed to be purely object-oriented and supports all the key features of OOP.

Based on the explanations above, the language that is not a true object-oriented programming language is:

B. VB 6

The Answer is: B

Multiple choice .net
  1. Visual Basic

  2. C#

  3. C++

  4. Both a and b.

  5. All of the above.

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

ASP.NET is a language-agnostic framework. Developers can write the code-behind files using C#, Visual Basic, or even C++/CLI. Since all these languages are supported by the .NET runtime, 'All of the above' is the correct choice.

Multiple choice asp
  1. ASP

  2. JavaScript

  3. VBScript

  4. C++

  5. Perl

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

VBScript (Visual Basic Script) was the default and most commonly used scripting language for classic ASP. While ASP could also use JavaScript (JScript), VBScript was the primary language in most ASP documentation and examples. This was because VBScript integrated seamlessly with Microsoft's server architecture and was familiar to Visual Basic developers.

Multiple choice .net asp
  1. C-sharp

  2. VB

  3. C++

  4. a and b

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

ASP.NET supports multiple languages for server-side scripting. C# (C-sharp) and VB.NET (Visual Basic) are the two primary languages supported in ASP.NET. Option D states 'a and b' which correctly identifies both C# and VB as valid choices. C++ is not a native ASP.NET server-side language (though C++/CLI exists, it's not standard for ASP.NET development).

Multiple choice computer
  1. Brewed delicious coffee.

  2. Operated as a handheld remote control.

  3. Connected a toaster to the Internet.

  4. Calculated spreadsheets in a palmtop computer.

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

Java was originally developed by James Gosling at Sun Microsystems as part of the 'Green Project.' Its first practical application was for the Star7, a handheld personal digital assistant (PDA) with a touchscreen that functioned as an advanced remote control.

Multiple choice javascript
  1. Events

  2. Classes

  3. Objects

  4. DLL

  5. Components

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

JavaScript programs are event-driven, meaning they respond to user actions like clicks, keystrokes, and page loads. The core execution model is based on event handlers and callbacks rather than classes, DLLs, or traditional component architectures.

Multiple choice javascript
  1. It is based on object creation

  2. It focuses on component building

  3. It focuses on logic flow

  4. It emphasis on SCRIPTING

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

JavaScript is primarily a client-side scripting language designed for web browsers, hence its emphasis on SCRIPTING. Unlike compiled languages focused on object creation or component building, JavaScript's main purpose is adding interactivity to web pages through scripts.

Multiple choice perl
  1. True

  2. False

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

CGI (Common Gateway Interface) is NOT a programming language - it's a protocol or standard for web servers to execute external programs and generate dynamic web content. CGI programs can be written in Perl, Python, C, or any other language that the server supports. The interface itself is language-agnostic.

Multiple choice web-design
  1. It is a programming language

  2. It has full access to the Windows operating system

  3. It is a set of rules for how applications should share information

  4. It is riskier than Java applets in terms of security

  5. Either BCD

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

ActiveX is a framework for defining reusable software components. Unlike Java's sandbox, ActiveX controls have full access to the Windows OS, making them significantly riskier. The option 'Either BCD' correctly groups these defining characteristics of the technology.

Multiple choice java core java
  1. 1.Robust

  2. 2.Procedural

  3. 3.Distributed

  4. 4.Multithreaded

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

Java is an Object-Oriented language, not a procedural one. Its core characteristics include being Robust (strong memory management), Distributed (RMI/EJB), and Multithreaded (built-in support for concurrent execution). Procedural programming focuses on functions and sequences, which contrasts with Java's class-based structure.

Multiple choice script datastage
  1. Shell Script

  2. OSH

  3. Scriptella

  4. All the above

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

OSH (Orchestrate SHell) is the internal scripting language of the IBM DataStage Engine (now IBM InfoSphere DataStage). DataStage uses OSH scripts to orchestrate data processing jobs at the engine level. Shell Script is a generic Unix shell scripting language. Scriptella is an open-source ETL scripting tool, not specific to DataStage. OSH is proprietary to DataStage and is what the engine uses internally for job orchestration and execution.

Multiple choice jcl
  1. JCL is not procedural language

  2. Abbreviation: Job Control Language

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

JCL stands for Job Control Language. It is used on mainframe systems to instruct the system on how to run a batch job. It is considered a scripting or control language rather than a procedural programming language like COBOL or C. Both provided options are technically correct descriptions.