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
-
1, 2 and 3
-
2, 3 and 4
-
1, 3 and 4
-
1, 2, 3 and 4
D
Correct answer
Explanation
FORTRAN, BASIC, COBOL, and PASCAL are all well-known high-level programming languages. Each was designed for specific applications, such as scientific computing, business, or education.
-
4GL Programming Language
-
Database
-
Modeling Language
-
None of these
C
Correct answer
Explanation
Rational Rose is a specialized software tool used for object-oriented software development and visual modeling. It utilizes the Unified Modeling Language (UML) to create diagrams and design software architectures. It is not a programming language or a database, but a tool for designing system models.
D
Correct answer
Explanation
C and C++ are traditional compiled languages. Java is also compiler-based because it is compiled into bytecode before execution. Since all the listed languages use a compiler, 'None of these' is the correct answer.
-
machine language
-
high level language
-
assembly language
-
None of these
A
Correct answer
Explanation
Machine language is the lowest-level programming language, consisting entirely of binary digits (0s and 1s). It is the only language that a computer's CPU can understand and execute directly.
-
C
-
C++
-
Java
-
Microsoft
-
COBOL
D
Correct answer
Explanation
Microsoft is not a programming language.
C
Correct answer
Explanation
CHDL stands for Computer Hardware Description Language, which is used to model the behavior and structure of digital systems. Other options like ADA and APL are general-purpose programming languages, while LOGO is designed for educational use.
-
FORTRAN
-
COBOL
-
PILOT
-
BASIC
D
Correct answer
Explanation
Option 4 is the correct answer.
D
Correct answer
Explanation
Bjarne Strourstrup has acknowledged that Simula 67 was the greatest influence on him in the development of C++. Hence, this is the correct option.
-
PASCAL
-
FORTRAN
-
BASIC
-
COBOL
-
None of these
C
Correct answer
Explanation
Option 3 is the correct answer.
-
LOGO
-
COBOL
-
COREL
-
None of these
C
Correct answer
Explanation
Corel is a software company known for products like CorelDRAW and WordPerfect, rather than a programming language. LOGO and COBOL are well-known programming languages used for education and business, respectively. Therefore, Corel is the outlier in this list of software languages.
-
First generation of computers
-
Second generation of computers
-
Third generation of computers
-
Fourth generation of computers
B
Correct answer
Explanation
COBOL (Common Business-Oriented Language) and FORTRAN (Formula Translation) were developed in the late 1950s. These high-level languages became widely used during the second generation of computers, which moved away from machine language toward more human-readable code. This era also saw the transition from vacuum tubes to transistors.
-
Basic
-
Cobol
-
Fortran
-
None of these
A
Correct answer
Explanation
BASIC (Beginner's All-purpose Symbolic Instruction Code) was traditionally designed as an interpreted language to allow for interactive programming and immediate feedback. COBOL and FORTRAN are typically compiled languages where the entire source code is converted to machine code before execution.