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
-
high level language
-
machine language
-
assembly language
-
none of these
C
Correct answer
Explanation
Assembly language uses mnemonics or opcodes (like MOV, ADD, JMP) to represent machine code instructions, making it easier for humans to read than raw binary.
B
Correct answer
Explanation
The C programming language was developed at Bell Labs by Dennis Ritchie in the early 1970s.
-
Self compiler
-
Cross compiler
-
Resident compiler
-
None of these
B
Correct answer
Explanation
A cross compiler is a compiler that runs on one architecture (the host) but generates executable code for a different architecture (the target).
-
Abstract algebra
-
Linear algebra
-
Boolean algebra
-
Modern algebra
C
Correct answer
Explanation
George Boole developed Boolean algebra, which is the mathematical foundation for digital logic and computer circuit design.
B
Correct answer
Explanation
C is not an Object-Oriented Programming Language. It is a Structured Programming Language.
-
top-down
-
bottom-up
-
virtual
-
real-time
B
Correct answer
Explanation
It treats data as a critical element in the program development and does not allow it to flow freely around the system.
-
Loader
-
Compiler
-
Linker
-
Macro
B
Correct answer
Explanation
Compiler is also called as language translator, which translates high level programming language code into equivalent machine language code.
-
compiler
-
interpreter
-
assembler
-
operating system
C
Correct answer
Explanation
MASM means macro assembler and TASM means turbo assembler.
-
Windows 98
-
PASCAL
-
FORTRAN
-
C++
A
Correct answer
Explanation
Windows 98 is an operating system, not a programming language. PASCAL, FORTRAN, and C++ are all programming languages.
-
It was the basic language that computers were built to use.
-
It originally ran as basic terminal.
-
It was named after Yugoslavian programmer Vladimir basic.
-
It was an acronym, i.e. Beginner's All-Purpose Symbolic Instruction Code.
D
Correct answer
Explanation
BASIC is an acronym that stands for Beginner's All-Purpose Symbolic Instruction Code, designed to be easy for students to learn.
-
Corrigan and Richards
-
Kernighan and Ritchie
-
Kerrigan and Richmond
-
Carnigan and Ricky
B
Correct answer
Explanation
The seminal book 'The C Programming Language' was written by Brian Kernighan and Dennis Ritchie, the latter being the creator of the C language.
-
COBOL
-
BASIC
-
FORTRAN
-
PASCAL
C
Correct answer
Explanation
FORTRAN (Formula Translation) is widely considered the first high-level programming language to be widely used, developed by IBM in the 1950s.
-
addition
-
subtraction
-
multiplication
-
All of the above
-
None of these
D
Correct answer
Explanation
Assembly language allows all types of mathematical operations
-
COBOL
-
PASCAL
-
HTML
-
C
-
None of these
C
Correct answer
Explanation
HTML (HyperText Markup Language) is the standard language used to create and structure content for web pages.