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
D
Correct answer
Explanation
ASP.NET supports multiple languages for server-side scripting through the .NET Framework language interoperability. The primary languages are C# (c#) and VB.NET (VB - referring to Visual Basic .NET). C++ is NOT typically used for ASP.NET server-side scripting (managed C++ exists but is not a standard ASP.NET language option). Therefore 'A & B' (both C# and VB) is correct.
-
COmmon Business Oriented Language
-
COmplete Business Oriented Language
-
COmpletely Business Oriented Language
-
COmmon Business Objective Language
A
Correct answer
Explanation
COBOL stands for Common Business-Oriented Language, designed specifically for business applications. The 'Common' indicates it was meant to be widely shared across systems, not 'Complete' or 'Completely' as options B and C suggest. Option D incorrectly uses 'Objective' instead of 'Oriented.'
-
programming
-
processing
-
reporting
-
structural
A
Correct answer
Explanation
SQR is a programming language designed for accessing and manipulating data to create custom reports. It combines SQL queries with procedural programming constructs like loops, variables, and conditional logic.
-
You can define your own data types
-
An object oriented program can be taught to correct its own errors
-
It is easier to conceptualize an object oriented program
-
You can define your own data types and It is easier to conceptualize an object oriented program
D
Correct answer
Explanation
Object-oriented programming allows developers to define custom data types using classes and model programs around real-world entities, which makes system conceptualization much easier. Programs cannot automatically teach themselves to resolve runtime errors, meaning the option combining custom types and conceptualization is correct.
-
B, Algol 68
-
Assembly, PL/I
-
Fortran
-
All the Above
D
Correct answer
Explanation
C was historically influenced by B and Algol 68. However, early programming languages like Fortran, assembly languages, and PL/I also heavily shaped systems programming concepts during its development at Bell Labs. Therefore, 'All the Above' is the most complete and correct option.
-
Localization
-
Globalization
-
Translate
-
Nationalize
B
Correct answer
Explanation
Globalization is the process of designing applications that are culture-neutral and language-neutral, supporting multiple locales without modification. Localization comes later, adapting the globalized application to specific cultures/regions. Translation and Nationalize are not technical terms in this context.
C
Correct answer
Explanation
Windows Phone 7 application development used C# as the primary programming language, along with XAML for UI markup. Silverlight for Windows Phone provided a subset of the Silverlight framework, and C# was the official language for WP7 app development in Visual Studio 2010.
-
Byte Code
-
Firewall
-
Class Code
-
Bit Code
A
Correct answer
Explanation
Java programs achieve platform independence by compiling source code into bytecode. This bytecode runs on any system with a Java Virtual Machine (JVM). Bit code, class code, and firewall are not the names of this intermediate format.
-
Interpreter
-
Compiler
-
Byte code file
-
Class file
B
Correct answer
Explanation
JCL (Job Control Language) is NOT a programming language - it's a scripting language used to tell the operating system how to run a job. JCL defines job steps, allocates resources (like data sets and CPU time), and specifies what programs to run. Unlike programming languages, it doesn't implement algorithms or data structures - it's a control and job submission language.
-
.EXE format
-
Common Intermediate Language (CIL)
-
JAVA
-
ByteCode
B
Correct answer
Explanation
C# source code is compiled by the compiler into Common Intermediate Language (CIL), which is a CPU-independent instruction set. This intermediate format is later JIT-compiled into native machine code at runtime.
-
Modular programming
-
Aspect-oriented programming
-
Object-oriented programming
-
Reflective programming
C
Correct answer
Explanation
VB6 was primarily a procedural language with limited OOP support. VB.NET is built entirely on object-oriented programming (classes, inheritance, polymorphism, encapsulation). Understanding OOP is essential for VB.NET development and makes migration easier - you'll recognize which patterns to preserve and which need redesign.
-
ilasm
-
ildasm
-
clr
-
None of the above
A
Correct answer
Explanation
ilasm (IL Assembler) converts IL (Intermediate Language) code into executable code. ildasm (option B) is the disassembler that converts executable code to IL. The CLR (option C) is the runtime environment that executes IL, not an assembler. ilasm is the correct tool for assembling IL programs.
-
Faster than a program written in a shell script language, but slower than a program in a native language such as C
-
Slower than programs in shell script languages, but with modern computers that isn't a problem
-
About the same speed as a program written in a native language such as C, and much faster than a shell script
-
Faster than anything else on the same computer
A
Correct answer
Explanation
Java bytecode runs on JVM (interpreted/JIT-compiled), placing its performance between shell scripts (slow interpreted) and native languages like C (compiled to machine code).