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 programming languages
  1. c#

  2. VB

  3. C++

  4. A & B

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. COmmon Business Oriented Language

  2. COmplete Business Oriented Language

  3. COmpletely Business Oriented Language

  4. COmmon Business Objective Language

Reveal answer Fill a bubble to check yourself
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.'

Multiple choice technology programming languages
  1. You can define your own data types

  2. An object oriented program can be taught to correct its own errors

  3. It is easier to conceptualize an object oriented program

  4. You can define your own data types and It is easier to conceptualize an object oriented program

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. B, Algol 68

  2. Assembly, PL/I

  3. Fortran

  4. All the Above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Localization

  2. Globalization

  3. Translate

  4. Nationalize

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology operating systems
  1. C++

  2. Java

  3. C#

  4. Objective C

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. Byte Code

  2. Firewall

  3. Class Code

  4. Bit Code

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology mainframe
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Modular programming

  2. Aspect-oriented programming

  3. Object-oriented programming

  4. Reflective programming

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. ilasm

  2. ildasm

  3. clr

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Faster than a program written in a shell script language, but slower than a program in a native language such as C

  2. Slower than programs in shell script languages, but with modern computers that isn't a problem

  3. About the same speed as a program written in a native language such as C, and much faster than a shell script

  4. Faster than anything else on the same computer

Reveal answer Fill a bubble to check yourself
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).