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
-
Numeric
-
Alphabetic
-
Alpha-numeric
-
Numeric Edited
-
01-03
-
ALL
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'.
-
Identification Division
-
Environment Division
-
Data Division
-
Procedure Division
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.
-
Identification Division
-
Environment Division
-
Data Division
-
Procedure Division
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.
-
Programming Language
-
Debugging Tool
-
Framework
-
None of above
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.
-
Yet Another Marketing Language
-
YAML Ain't Markup Language
-
YAML HyperProcessor Text
-
None of above
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.
-
C++
-
Java
-
PHP
-
none of above
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.
-
mark up
-
object based
-
content based
-
general purpose
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.
-
a computer Language
-
is a technology
-
is optimizer which makes website load faster
-
is a server side language
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.
-
a-i,b-iii,c-iv,d-ii
-
a-ii,b-i,c-iv,d-iii
-
a-iii,b-i,c-ii,d-iv
-
a-i,b-iv-c-ii,d-iii
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).
-
a-i,b-iii,c-iv,d-ii
-
a-ii,b-i,c-iv,d-iii
-
a-iii,b-i,c-ii,d-iv
-
a-i,b-iv-c-ii,d-iii
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.
-
a-i,b-iii,c-iv,d-ii
-
a-ii,b-i,c-iv,d-iii
-
a-iii,b-i,c-ii,d-iv
-
a-i,b-iv-c-ii,d-iii
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++.
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.
-
C# 4.0
-
J# 4.0
-
F#
-
Jscript
-
Jquery
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.
-
Framework
-
Language
-
Compiler
-
Specification
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.