Computer Knowledge

Programming Languages and Compilers

2,284 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 general knowledge
  1. Common Learning Reader

  2. Combined Language Runtime

  3. Common Language Runtime

  4. Common Learning Runtime

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The Common Language Runtime (CLR) is the virtual machine component of .NET that manages code execution, memory management, exception handling, and security. It provides a runtime environment for .NET applications.

Multiple choice general knowledge science & technology
  1. Obfuscation

  2. pre verification

  3. compilation

  4. locale

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Code obfuscation deliberately makes software difficult to understand by transforming it into an equivalent but harder-to-read form. This protects intellectual property and makes reverse engineering significantly more challenging. Pre-verification, compilation, and locale are standard development processes not designed to prevent analysis.

Multiple choice general knowledge sports
  1. Java environment

  2. Phython environment

  3. VC++ environment

  4. C++ environment

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

i-appli (or i-appli) is NTT DoCoMo's Java platform for mobile phones, and it is indeed based on CLDC. It provides a Java environment for mobile applications, not Python, VC++, or C++ environments.

Multiple choice general knowledge sports
  1. Beginner's All Purpose Symbolic Instruction Code

  2. Business All Purpose Symbolic Instruction Code

  3. Beginner's All Purpose Scientific Instruction Code

  4. Business All Purpose Scientific Instruction Code

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

BASIC stands for Beginner's All-purpose Symbolic Instruction Code. It was designed in 1964 by John George Kemeny and Thomas Eugene Kurtz at Dartmouth College to be easy for beginners to learn.

Multiple choice general knowledge
  1. VB Script

  2. Java Script

  3. Action Script

  4. Pearl

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

ActionScript is the programming/scripting language used in Adobe Flash for creating interactive content and applications. VB Script is for Windows automation, JavaScript is for web browsers, and Pearl (Perl) is a general-purpose scripting language - none are native to Flash.

Multiple choice general knowledge science & technology
  1. int i; /*above main() */

  2. extern int i; /*inside main() */

  3. Both 1 & 2

  4. option 3 if i is defined elsewhere.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The code uses variable 'i' without declaring it. Options 1 and 2 alone are insufficient. Option 3 (declaring i as extern inside main) requires i to be defined elsewhere globally - that's what D specifies, making it correct.

Multiple choice general knowledge science & technology
  1. output i=0 j=20

  2. output j=20

  3. compiler error starting from "printf("i = %d",op.i);"

  4. compiler error starting at the end of struct io

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

C structs cannot have member initialization at declaration (int i=0 is invalid). This causes a compiler error at struct definition time, not at the printf statements.

Multiple choice general knowledge
  1. Value of float variable f is :12.3

  2. Value of float variable f is :12

  3. error found on the line "float f =12.3;"

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Java, floating-point literals like 12.3 are treated as double by default (64-bit). To assign them to a float variable (32-bit), you must either use the 'f' suffix (12.3f) or cast the value. Without this, the compiler will flag an error due to potential loss of precision from double to float.