Computer Knowledge

Programming Languages and Compilers

2,284 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 web technology
  1. 2nd Generation Programming Language

  2. 3rd Generation Programming Language

  3. 4th Generation Programming Language

  4. 5th Generation Programming Language

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

IDEAL is a 4th Generation Programming Language (4GL) developed by Texas Instruments for application development on mainframes. 4GLs are designed to be more user-friendly and closer to natural language than 3GLs like COBOL. They provide higher-level abstractions and built-in functionality for common business tasks.

Multiple choice technology mainframe
  1. Basic Assembler Language

  2. Binary Assembly link

  3. Binary ASCII Language

  4. Bit Assembler Language

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

BAL stands for Basic Assembler Language, which is the assembly language used on IBM mainframe systems. It's a low-level programming language for system programming on IBM z/Architecture and earlier systems.

Multiple choice technology web 2.0
  1. Immediate language Assembler

  2. Immediate Dis-Assembler language

  3. Intermediate Language Dis-Assembler

  4. Intermediate De-Assembler language

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

ILDASM (Intermediate Language Disassembler) is a Microsoft tool that disassembles .NET assemblies into human-readable Intermediate Language (IL) code. It helps developers understand how high-level code compiles to IL.

Multiple choice technology
  1. Vim

  2. Perl

  3. Pico

  4. Vi

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

Perl is a programming language, not a text editor. Vim, Pico, and Vi are all text editors commonly used in Unix/Linux systems. Perl can be used to process text but is a scripting language first.

Multiple choice technology security
  1. Machine language

  2. Assembly level language

  3. Procedural language

  4. Non Procedural language

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

Assembly language uses mnemonics (human-readable abbreviations like MOV, ADD) and opcodes to represent machine instructions. Machine language (A) uses binary, while procedural (C) and non-procedural (D) languages are high-level paradigms.

Multiple choice technology programming languages
  1. Dictionary

  2. Comparative

  3. HashMap

  4. Treeset

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

To answer this question, the user needs to know about the concept of inheritance in object-oriented programming and the relationship between classes.

The super class of hash table is the Dictionary class.

Option A is correct because Dictionary is the superclass of Hashtable. In Java, the Hashtable class extends the Dictionary class to inherit its methods and properties.

Option B is incorrect because there is no superclass called Comparative for Hashtable or any other Java collection class.

Option C is incorrect because HashMap is not the superclass of Hashtable. Although both classes are used for mapping keys to values, they have different implementation details and are not related by inheritance.

Option D is incorrect because Treeset is also not the superclass of Hashtable. Treeset is a class that implements the Set interface and is used to store a sorted collection of unique elements.

Therefore, the correct answer is:

The Answer is: A

Multiple choice technology programming languages
  1. True

  2. False

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

WCF (Windows Communication Foundation) was designed specifically to provide a unified programming model that abstracts and encapsulates various distributed communication technologies. This includes MSMQ for queued messaging, .NET Remoting for cross-application communication, and ASMX for legacy XML web services - allowing developers to use a single framework instead of learning multiple technologies.

Multiple choice technology web technology
  1. ExecuteNonQuery

  2. ExecuteQuery

  3. ExecuteReader

  4. ExecuteScalar

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

Command object methods: ExecuteNonQuery (INSERT/UPDATE/DELETE, returns rows affected), ExecuteReader (returns DataReader for SELECT), ExecuteScalar (returns single value like COUNT/aggregate). ExecuteQuery does not exist in ADO.NET.

Multiple choice technology web technology
  1. <FORM METHOD="POST|GET" ACTION="application_URI/JSP_URL"></FORM>

  2. <FORM METHOD="POST|GET" ACTION="application_SERVLET/JSP_URL"></FORM>

  3. <FORM METHOD="POST|GET" ACTION="application_URI/SERVLET_URL"></FORM>

  4. <FORM METHOD="POST|GET" ACTION="application_SERVLET_URI/JSP_URL"></FORM>

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

In standard Java web applications, servlets are mapped using URIs in the deployment descriptor or annotations, typically formatted as application_URI/SERVLET_URL within HTML form action attributes. This correctly routes the form submission to the appropriate server-side servlet component.

Multiple choice technology operating systems
  1. Single quote

  2. front slash

  3. full stop

  4. back slash

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

A backslash () at the end of a line acts as a line continuation character, allowing a command to span multiple lines. Single quotes start/end a quoted string, front slash is path separator, and full stop ends a sentence or denotes current directory.

Multiple choice technology operating systems
  1. back slash

  2. Single quote

  3. full stop (dot)

  4. frontslash

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

In shell scripting, the backslash () is the line continuation character. When placed at the end of a line, it escapes the newline character, allowing the command to continue on the next line. This is essential for writing long, readable multi-line commands or scripts.