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
-
machine code.
-
instruction code.
-
opcode.
-
All of the above
-
None of these
C
Correct answer
Explanation
An opcode (operation code) is the portion of a machine language instruction that specifies the operation to be performed by the CPU.
-
Control worlds
-
Reserved words
-
Control structures
-
Reserved keys
-
None of these
B
Correct answer
Explanation
Reserved words are terms that programming languages set aside for specific purposes and cannot be used as identifiers or variable names. Examples include 'if', 'while', 'class', and 'return'. Control structures and control worlds are not the correct terminology.
-
assembler
-
translator
-
compiler
-
system software
C
Correct answer
Explanation
A compiler translates high-level language source code into machine language code for the entire program at once, unlike an interpreter which does it line by line.
-
Database
-
COM
-
Platform independent
-
Platform dependent
C
Correct answer
Explanation
Java is famous for its 'Write Once, Run Anywhere' capability, which makes it platform-independent.
B
Correct answer
Explanation
LOGO is a programming language designed in the 1960s for educational use, famous for its 'turtle graphics' used to teach programming concepts.
B
Correct answer
Explanation
BCPL (Basic Combined Programming Language) was a precursor to B and C. It was specifically designed for system programming and introduced structured control flow constructs.
-
javap
-
applet
-
beans
-
bytecodes
D
Correct answer
Explanation
Bytecodes are the machine instructions for the Java Virtual Machine, generated by the Java compiler.
C
Correct answer
Explanation
Windows is the most widely used operating system for personal computers globally. C++ and Java are programming languages, and MS-DOS is an older operating system.
-
Common Business oriented language
-
Computer oriented Business Operations language
-
Common Business Operations Language
-
None of the above
A
Correct answer
Explanation
COBOL stands for Common Business Oriented Language. It was one of the earliest high-level programming languages and is still widely used in business, finance, and administrative systems.
-
translator
-
interpreter
-
assembler
-
compiler
C
Correct answer
Explanation
An assembler is a specific type of translator that converts assembly language code into machine language (binary) that the computer processor can execute.
-
translator
-
interpreter
-
assembler
-
compiler
D
Correct answer
Explanation
Option 4 is the correct answer.
-
Visual JAVA
-
Visual C++
-
C language
-
C#
C
Correct answer
Explanation
C is a procedural, low-level programming language that does not have built-in GUI libraries. Visual C++, Visual Java, and C# are designed for GUI development.
-
Assembly Language
-
Machine Language
-
HLL
-
4GL
A
Correct answer
Explanation
Assembly language uses mnemonics (short codes like MOV, ADD, SUB) to represent machine-level instructions, making it easier for humans to read than pure binary machine code.
C
Correct answer
Explanation
This type of shell is an open source Unix shell that is embedded within the Scheme programming language.
D
Correct answer
Explanation
Option 4 is the correct answer.