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 general knowledge
  1. Bug

  2. Spam

  3. Virus

  4. Trash

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

Grace Murray Hopper coined the term 'bug' to describe computer errors after a moth was found trapped in the Harvard Mark II computer's relay in 1947. She documented this as the 'first actual case of bug being found.' The term 'debugging' became standard for fixing computer errors. Hopper also developed the first compiler and was a COBOL pioneer.

Multiple choice general knowledge science & technology
  1. CMM Standard

  2. The Unicode standard

  3. The Bytecode standard

  4. None of these

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

Unicode is the industry standard that enables computers to represent and manipulate text from most of the world's writing systems consistently. It provides a unique number for every character across languages. CMM is a capability maturity model, Bytecode is compiled code format, making Unicode the clear correct answer.

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
  1. a low-level programming language.

  2. a scripting language precompiled in the browser.

  3. a compiled scripting language

  4. an object-oriented scripting language

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

JavaScript is fundamentally an object-oriented scripting language that runs primarily in web browsers. It uses prototype-based inheritance rather than class-based inheritance. It's not a low-level language, not precompiled in browsers (interpreted), and while modern engines compile it, its design is as a dynamic scripting language.

Multiple choice general knowledge
  1. platform independent

  2. platform dependent

  3. traditional language

  4. None

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

Java is platform-independent because Java bytecode (.class files) can run on any device that has a Java Virtual Machine (JVM). The 'Write Once, Run Anywhere' (WORA) principle means compiled Java code doesn't need to be recompiled for different platforms. This is a fundamental design feature of Java, making it different from platform-dependent languages like C++.