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
C
Correct answer
Explanation
Rational Robot (not Ratiional) uses SQA Basic scripting language, a variant of BASIC. PERL is a different language, TSL is for WinRunner, VB is Visual Basic. Note: question has typo 'Ratiional'.
-
Low Level Language
-
Assembly Language
-
High level Language
-
Any of the above
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.
-
HashMap
-
ArrayList
-
Stack
-
Queue
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.
-
Inline RuLes
-
Ilog Rule Language
-
Inline Rule Language
-
None of the above
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.
-
Display
-
Print
-
Say
-
Display and Say
C
Correct answer
Explanation
In REXX, the SAY instruction is used to display or print a line of text to the standard output stream.
B
Correct answer
Explanation
In REXX, the LEAVE instruction immediately terminates execution of a DO loop and transfers control to the statement following the corresponding END clause.
B
Correct answer
Explanation
The REXX instruction used to reset variables to their uninitialized state is DROP, not BYE. BYE is not a valid REXX instruction for this purpose.
-
EXIT
-
RETURN
-
ITERATE
-
SIGNAL
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.
B
Correct answer
Explanation
In REXX, when a command executes successfully without errors, the special variable RC (Return Code) is set to 0, not TRUE (which is represented by 1 in REXX).
-
ArrayList
-
NameValue Collection
-
StringCollection
-
HashTable
D
Correct answer
Explanation
HashTable stores key-value pairs and allows retrieval by unique key. ArrayList is index-based, StringCollection is string-specific, and NameValueCollection exists but isn't the primary key-access collection.
-
session.clear()
-
session.dispose()
-
Session.Abandon
-
None
C
Correct answer
Explanation
Session.Abandon() explicitly ends and cleans up the current user session. Session.Clear() empties session data but keeps the session alive, and Session.Dispose() isn't a standard session method.
-
Bottenbruch
-
Dennis Ritchie
-
McCarthy
-
Martin Richards
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.
-
W. A. Wulf
-
Martin Richards
-
D. B. Russell
-
A. N. Habermann
B
Correct answer
Explanation
BCPL (Basic Combined Programming Language) was designed by Martin Richards of the University of Cambridge in 1967. It was influential in the development of the B and C programming languages.
-
Guido van Rossum
-
Dennis Ritchie
-
James Gosling
-
Won Neuman
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.
-
No , we can't check the return code for internal sort however for external sort it can be done
-
YES,by using SORT-RETURN special register
-
YES, we can test via Run jcl.
-
YES,by checking in listing of the proram
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.