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
-
Machine language
-
Application software
-
System program
-
All of the above
A
Correct answer
Explanation
Machine language (binary code of 0s and 1s) is the only language computers can directly understand and execute. Application software and system programs are written in higher-level languages that must be translated to machine language first.
-
processing
-
kilobyte
-
binary
-
representational
C
Correct answer
Explanation
Computers use binary language (base-2) to process data, representing all information as sequences of 0s and 1s. Binary is the fundamental language of digital computers. 'Processing' and 'representational' are not languages, and 'kilobyte' is a unit of digital storage measurement, not a processing language.
-
Machine language
-
Application software
-
System program
-
All of the above
A
Correct answer
Explanation
Machine language (also called machine code) is the only language directly understood and executed by computers. It consists of binary instructions (0s and 1s) that the CPU can execute without translation. Application software and system programs are written in high-level languages that must be compiled or interpreted into machine language.
-
Alain Colmerauer
-
Nicklaus Wirth
-
Seymour Papert
-
John McCarthy
A
Correct answer
Explanation
Alain Colmerauer led the team that developed PROLOG at the University of Marseilles in 1972. PROLOG uses predicate calculus for symbolic logic and reasoning, making it fundamental to AI programming. Nicklaus Wirth created Pascal, Seymour Papert developed LOGO, and John McCarthy invented LISP.
-
AI
-
LISP
-
CL (Common Lisp)
-
both b and c
D
Correct answer
Explanation
To invoke a LISP system, you enter either 'LISP' for standard LISP implementations or 'CL' specifically for Common Lisp environments. Both commands are valid entry points to start programming in the LISP language family.
-
Interpreter
-
Compiler
-
Operating system
-
Assembler
C
Correct answer
Explanation
Operating system is the odd one out because it's system software that manages computer resources. Interpreter, compiler, and assembler are all language translators that convert code from one form to another.
-
Interpreter
-
Loader
-
Complier
-
Assembler
A
Correct answer
Explanation
An interpreter translates and executes high-level language code line by line, converting each statement to machine code before running it. A compiler converts the entire program at once, a loader loads programs into memory, and an assembler converts assembly language to machine code.
-
well-formed
-
well-documented
-
non-validating and validating
-
none of the above
C
Correct answer
Explanation
The claimed answer C (non-validating and validating) is correct. XML parsers are classified into two main types: non-validating parsers (check only for well-formedness) and validating parsers (check both well-formedness and adherence to a DTD or schema). Options A, B, and D are incorrect as they don't represent actual parser classifications.
D
Correct answer
Explanation
Adobe Dreamweaver was originally developed by Macromedia and is primarily written in C++. Java, C#, and .NET are different programming frameworks/languages not used for the core engine of this desktop application.
B
Correct answer
Explanation
C/C++ is faster than Java, Python, and Pascal because it's compiled to machine code without the overhead of a virtual machine or interpreter. Java uses JVM, Python is interpreted, and Pascal is generally slower than C. C/C++ gives the most direct hardware control.
-
Interpreter
-
Operating system
-
Compiler
-
Assembler
B
Correct answer
Explanation
An operating system is system software that manages hardware and software resources. Interpreters, compilers, and assemblers are all language translators used to convert source code into machine code.
A
Correct answer
Explanation
Java is strongly typed because every variable must be declared with a type, and the compiler performs strict type checking to ensure that values assigned to variables are compatible with their declared types, preventing many runtime errors.
-
VB.Net
-
C#
-
VB6
-
VB.Net & C#
A
Correct answer
Explanation
In older versions of SSIS (SQL Server 2005), VB.Net was the only supported language for the Script Component. Modern versions support both VB.Net and C#, making the question version-dependent.
B
Correct answer
Explanation
Common Intermediate Language (CIL) is an intermediate language, not a machine language. It is compiled into native machine code by the Just-In-Time (JIT) compiler at runtime, making the statement false.