UKPSC Computer Science Unit 5: Programming Languages, Compilers & Database Systems (DBMS)
Part of the UKPSC General Science & Technology Revision Series.
1.High-Yield Micro-Notes
- Classification Hierarchy of Programming Languages
- Machine Language (1st Generation): Low-level language consisting entirely of binary strings (0s and 1s) that correspond directly to processor instruction codes. It is the only language a CPU understands natively, but it is machine-dependent and difficult for humans to write and debug.
- Assembly Language (2nd Generation): Replaces binary opcodes with readable alphanumeric mnemonics (e.g., MOV, ADD, SUB, JMP) and symbolic memory labels.
- High-Level Languages (3rd Generation): Machine-independent programming languages with English-like syntax and mathematical notation (e.g., C, C++, Java, Python, FORTRAN, COBOL).
- Declarative / Problem-Solving Languages (4th & 5th Generation): Focus on what computational result is desired rather than specifying how to execute every procedural step. Fifth-generation languages are used in artificial intelligence and expert systems (e.g., PROLOG, LISP, Mercury).
- Domain-Specific Programming Languages:
- FORTRAN (Formula Translation): Developed in 1957 by John Backus at IBM; widely recognized as the first general-purpose high-level programming language, optimized for numeric, mathematical, and scientific computing.
- COBOL (Common Business Oriented Language): Developed in 1959 under the guidance of Grace Hopper; designed with an English-like syntax for commercial business, payroll, and administrative data processing.
- LOGO: Developed in 1967 by Seymour Papert, Wally Feurzeig, and Cynthia Solomon; an educational programming language that introduced children to coding through interactive graphic commands controlling an on-screen triangular “turtle” to draw geometric shapes.
- Object-Oriented Programming (OOP): Programming languages organized around real-world data abstractions called Classes and Objects, supporting encapsulation, inheritance, and polymorphism (e.g., Java, C++, Python). Java is notable for platform independence, compiling source code into bytecode executed by the Java Virtual Machine (JVM).
- Language Translators (Translators & Interpreters):
- Assembler: Translates assembly language mnemonic code into machine-executable binary machine code.
- Compiler: Translates an entire high-level program’s source code into machine code in a single processing run, generating an independent binary executable file (e.g., .exe) and listing errors.
- Interpreter: Translates and executes high-level source code line-by-line in real time; does not generate a standalone machine code executable, which generally results in slower execution compared to compiled code.
- Relational Database Management Systems (RDBMS):
- DBMS vs. RDBMS: A Database Management System (DBMS) is software used to create, manage, and query structured databases. A Relational DBMS (RDBMS), based on Edgar F. Codd’s relational model, organizes data into two-dimensional tables (relations) consisting of rows (tuples/records) and columns (attributes/fields) linked by shared keys. Major RDBMS platforms include Oracle Database, MySQL, Microsoft SQL Server, PostgreSQL, and Microsoft Access.
- Structured Query Language (SQL): The standardized computer language used to query, update, insert, and manage data within relational databases.
- Database Schema: The formal structural design and complete blueprint representing the logical layout, tables, fields, relationships, and constraints of a database.
- Debugging: The systematic process of identifying, locating, and resolving syntax, runtime, or logical errors (bugs) within software code to restore intended program behavior.
2. Important facts you should know:
| Programming / Database Technology | Developer / Paradigm | Core Functional Application |
| FORTRAN | John Backus (IBM, 1957) | Scientific numerical computing and mathematical modeling. |
| COBOL | Grace Hopper / CODASYL (1959) | Business transaction accounting and banking applications. |
| LOGO | Papert & Solomon (1967) | Educational graphics programming using an on-screen “turtle”. |
| PROLOG | Colmerauer & Kowalski (1972) | 5th-generation logic programming for AI and natural language processing. |
| Java | James Gosling (Sun Microsystems) | Object-Oriented, platform-independent bytecode programming (JVM). |
| Compiler | System Software Translator | Translates high-level source code into machine-executable binary. |
| Oracle Database | Relational Model (RDBMS) | Multi-model commercial relational database management system. |
| SQL | Declarative Query Language | Standard language for defining, updating, and querying relational databases. |
3. Master Questions
Q1. Which of the following high-level declarative programming languages is classified as a 5th-generation language (5GL) used in Artificial Intelligence?
[UKPSC Pre 2024] [Direct Fact]
(a) Structured Query Language (SQL)
(b) C++
(c) C Language
(d) PROLOG
Q2. Which early high-level programming language was designed specifically for complex scientific formulas and numeric computing?
[UKPSC Pre 2002-03] [Direct Fact]
(a) BASIC
(b) COBOL
(c) FORTRAN
(d) PASCAL
Q3. An Assembler is a system software program whose function is to translate:
[UKPSC Pre 2004-05] [Direct Fact]
(a) Machine code into assembly code
(b) High-level language into machine code
(c) Assembly language into machine code
(d) Assembly language into high-level source code
Q4. A system software translator that converts complete source code written in a high-level programming language into machine code prior to execution is a:
[UKPSC APS Mains 2021 | UKPSC RO/ARO Mains 2006 | UKPCS Lower Pre 2010] [Direct Fact]
(a) Linker
(b) Compiler
(c) Peripheral Loader
(d) Command Interpreter
Q5. Which of the following software platforms is a commercial Relational Database Management System (RDBMS)?
[UKPSC Mains 2002-03 | UKPSC APS Mains 2021] [Direct Fact]
(a) Microsoft Windows
(b) Mozilla Firefox
(c) Oracle
(d) Adobe Photoshop
Q6. The educational programming language designed by Seymour Papert, Wally Feurzeig, and Cynthia Solomon that introduced children to coding using an on-screen “turtle” is:
[UKPSC AE 2012] [Direct Fact]
(a) APL
(b) COBOL
(c) FORTRAN
(d) LOGO
Q7. The structural blueprint and complete architectural layout of data stored in a database is called a:
[UKPSC AE 2012] [Direct Fact]
(a) Record
(b) Schema
(c) System Flowchart
(d) Data Block
Q8. Which of the following high-level computer programming languages is built around the Object-Oriented Programming (OOP) paradigm?
[UKPSC APS Mains 2021 | UKPSC Patwari Lekhpal 2022] [Direct Fact]
(a) Java
(b) Standard C Language
(c) MS-DOS
(d) Procedural FORTRAN-IV
Q9. The programming language COBOL (Common Business Oriented Language) is primarily used in:
[UKPSC Forest Ranger Pre 2012] [Direct Fact]
(a) Commercial Business, Banking, and Administration
(b) Theoretical Mathematics
(c) Mechanical Robotics
(d) Real-time Aerospace Guidance
Q10. The process of locating and correcting programming syntax, runtime, or logical errors within software code is termed:
[UKPSC RO/ARO Pre 2023] [Direct Fact]
(a) Software Designing
(b) Code Compiling
(c) Debugging
(d) System Paging
4. Master Explanations & Answer Key
- Ans. (d)
- Direct Answer: PROLOG (Programming in Logic), developed in 1972, is a fifth-generation declarative logic programming language widely used in artificial intelligence, expert systems, and computational linguistics.
- Exam Trap / Distractor Alert: C and C++ are third-generation procedural/object-oriented languages; SQL is a fourth-generation declarative database query language; PROLOG and LISP are classic 5th-generation AI languages.
- High-Yield Extra Facts: PROLOG programs consist of formal mathematical logic statements, facts, and inference rules, allowing an integrated inference engine to solve problems by evaluating queries against the knowledge base.
- Ans. (c)
- Direct Answer: FORTRAN (FORmula TRANslation), created in 1957 by John Backus at IBM, was the first commercially successful high-level language, designed specifically for scientific and numerical calculation.
- Exam Trap / Distractor Alert: COBOL was designed for commercial business applications; BASIC was created for teaching introductory programming; FORTRAN was built for scientific computation and numerical analysis.
- High-Yield Extra Facts: FORTRAN continues to be used in high-performance supercomputing applications, including computational fluid dynamics, climate modeling, and structural finite element analysis.
- Ans. (c)
- Direct Answer: An Assembler translates low-level assembly language mnemonic code (e.g., MOV AX, BX) into machine-executable binary machine code (0s and 1s).
- Exam Trap / Distractor Alert: Compilers translate high-level languages into machine code; an Assembler translates assembly language into machine code.
- High-Yield Extra Facts: A two-pass assembler reads through the source code twice: the first pass builds a symbol table of memory labels and variable offsets, and the second pass generates the final binary machine instructions.
- Ans. (b)
- Direct Answer: A Compiler translates an entire high-level program’s source code into machine-executable binary code before execution, creating a standalone executable file.
- Exam Trap / Distractor Alert: An Interpreter translates and executes code line-by-line at runtime; a Compiler translates the entire source file at once, which generally produces faster-executing binary programs.
- High-Yield Extra Facts: Modern compiler architectures operate in distinct phases: lexical analysis, syntax parsing, semantic analysis, intermediate code generation, machine-independent optimization, and final target code generation.
- Ans. (c)
- Direct Answer: Oracle is a multi-model Relational Database Management System (RDBMS) developed by Oracle Corporation, widely deployed for enterprise-scale transactional databases.
- Exam Trap / Distractor Alert: Java is an object-oriented programming language; Windows is an operating system; Oracle is an RDBMS software platform.
- High-Yield Extra Facts: Oracle Database supports ACID transactions (Atomicity, Consistency, Isolation, Durability) and provides tools for cross-platform data management, automated backups, and database recovery.
- Ans. (d)
- Direct Answer: LOGO is an educational programming language developed in 1967 by Seymour Papert, Wally Feurzeig, and Cynthia Solomon, known for its graphical commands that control an on-screen “turtle” to teach geometry and programming concepts.
- Exam Trap / Distractor Alert: FORTRAN and COBOL were designed for scientific and business computing; LOGO was created specifically to introduce children and beginners to computational thinking.
- High-Yield Extra Facts: In LOGO, simple commands like FORWARD 100, RIGHT 90, and REPEAT 4 instruct the turtle cursor to draw shapes on screen, helping users visualize algorithm flow and geometric coordinates.
- Ans. (b)
- Direct Answer: A database Schema is the formal structural blueprint that defines how data is organized, including tables, fields, data types, relationships, and integrity constraints.
- Exam Trap / Distractor Alert: A record (row/tuple) is a single entry of data within a table; a schema is the overall structural plan of the database.
- High-Yield Extra Facts: In database architecture (the ANSI-SPARC model), schemas are organized into three abstraction levels: the physical schema (storage structures on disk), the logical schema (tables, attributes, and relationships), and the view schema (tailored user views).
- Ans. (a)
- Direct Answer: Java is an Object-Oriented Programming (OOP) language developed by James Gosling at Sun Microsystems in 1995, designed to let applications run across platforms without recompilation.
- Exam Trap / Distractor Alert: Standard C and FORTRAN-77 are procedural languages; Java and C++ are object-oriented languages organized around classes and objects.
- High-Yield Extra Facts: Java source code (.java) is compiled into intermediate bytecode (.class), which executes on any system that has a compatible Java Virtual Machine (JVM), supporting the design principle: “Write Once, Run Anywhere” (WORA).
- Ans. (a)
- Direct Answer: COBOL (Common Business Oriented Language), developed in 1959, was designed specifically for commercial business data processing, banking systems, accounting, and government administration.
- Exam Trap / Distractor Alert: FORTRAN was built for scientific and mathematical calculations; COBOL was designed for commercial record-keeping and business reporting.
- High-Yield Extra Facts: Rear Admiral Grace Hopper was instrumental in designing the English-like syntax of COBOL; many legacy global financial institutions and mainframe transaction systems still maintain core processing routines written in COBOL.
- Ans. (c)
- Direct Answer: Debugging is the systematic process of finding, analyzing, and fixing bugs (errors) in software code that cause unexpected behavior or crashes.
- Exam Trap / Distractor Alert: Coding is writing program instructions; debugging is the testing, diagnostics, and troubleshooting required to locate and fix errors in existing code.
- High-Yield Extra Facts: The term “bug” entered computing terminology in September 1947 when Grace Hopper and her team found a physical moth trapped between relay contacts in the Harvard Mark II electromechanical computer, taping it into their logbook with the note: “First actual case of bug being found.”
Contact Oracle IAS:
Call/WhatsApp 9997453844 for details
Join Our Preparation program:
- UKPSC Computer Science: Cybersecurity, Malware, IT Act 2000 & Cloud Computing (Solved PYQs & Notes) - November 28, 2026
- UKPSC Computer Science: Computer Networks, Data Transmission, OSI Model & Internet Protocols (Solved PYQs & Notes) - November 28, 2026
- UKPSC Computer Science: Programming Languages, Compilers & Database Systems (DBMS) (Solved PYQs & Notes) - November 28, 2026



