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. eScript(Same as Java Script)

  2. VB Script

  3. Shell Script

  4. Option 1 & 2 both

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

Siebel applications support both eScript (JavaScript-based scripting language) and VBScript for scripting and customization. Developers can choose either language based on requirements and expertise, making both valid scripting options in the Siebel environment.

Multiple choice technology programming languages
  1. True

  2. False

  3. Neither true nor false

  4. No idea

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

In Java, all variables declared in an interface are implicitly public, static, and final - they are constants by design. Abstract classes, however, can contain both final constants and non-final instance variables, giving them more flexibility. The statement correctly captures this distinction.

Multiple choice technology databases
  1. Cursor is a named Private SQL area

  2. Cursor holds temporary results

  3. Cursor is used for retrieving multiple rows

  4. SQL uses implicit Cursors to retrieve rows

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

A cursor IS a named private SQL area that holds temporary results and IS used for retrieving multiple rows. Option B claims it's 'not correct' to say a cursor holds temporary results, which is false - that's precisely what a cursor does.

Multiple choice technology databases
  1. They indicate an optimized execution plan.

  2. They may be able to be tuned to use an index

  3. The full-table scan should be normalized from the database design

  4. A full-table scan is always sub-optimal.

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

Full-table scans on large tables read every row, which is expensive. Identifying these scans is critical because they can often be optimized by creating or using appropriate indexes. Indexes allow the database to read only relevant rows instead of scanning the entire table.

Multiple choice technology programming languages
  1. PROCEDURE DIVISION, DATA DIVISION, ENVIRONMENT DIVISION

  2. PROCEDURE DIVISION, FILE-CONTROL, INPUT-OUTPUT

  3. ENVIRONMENT DIVISION, IDENTIFICATION DIVISION, WORKING-STORAGE SECTION

  4. WORKING-STORAGE SECTION, DATA DIVISION, FILE SECTION

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

COBOL inherited its four-division structure (IDENTIFICATION, ENVIRONMENT, DATA, and PROCEDURE) from FLOW-MATIC. Option A correctly lists three of these core divisions - the procedural, data definition, and environment setup divisions.

Multiple choice technology programming languages
  1. FORTRAN

  2. COMPTRAN

  3. FLOW MATIC

  4. PASCAL

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

The PICTURE clause (for data formatting and editing) in COBOL was borrowed from COMTRAN (Commercial Translator), not from FLOW-MATIC, FORTRAN, or Pascal. COMTRAN was an IBM business language that contributed this data description feature.

Multiple choice technology programming languages
  1. Common Business Oriented Language

  2. Common Business Language

  3. Business Oriented Language

  4. Business Language

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

When the CODASYL committee first named the language in 1959, they called it 'Common Business Language' (CBL). It was later renamed to COBOL (Common Business Oriented Language). Option B reflects this original name.