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
-
Efficient and faster than C
-
Insecurity of data
-
Not robust
-
Object-oriented and interpreted
-
None of these
D
Correct answer
Explanation
Java is objected-oriented and interpreted programing language that is the strong feature of java.
-
High level
-
Low level
-
Middle level
-
Upper level
-
None of these
C
Correct answer
Explanation
The language belongs between high and low level, i.e. C.
-
Serial Template Library
-
Simple Template Library
-
Standard Template Library
-
Single Type Library
-
Static Template Library
C
Correct answer
Explanation
Standard Template Library (STL) is a C++ software library. It is the corect expansion of the term.
-
Compiler
-
Interpreter
-
Editor
-
Emulator
-
Debugger
A
Correct answer
Explanation
A compiler takes your source programming code and converts it into an executable form that the computer can understand.
-
FORTRAN
-
C
-
PROLOG
-
COBOL
-
JAVA
C
Correct answer
Explanation
PROLOG is a general purpose logic programming language associated with artificial intelligence and computational linguistics.
-
Native language
-
Machine language
-
Assembly language
-
High level language
-
Low level language
D
Correct answer
Explanation
High-level languages are used to solve problems and are often described as problem-oriented languages.
-
Java
-
Cable
-
Domain name
-
Net
-
COBOL
A
Correct answer
Explanation
Java is a programming language that was specifically designed with applets in mind - small programs that run within web browsers. The 'write once, run anywhere' philosophy of Java made it ideal for creating downloadable applets that could execute on any platform with a Java Virtual Machine. While applets are now deprecated, Java was historically the primary language for applet development. Options like Cable, Domain name, Net, and COBOL are not programming languages used for creating applets.
-
Source Code
-
Machine Language
-
High Level Language
-
Object Code
-
Assembly Language
C
Correct answer
Explanation
High-level languages are designed to be similar to human languages and easy for humans to read and write. Source code is code written in any language, Machine Language is binary (0s and 1s), Object Code is compiled machine code, and Assembly Language is low-level but still uses mnemonics.
-
It translates instructions of assembly language into 'machine language.
-
It does not translate a C program.
-
It is involved in execution of programs.
-
It is a translating program.
B
Correct answer
Explanation
An assembler is specifically designed to translate assembly language instructions into machine code. It cannot translate C programs, which require a C compiler. This statement correctly identifies what an assembler cannot do.
-
Common Object
-
Common
-
Common Operating
-
Computer Oriented
-
None of these
B
Correct answer
Explanation
COBOL stands for Common Business-Oriented Language, so CO stands for 'Common'. The name reflects its design for business data processing applications.
-
Linker
-
Loader
-
Compiler
-
Editor
-
Assembler
D
Correct answer
Explanation
A source code editor is a text editor program designed specifically for editing source code of computer programs by programmers.
-
machine language, high-level language, and assembly language
-
machine language, high-level language, and binary representation
-
binary representation, machine language, and assembly language
-
machine language, assembly language, and high-level language
D
Correct answer
Explanation
Machine language uses raw binary instructions directly executed by the CPU. Assembly language adds mnemonics for machine instructions but remains hardware-specific. High-level languages use human-readable abstractions and are machine-independent.
-
coding
-
pseudocoding
-
compiling
-
debugging
A
Correct answer
Explanation
Coding is the process of writing actual program instructions in a programming language. Pseudocoding creates algorithmic drafts, compiling translates code to machine language, and debugging fixes errors.
-
differ depending on the type of computer on which they are to be executed
-
contain instructions written in 1s and 0s
-
do not require knowledge of the internal operations of the computer
-
more closely resemble English than BASIC
A
Correct answer
Explanation
Assembly language is machine-dependent because its instructions directly map to specific CPU architectures and instruction sets. Different processor families have different assembly languages, unlike portable high-level languages like BASIC.
-
values
-
numbers
-
commands
-
names
D
Correct answer
Explanation
High-level languages use descriptive names as symbolic references to memory locations and values. These names make programs readable for programmers while the compiler handles memory addresses.