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. $get
  2. $ask
  3. $request
  4. $post
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

\$ask is not a predefined variable in PHP. PHP has several predefined superglobal variables (automatically available in all scopes): \$_GET, $_POST, $_REQUEST, $_SERVER, $_FILES, $_COOKIE, $_SESSION, $_ENV, and $GLOBALS. The question uses lowercase $get, $post, \$request which are technically not the correct superglobal names (should be \$_GET, $_POST, $_REQUEST), but $ask is definitely not a predefined PHP variable in any form.

Multiple choice technology programming languages
  1. c#

  2. VB

  3. C++

  4. A & B

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

ASP.NET supports multiple languages for server-side scripting through the .NET Framework language interoperability. The primary languages are C# (c#) and VB.NET (VB - referring to Visual Basic .NET). C++ is NOT typically used for ASP.NET server-side scripting (managed C++ exists but is not a standard ASP.NET language option). Therefore 'A & B' (both C# and VB) is correct.

Multiple choice technology programming languages
  1. Session object

  2. Application object

  3. View state

  4. All of the above

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

ASP.NET provides multiple state management mechanisms for different scopes and lifecycles. Session object maintains user-specific data across requests, Application object stores global data shared across all users, and ViewState preserves page-specific control values during postbacks. All three are valid state management techniques in ASP.NET applications.

Multiple choice technology web technology
  1. COmmon Business Oriented Language

  2. COmplete Business Oriented Language

  3. COmpletely Business Oriented Language

  4. COmmon Business Objective Language

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

COBOL stands for Common Business-Oriented Language, designed specifically for business applications. The 'Common' indicates it was meant to be widely shared across systems, not 'Complete' or 'Completely' as options B and C suggest. Option D incorrectly uses 'Objective' instead of 'Oriented.'

Multiple choice technology packaged enterprise solutions
  1. after

  2. before

  3. simutaneoulsy

  4. can't say

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

When a popup page is activated, the Activate PeopleCode for the popup page executes AFTER the page activate event for the main page has completed. This sequencing ensures the main page is fully processed before the popup logic runs.

Multiple choice technology packaged enterprise solutions
  1. To provide data security at the application level

  2. To insulate the ABAP/4 developer from the database

  3. To connect to the operating system

  4. to connect to kernel

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

The Data Dictionary in SAP ABAP provides data consistency and data security at the application level by enforcing data definitions, relationships, and constraints. It insulates ABAP developers from underlying database differences, handles the connection to the database (not OS or kernel directly), and ensures data integrity through centralized metadata management.

Multiple choice technology mainframe
  1. ENVIRONMENT SECTION

  2. LIBRARY SECTION

  3. ACTIVITY SECTION

  4. FILE SECTION

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

EasyTrieve does NOT have a FILE SECTION - that is specific to COBOL. EasyTrieve has ENVIRONMENT SECTION for system configuration, LIBRARY SECTION for defining fields and variables, and ACTIVITY SECTION for procedural logic. File handling in EasyTrieve is done differently than in COBOL.

Multiple choice technology mainframe
  1. JOB AND SORT

  2. JOB AND DEFINE

  3. SORT AND DEFINE

  4. FILE AND JOB

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

In CA Easytrieve, the ACTIVITY section contains JOB and SORT statements which define the processing activities of the program. Other terms like DEFINE or FILE are used in the library section, not the activity section. Thus, JOB AND SORT is the correct option.

Multiple choice technology mainframe
  1. JOB INPUT NULL

  2. JOB INPUT FILENAME

  3. JOB INPUT SQL

  4. ALL THE ABOVE

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

Easytrieve supports different input environments, allowing JOB INPUT FILENAME for standard file processing, JOB INPUT NULL for processing without an input file, and JOB INPUT SQL for database queries.