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
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.
C
Correct answer
Explanation
Android applications are primarily written in Java (or Kotlin). While the OS itself uses C/C++ for system-level components, the official app development language has been Java since the beginning.
-
Python
-
PHP
-
CORBA
-
None of these
A
Correct answer
Explanation
Python is a high-level programming language created by Guido van Rossum (note: the question misspells his name as 'Von Russom'). It emphasizes code readability and supports multiple programming paradigms.
-
CMM Standard
-
The Unicode standard
-
The Bytecode standard
-
None of these
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.
-
Obfuscation
-
pre verification
-
compilation
-
locale
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.
-
Java environment
-
Phython environment
-
VC++ environment
-
C++ environment
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.
-
M21
-
JAVA 1
-
JAVA 2
-
CPP1
-
CPP2
-
.NET
-
Assembler
-
Compiler
-
Loader
-
Interpreter
-
Beginner's All Purpose Symbolic Instruction Code
-
Business All Purpose Symbolic Instruction Code
-
Beginner's All Purpose Scientific Instruction Code
-
Business All Purpose Scientific Instruction Code
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.
-
VB Script
-
Java Script
-
Action Script
-
Pearl
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.
A
Correct answer
Explanation
JCL (Job Control Language) is indeed a scripting language used on IBM mainframe operating systems (like z/OS) to instruct the system on how to run batch jobs. It defines the job's steps, resources needed, and execution parameters.
A
Correct answer
Explanation
Logo is both a simple educational programming language and a common term for a corporate symbol or emblem. The other options are incorrect: interurban relates to cities, Java and C++ are more complex programming languages not typically described as 'simple'.
-
a low-level programming language.
-
a scripting language precompiled in the browser.
-
a compiled scripting language
-
an object-oriented scripting language
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.
-
platform independent
-
platform dependent
-
traditional language
-
None
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++.