14 Lecture

CS101

Midterm & Final Term Short Notes

Programming Languages

Programming languages are the foundation of computer science, software engineering, and the technology industry as a whole. They are the primary means of communication between humans and computers, enabling programmers to create software applica


Important Mcq's
Midterm & Finalterm Prepration
Past papers included

Download PDF
  1. Which of the following is not a programming language? a) HTML b) Java c) Python d) SQL

Answer: a) HTML

  1. Which language is used for creating dynamic web pages? a) Python b) Ruby c) PHP d) Java

Answer: c) PHP

  1. Which language is used for building iOS and macOS applications? a) Java b) Swift c) C++ d) Ruby

Answer: b) Swift

  1. Which of the following is a low-level programming language? a) Java b) Python c) Assembly d) PHP

Answer: c) Assembly

  1. Which language is used for managing and querying relational databases? a) Java b) Python c) SQL d) Ruby

Answer: c) SQL

  1. Which language is used for systems programming and game development? a) C++ b) Python c) Ruby d) Java

Answer: a) C++

  1. Which of the following is an interpreted language? a) C++ b) Java c) Perl d) Pascal

Answer: c) Perl

  1. Which language is used for creating interactive user interfaces? a) Java b) Python c) Ruby d) JavaScript

Answer: d) JavaScript

  1. Which language is used for data analysis and machine learning? a) Python b) Ruby c) Java d) C++

Answer: a) Python

  1. Which of the following is a compiled language? a) Perl b) Python c) C d) PHP

Answer: c) C



Subjective Short Notes
Midterm & Finalterm Prepration
Past papers included

Download PDF
  1. What is a programming language? Answer: A programming language is a formal language that specifies a set of instructions for a computer to follow in order to perform a specific task.


  2. What is the difference between a high-level and a low-level language? Answer: A high-level language is more abstract and easier to read and write than a low-level language, which is closer to machine code and requires a deeper understanding of computer architecture.


  3. What is an interpreted language? Answer: An interpreted language is a programming language that executes code directly, without compiling it into machine language.


  4. What is a compiler? Answer: A compiler is a software program that translates source code written in a programming language into machine language that can be executed by a computer.


  5. What is an object-oriented language? Answer: An object-oriented language is a programming language that organizes code into objects, which encapsulate data and functionality and can communicate with one another.


  6. What is a scripting language? Answer: A scripting language is a programming language that is designed to automate frequently performed tasks, such as data manipulation, system administration, and web page creation.


  7. What is a variable? Answer: A variable is a container that holds a value or reference to a value in computer memory.


  8. What is a function? Answer: A function is a block of code that performs a specific task and can be called from other parts of a program.


  9. What is debugging? Answer: Debugging is the process of finding and fixing errors in software code.


  10. What is an algorithm? Answer: An algorithm is a set of instructions for solving a specific problem or performing a specific task, often used in computer programming.

Programming languages are the foundation of computer science, software engineering, and the technology industry as a whole. They are the primary means of communication between humans and computers, enabling programmers to create software applications that automate tasks, solve complex problems, and make our lives easier. In this article, we'll explore the basics of programming languages, their history, and some of the most popular ones in use today.

What are programming languages?

A programming language is a set of rules, instructions, and syntax that computers use to understand and execute commands. They are used to write software, scripts, and other computer programs that are used for various applications. Programming languages can be classified into three categories: low-level, high-level, and scripting languages. Low-level programming languages are the closest to machine language, which is the language used by computers to communicate with their hardware. These languages are very fast and efficient but require a lot of technical knowledge and are difficult to learn. Examples of low-level programming languages include Assembly and Machine Language. High-level programming languages are easier to learn and use than low-level languages. They are designed to be more readable and easier to understand for humans. High-level languages are used to write software applications and can be classified into two categories: compiled and interpreted languages. Examples of compiled languages include C, C++, and Java, while interpreted languages include Python, Ruby, and JavaScript. Scripting languages are a type of high-level language that is used for automating repetitive tasks, creating dynamic web pages, and managing data. These languages are interpreted and require a scripting engine or interpreter to execute code. Examples of scripting languages include Perl, PHP, and Bash.

History of programming languages

Programming languages have been around since the early days of computing. The first programming language, called "Assembly," was developed in the 1940s for the first computers. Assembly is a low-level language that is still in use today for tasks that require direct interaction with the hardware. In the 1950s and 1960s, high-level programming languages were developed, such as Fortran, COBOL, and BASIC. These languages were designed to be more human-readable and easier to understand than low-level languages like Assembly. In the 1970s, languages like C and Pascal were developed, which introduced new features like structured programming and dynamic memory allocation. The 1980s saw the development of object-oriented programming languages like C++ and Smalltalk. The 1990s saw the rise of scripting languages like Perl and Python, which are still popular today. The 2000s saw the development of newer languages like Ruby and JavaScript, which are widely used in web development.

Popular programming languages

There are hundreds of programming languages in use today, but some of the most popular ones include:
  1. Java - a compiled, object-oriented language used for building applications that can run on any platform.
  2. Python - an interpreted, high-level language used for web development, data analysis, and machine learning.
  3. JavaScript - an interpreted, scripting language used for web development and creating interactive user interfaces.
  4. C++ - a compiled, object-oriented language used for systems programming, game development, and building large-scale applications.
  5. PHP - a scripting language used for web development and creating dynamic web pages.
  6. Ruby - a scripting language used for web development and building web applications.
  7. Swift - a compiled, object-oriented language used for developing iOS and macOS applications.
  8. SQL - a language used for managing and querying relational databases.

Conclusion

Programming languages are the backbone of modern technology, and they have come a long way since the early days of computing. From low-level languages like Assembly to high-level languages like Python and JavaScript, programming languages have evolved to become more human-readable and easier to understand.