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
B
Correct answer
Explanation
WRITE(,) is the FORTRAN syntax for output to standard output. ALGOL uses different structure, COBRA is not a standard language name (likely COBOL), and IDL has different syntax.
D
Correct answer
Explanation
QTP (QuickTest Professional, now UFT) uses VBScript as its scripting language. 'VB' is correct as it refers to VBScript. TSL is for WinRunner, SQA Basic is for SQA Robot, and PERL is unrelated.
A
Correct answer
Explanation
Ruby's reference implementation (MRI) is written in C. This allows Ruby to be portable and performant. Other implementations exist (JRuby in Java, IronRuby in C#), but the core Ruby interpreter is C-based.
C
Correct answer
Explanation
Ruby on Rails is a web framework written in Ruby. Rails leverages Ruby's metaprogramming capabilities and follows Ruby conventions - it cannot be written in Java, C, or COBOL as it depends on Ruby's language features.
-
It is a Programming Language
-
Its is a frame work
-
Its is a tool
-
None of the above
A
Correct answer
Explanation
Ruby is a dynamic, object-oriented programming language created by Yukihiro Matsumoto. It emphasizes simplicity and productivity, with an elegant syntax that is natural to read and easy to write. Ruby on Rails is a framework built using Ruby, not the language itself.
-
It is a Programming Language
-
Its is a frame work
-
Its is a tool
-
None of the above
B
Correct answer
Explanation
Rails is a web application framework written in Ruby. It provides structure for database, web service, and web page development. A programming language (A) is what you write code IN, not what gives you web scaffolding.
A
Correct answer
Explanation
Ruby's reference implementation (MRI) is written in C. This allows Ruby to run on any platform with a C compiler. Java, C#, and COBOL are not the implementation language of Ruby.
C
Correct answer
Explanation
Rails is written in Ruby itself (a 'self-hosting' framework). The Rails codebase is pure Ruby, which contributes to its expressiveness and developer productivity.
-
It is a Programming Language
-
Its is a frame work
-
Its is a tool
-
None of the above
A
Correct answer
Explanation
Ruby is a general-purpose, object-oriented programming language. It can be used for web development, scripting, data processing, and more. A framework (B) provides structure for specific types of applications.
-
It is a Programming Language
-
Its is a frame work
-
Its is a tool
-
None of the above
B
Correct answer
Explanation
Rails is a web application framework that provides structure for building database-backed web applications. It is not a programming language (A) - you write Ruby code that uses the Rails framework.
C
Correct answer
Explanation
Rational Robot (not Ratiional) uses SQA Basic scripting language, a variant of BASIC. PERL is a different language, TSL is for WinRunner, VB is Visual Basic. Note: question has typo 'Ratiional'.
-
Low Level Language
-
Assembly Language
-
High level Language
-
Any of the above
C
Correct answer
Explanation
JAXB is a high-level API that works with Java Objects, unlike low-level parsers that work directly with bytes or assembly-like instructions. It provides an abstraction layer above the raw XML parsing.
-
Inline RuLes
-
Ilog Rule Language
-
Inline Rule Language
-
None of the above
B
Correct answer
Explanation
IRL stands for Ilog Rule Language, which is a rule language used in business rule management systems. 'Inline RuLes' and 'Inline Rule Language' are incorrect expansions.