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 mainframe
  1. Numeric

  2. Alphabetic

  3. Alpha-numeric

  4. Numeric Edited

  5. 01-03

  6. ALL

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

COBOL supports various data categories including numeric, alphabetic, alphanumeric, and numeric-edited fields, which are defined using different PICTURE clause symbols. Since all these options represent valid data types in COBOL, the correct selection is 'ALL'.

Multiple choice technology mainframe
  1. Identification Division

  2. Environment Division

  3. Data Division

  4. Procedure Division

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

Only the Identification Division is mandatory in every COBOL program. It contains the program identifier and is required for compilation. Environment, Data, and Procedure Divisions may be omitted in minimal programs.

Multiple choice technology mainframe
  1. Identification Division

  2. Environment Division

  3. Data Division

  4. Procedure Division

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

Only the Identification Division is mandatory in every COBOL program. It contains the program identifier and is required for compilation. Environment, Data, and Procedure Divisions may be omitted in minimal programs.

Multiple choice technology web technology
  1. Programming Language

  2. Debugging Tool

  3. Framework

  4. None of above

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

Symfony is a popular, open-source PHP web application framework containing reusable PHP libraries and components. It is not a standalone programming language (it uses PHP) or a dedicated debugging tool, making framework the correct designation.

Multiple choice technology web technology
  1. Yet Another Marketing Language

  2. YAML Ain't Markup Language

  3. YAML HyperProcessor Text

  4. None of above

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

YAML is a recursive acronym that stands for 'YAML Ain't Markup Language'. It was originally meaning 'Yet Another Markup Language' but was changed to emphasize that it's data-oriented, not a markup language like HTML or XML. Option A is close but 'Marketing' is incorrect.

Multiple choice technology web technology
  1. C++

  2. Java

  3. PHP

  4. none of above

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

Symfony is a web application framework written in PHP. It was created by Fabien Potencier and is one of the most popular PHP frameworks for building web applications, used by many large-scale projects.

Multiple choice technology programming languages
  1. mark up

  2. object based

  3. content based

  4. general purpose

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

PHP is a general-purpose scripting language designed for web development. While originally created for dynamic web pages, it has evolved into a versatile language used for command-line scripting, GUI applications, and various other purposes beyond web development.

Multiple choice technology web technology
  1. a computer Language

  2. is a technology

  3. is optimizer which makes website load faster

  4. is a server side language

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

AJAX is a web development technique for creating interactive web applications. It uses existing technologies like JavaScript and XMLHTTPRequest to asynchronously exchange data with a server, updating parts of a page without full reloads.

Multiple choice technology programming languages
  1. a-i,b-iii,c-iv,d-ii

  2. a-ii,b-i,c-iv,d-iii

  3. a-iii,b-i,c-ii,d-iv

  4. a-i,b-iv-c-ii,d-iii

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

The correct matching is: Android uses Java, BlackBerry uses Java (RIM APIs), iPhone uses Objective-C, and BREW uses C. Option A correctly pairs these: a(Android)-i(Java), b(BlackBerry)-iii(Java RIM), c(iPhone)-iv(Objective C), d(BREW)-ii(C).

Multiple choice technology programming languages
  1. a-i,b-iii,c-iv,d-ii

  2. a-ii,b-i,c-iv,d-iii

  3. a-iii,b-i,c-ii,d-iv

  4. a-i,b-iv-c-ii,d-iii

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

Android applications are primarily written in Java (option i), Blackberry classic apps use Java with RIM APIs (option iii), iOS (iPhone) apps traditionally used Objective-C (option iv), and BREW development uses C/C++ (option ii). This matches the mapping a-i, b-iii, c-iv, d-ii.

Multiple choice technology programming languages
  1. a-i,b-iii,c-iv,d-ii

  2. a-ii,b-i,c-iv,d-iii

  3. a-iii,b-i,c-ii,d-iv

  4. a-i,b-iv-c-ii,d-iii

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

Android applications are primarily written in Java. BlackBerry historically used Java with RIM-specific APIs. iPhone (iOS) applications originally used Objective-C before Swift. BREW (Binary Runtime Environment for Wireless) applications use C/C++.

Multiple choice technology
  1. java

  2. oracle

  3. .net

  4. c

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

C is considered a middle-level language because it combines high-level language features (structured programming, abstractions) with low-level capabilities (direct memory manipulation, bit-level operations, pointer arithmetic). Java is purely high-level with extensive abstraction. Oracle is a database management system, not a language. .NET is a framework, not a language.

Multiple choice technology platforms and products
  1. C# 4.0

  2. J# 4.0

  3. F#

  4. Jscript

  5. Jquery

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

F# is a functional-first programming language that supports functional programming paradigms alongside traditional object-oriented and imperative styles. It was introduced to the .NET platform in Visual Studio 2010. C# 4.0 is an evolution of C# (not a 'new' functional language), J# is deprecated, JScript is a scripting language, and jQuery is a JavaScript library, not a .NET language.

Multiple choice technology web technology
  1. Framework

  2. Language

  3. Compiler

  4. Specification

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

Java EE (now Jakarta EE) is a specification that defines APIs and standards for enterprise Java development, not a framework, language, or compiler itself. Vendors like Oracle, Eclipse, and Apache implement these specifications in products like GlassFish, JBoss, and TomEE. Java itself is the programming language, while Java EE builds upon it with enterprise services.