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
EXCPT (Exception Output) in RPG is specifically designed to update only selected fields on a record when certain conditions are met, rather than writing entire records. EXFMT writes formatted display records, UPDAT is not a valid RPG operation code, and WRITE creates new records rather than updating existing ones.
-
To creates object instances of a COBOL or Java class or invokes a method defined in a COBOL or Java class
-
To creates object instances of a COBOL or ORACLE class or invokes a method defined in a COBOL or ORACLE class
-
To creates object instances of a COBOL or UNIX class or invokes a method defined in a COBOL or UNIX class
-
Invalid Syntax
A
Correct answer
Explanation
The INVOKE statement in COBOL is used to create object instances of COBOL or Java classes and to invoke methods defined in those classes. It's part of COBOL's object-oriented extensions that enable interoperability with Java and COBOL objects.
B
Correct answer
Explanation
The statement is false because you cannot directly call Oracle database through ADO (ActiveX Data Objects) without proper Oracle-specific OLE DB providers or ODBC drivers. ADO is a data access technology, but connecting to Oracle specifically requires Oracle's data access components like MSDAORA (Microsoft OLE DB Provider for Oracle) or Oracle's own ODBC drivers.
-
Vbrun300.dll
-
VB6IDE.DLL
-
VBSCC.DLL
-
Vbrun6.dll
A
Correct answer
Explanation
Vbrun300.dll is the Visual Basic 3.0 runtime library required to run VB3 applications on systems that don't have Visual Basic installed. This DLL contains the core runtime functions needed for VB3 programs to execute properly on end-user machines.
-
Set UseMnemonic property to True
-
Set DragMode property to 1
-
Set LinkMode property to 1
-
Put & in the lebel caption
A,D
Correct answer
Explanation
To create a shortcut key for a label in Visual Basic, you need to enable mnemonic processing and use the ampersand (&) character in the caption. Setting UseMnemonic to True allows the control to interpret & as a shortcut indicator, and placing & before a letter (like &File) makes that letter the shortcut key. The DragMode and LinkMode properties are unrelated to keyboard shortcuts.
-
architecture neutral and portable
-
interpreted, threaded, and static
-
robust and secure
-
simple, object oriented, and familiar
A,C,D
Correct answer
Explanation
Java was designed to be architecture-neutral (write once, run anywhere), simple and object-oriented for easier adoption, and robust/secure for reliable applications. These were among the primary design goals stated by Java's creators to improve upon C++.
C
Correct answer
Explanation
A COBOL program consists of four divisions: Identification, Environment, Data, and Procedure Divisions. Each division has a specific purpose and must appear in this order.
-
No difference
-
1
-
2
-
Cannot be determined
C
Correct answer
Explanation
The claimed answer (99999 elements) appears to be a specific platform limit, though this is not a standard iProcess specification that can be verified from general knowledge. Array field limits are typically platform- and version-specific. This number might be correct for a specific iProcess version, but without authoritative documentation, this should be verified against official TIBCO iProcess documentation.
-
vbscript
-
macro
-
JavaScript
-
Perl
B
Correct answer
Explanation
A macro language is a programming language built directly into software applications (like VBA in Microsoft Word) to automate repetitive tasks and extend application functionality.
D
Correct answer
Explanation
PASCAL, C++, and JAVA are all well-known programming languages. APPLE is a company name (and a brand of computers/phones), not a programming language. While Apple has created programming languages (Swift), APPLE itself is not a language name.
-
same as Java
-
kind of like Java
-
different than Java
-
written part of Java
C
Correct answer
Explanation
JavaScript is a completely different language from Java with different syntax, purpose, and implementation - they share only marketing names, not technical heritage. Options A, B, and D incorrectly suggest a relationship with Java.
-
subjective
-
objective
-
evil
-
object based
D
Correct answer
Explanation
JavaScript is an object-based language where everything revolves around objects, though it uses prototype-based inheritance rather than class-based inheritance. Options A, B, and C are not valid programming paradigm descriptions for JavaScript.
-
Precede it with two forward slashes, i.e. '//'
-
Precede it with an asterisk and a forward slash, i.e. '*/'
-
Precede it with an asterisk, i.e. '*'
-
Precede it with a forward slash and an asterisk, i.e. '/*'
A
Correct answer
Explanation
Single-line comments in JavaScript use // at the beginning of the line. Option D shows the opening of multi-line comments (/), Option B shows the closing of multi-line comments (/), and Option C shows just an asterisk used for other purposes.
-
same as Java
-
kind of like Java
-
different than Java
-
written part of Java
C
Correct answer
Explanation
JavaScript is a completely different language from Java, despite the similar name. JavaScript was originally named Mocha, then LiveScript, before being renamed as a marketing tactic to ride Java's popularity. Java is a statically-typed, compiled language while JavaScript is dynamically-typed and interpreted.