Computer Knowledge

Programming Languages and Compilers

1,170 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. ActionScript

  2. AppleScript

  3. PostScript

  4. VBScript

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

ActionScript is a dialect of ECMAScript, the standardized scripting language specification. JavaScript is the most well-known ECMAScript implementation, but ActionScript (used in Adobe Flash) was also built on the ECMAScript standard. The other options are not ECMAScript dialects: AppleScript is Apple's native scripting language, PostScript is a page description language, and VBScript is Microsoft's Visual Basic scripting language.

Multiple choice technology programming languages
  1. Pascal

  2. Java

  3. Forth

  4. Python

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

Forth, created by Chuck Moore in 1970, generates threaded code as its primary execution model. Threaded code is a technique where code consists of addresses of subroutines, making Forth distinct among languages for this characteristic.

Multiple choice technology programming languages
  1. Because Ruby forces object orientation and does not permit procedural or functional style code

  2. Because Ruby makes no distinction between objects and primitive types

  3. Because Ruby's syntax is similar to that of Perl

  4. Because Ruby programmers are full of themselves

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

Ruby is considered 'purely' object-oriented because it has no primitive types - everything, including integers, booleans, and nil, are objects. Java and C++ distinguish between objects and primitives (int, char, bool, etc.), making them less 'pure' in OOP terms.

Multiple choice technology programming languages
  1. He was co-creator of the Unix operating system

  2. He was co-creator of AWK a programming language for text processing

  3. He was co-creator of the C programming language

  4. He was co-inventor of the concept of object-oriented programming

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

Brian Kernighan is best known as the co-creator of AWK (with Aho and Weinberger), a domain-specific programming language for text processing. He also co-authored 'The C Programming Language' with Dennis Ritchie but did not create C itself or Unix.

Multiple choice technology programming languages
  1. PostScript

  2. BASIC

  3. C#

  4. SQL

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

SQL (Structured Query Language) in its standard form is not Turing-complete - it's a query language designed for data manipulation and retrieval. While modern SQL dialects have added procedural extensions, core SQL lacks the control structures and recursion needed for Turing completeness.

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. 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.