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. Low Level Language

  2. Assembly Language

  3. High level Language

  4. Any of the above

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

JAXB is a high-level API that works with Java Objects, unlike low-level parsers that work directly with bytes or assembly-like instructions. It provides an abstraction layer above the raw XML parsing.

Multiple choice technology programming languages
  1. HashMap

  2. ArrayList

  3. Stack

  4. Queue

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

HashMap does not guarantee any specific order of elements, and the order can change over time due to rehashing when the map resizes or when bucket chains are reorganized. ArrayList preserves insertion order, Stack maintains LIFO order, and Queue implementations follow FIFO order consistently.

Multiple choice technology
  1. Inline RuLes

  2. Ilog Rule Language

  3. Inline Rule Language

  4. None of the above

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

IRL stands for Ilog Rule Language, which is a rule language used in business rule management systems. 'Inline RuLes' and 'Inline Rule Language' are incorrect expansions.

Multiple choice technology mainframe
  1. EXIT

  2. RETURN

  3. ITERATE

  4. SIGNAL

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

In REXX, the RETURN instruction is used to exit a subroutine or function and return control to the caller. EXIT terminates the entire program, ITERATE continues a loop iteration, and SIGNAL transfers control to a labeled statement. RETURN is specifically designed for subroutine/function exit.

Multiple choice technology programming languages
  1. Bottenbruch

  2. Dennis Ritchie

  3. McCarthy

  4. Martin Richards

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

Dennis Ritchie developed the C programming language at Bell Labs in the early 1970s. C was created for system programming on the Unix operating system and has influenced many subsequent languages including C++, Java, and Python.

Multiple choice technology programming languages
  1. Guido van Rossum

  2. Dennis Ritchie

  3. James Gosling

  4. Won Neuman

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

Oak was the original name for the Java programming language, developed by James Gosling at Sun Microsystems in the early 1990s. The name was later changed to Java because Oak was already trademarked. Java was designed to be platform-independent and object-oriented.

Multiple choice technology mainframe
  1. No , we can't check the return code for internal sort however for external sort it can be done

  2. YES,by using SORT-RETURN special register

  3. YES, we can test via Run jcl.

  4. YES,by checking in listing of the proram

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

SORT-RETURN is a special register in COBOL that automatically contains the return code from SORT or MERGE operations. After an internal SORT completes, check SORT-RETURN to determine if the operation succeeded (typically 0) or failed (non-zero). External sorts also set this register, contrary to option A's claim.