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
-
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
-
assembler
-
high-level
-
computer
-
machine
-
none of these
E
Correct answer
Explanation
A program written in assembly language is known as source code or an assembly language program. The system software that translates this assembly code into machine language is called an assembler, meaning none of the options correctly define the program itself.
-
commercial
-
scientific
-
space
-
mathematical
-
None of these
A
Correct answer
Explanation
COBOL (Common Business-Oriented Language) was designed specifically for business, finance, and administrative systems for companies and governments.
A
Correct answer
Explanation
Assembly language is tied to the specific instruction set of a processor architecture. This makes code non-portable, which is considered a significant demerit compared to high-level languages.
-
Python
-
C++
-
C#
-
ASP.NET
-
Java
-
Router(config)# ip flow-export version 9
-
Router(config)# IP flow-export template timeout-rate 90
-
Router(config)# end
-
Router>enable
-
Exit
C
Correct answer
Explanation
This command for configuring net flow on a Cisco router is used to terminate the configuration session and return to privileged EXEC mode.
-
Router(config)# IP flow-export template options export-stats
-
Router(config)# ip flow-export template timeout-rate 90
-
Router(config)# ip flow-export version 9
-
Router>enable
-
CD
A
Correct answer
Explanation
This command for configuring netflow on a Cisco router is used to specify the options template export statistics, including how many flows have been exported.
A
Correct answer
Explanation
AHPL stands for A Hardware Programming Language, which is a hardware description language used for designing digital systems.
C
Correct answer
Explanation
PC/M (often referred to as CP/M) was a popular operating system and system programming environment for early Intel-based microcomputers.