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 databases
  1. <hibernate-mapping> element

  2. <mapping-hibernate> element

  3. <hibernate-mapping-source> element

  4. <hibernate-mapping-object> element

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

In Hibernate XML mapping files (.hbm.xml), the root element is . All class, property, and other mapping definitions are nested within this element. The other options are not valid Hibernate mapping elements.

Multiple choice technology web 2.0
  1. Scripting is separated from the HTML, Code is interpreted seperately

  2. Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

  3. Code is separated from the HTML and interpreted Code is interpreted separately

  4. No difference

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

ASP.NET separates server-side code from HTML and compiles it into DLLs that execute on the server, while classic ASP interprets code at runtime without compilation. This compiled architecture provides significantly better performance and type safety. The DLL-based execution is a fundamental improvement over classic ASP's interpreted model.

Multiple choice technology web 2.0
  1. .asmx

  2. .asp

  3. .aspx

  4. .ascx

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

ASP.NET user controls use the .ascx file extension, which distinguishes them from regular .aspx pages and other web file types. User controls are reusable components that can be embedded across multiple pages. The .asmx extension is for web services, .asp is for classic ASP, and .aspx is for standard ASP.NET pages.

Multiple choice technology testing
  1. code

  2. Debug

  3. Defect

  4. Failure

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

Code refers to computer instructions and data definitions expressed in a programming language or output by translators like compilers. Debug is the process of finding faults. A defect is a flaw in the code. A failure is the observable incorrect behavior. Option A matches the definition given.

Multiple choice technology programming languages
  1. PROLOG

  2. PYTHON

  3. PASCAL

  4. PERL

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

The code shows Prolog's fact/rule syntax using ':-' (horn clause operator). 'hello_world :- write('Hello World!')' defines a rule that succeeds when 'hello_world' is called and executes 'write'. This is unmistakably Prolog.