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 programming languages
  1. This means that the ResultSet is insensitive to scrolling

  2. This means that the Resultset is sensitive to scrolling, but insensitive to updates, i.e. not

  3. This means that the ResultSet is sensitive to scrolling, but insensitive to changes made by others

  4. The meaning depends on the type of data source, and the type and version of the driver you use with this data source

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

In JDBC, ResultSet.TYPE_SCROLL_INSENSITIVE indicates a scrollable result set that is not sensitive to changes made by others while it is open. Distractors confuse general scrolling ability with sensitivity to modifications.

Multiple choice technology packaged enterprise solutions
  1. clfy:menuitem, clarifyMenu.tld

  2. clfy:menu , clarify.tld

  3. clfy:menu, clarifyMenu.tld

  4. Clfy:menu, clarify.tld

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

The ClfyMenu custom tag in Clarify JSPs uses the 'clfy:menu' tag syntax and is defined in the clarify.tld (Tag Library Descriptor) file. Options A and C incorrectly use 'clarifyMenu.tld' while D has incorrect capitalization 'Clfy:menu' instead of 'clfy:menu'.

Multiple choice technology mainframe
  1. High Level Language

  2. Low Level Language

  3. Mid Level Language

  4. None of the Above

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

Assembly language is classified as a low-level language because it provides minimal abstraction from the computer's instruction set architecture. Unlike high-level languages which use human-readable syntax and complex abstractions, assembly language uses mnemonic codes that directly correspond to machine instructions, requiring programmers to manage hardware details like registers and memory addresses.

Multiple choice technology mainframe
  1. Interpretor

  2. Compiler

  3. Assembler

  4. None of the above

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

An assembler is the specialized program that translates assembly language mnemonics into machine code. Unlike compilers which work with high-level languages, or interpreters which execute code line-by-line, assemblers perform a direct one-to-one conversion of assembly instructions to their binary machine code equivalents.

Multiple choice technology mainframe
  1. Duomorphic

  2. Isomorphic

  3. Trimorphic

  4. Translate

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

Assembler translation is isomorphic because there is a one-to-one correspondence between assembly language mnemonics and machine instructions. Each assembly statement typically maps to exactly one machine instruction, maintaining a direct structural relationship between the source code and the output.

Multiple choice technology programming languages
  1. PreparedStatement

  2. ) ParameterizedStatement

  3. ) ParameterizedStatement and CallableStatement

  4. All the above

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

PreparedStatement is the standard JDBC class that supports parameter placeholders ( ? ) and lets you set values before execution. CallableStatement is used for stored procedures, which also accept parameters, but the question asks for a type that can execute parameterized queries, and the only universally correct choice listed is PreparedStatement. The other options refer to non‑existent classes, so the stored answer is right.

Multiple choice technology web technology
  1. TLDs

  2. DDLs

  3. Web-inf

  4. Meta-Inf

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

Standard JSP custom tag libraries use TLD (Tag Library Descriptor) files, typically stored in WEB-INF or META-INF. The question mentions non-standard 'ps:' tags, but if this is a standard JSP question about TLD files, option A is correct. However, 'ps:' is not a standard JSP tag prefix.

Multiple choice technology mainframe
  1. 01-49, 66

  2. 01-49,77

  3. 01-49,66,77,88

  4. 01-49

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

In COBOL, standard record level numbers range from 01 to 49, with 01 being the highest (most major) and 49 being elementary items. Levels 66 (RENAMES), 77 (independent elementary items), and 88 (condition names) are special-purpose levels with specific functions outside the regular 01-49 hierarchy. Option A and B are incomplete, C includes special levels incorrectly.

Multiple choice technology mainframe
  1. True

  2. False

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

REXX programs can indeed be compiled using a REXX compiler for improved performance and code protection. While REXX is traditionally an interpreted language, compilers exist that translate REXX source to executable form. The statement is accurate - REXX supports both interpreted and compiled execution models.

Multiple choice technology programming languages
  1. <!-- - - >

  2. <%-- --%>

  3. </* */>

  4. //

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

JSP comments are written using the &lt;%-- --%&gt; syntax, which prevents the commented content from being compiled or sent to the client. The `syntax creates HTML comments, which are sent to the client, while//and/* */` are Java/JavaScript style comments.

Multiple choice technology programming languages
  1. Declaration

  2. Scriplets

  3. Expressions

  4. All the above

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

JSP has three main scripting elements: Declaration (<%! ... %>) for declaring variables or methods, Scriptlets (<% ... %>) for embedding Java code, and Expressions (<%= ... %>) for outputting values. All three are fundamental JSP scripting elements, making 'All the above' the correct answer.

Multiple choice technology programming languages
  1. Presentation Tag

  2. JSP standard Tag

  3. Custom tags

  4. All the above

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

JSP supports multiple tag types: Presentation tags (for formatting and display), JSP Standard Tag Library (JSTL) tags for common tasks, and Custom tags defined by developers. All three categories are valid JSP tag types, making 'All the above' correct.