SSC CGL Exam  >  SSC CGL Notes  >  Computer Awareness and Proficiency  >  Programming Concept

Programming Concept | Computer Awareness and Proficiency - SSC CGL PDF Download

A program can be defined as a sequence of instructions designed to perform a specific computing task. The individual who writes or executes these instructions is known as a programmer. Programmers use specialized languages, known as programming languages, to create programs. Examples of these languages include C and JavaAda Lovelace is celebrated as the world's first programmer.

Programming Language

Programming Concept | Computer Awareness and Proficiency - SSC CGL

  • Programming language: A programming language consists of commands, instructions, and syntax used to develop software.
  • Straightforward: It should be straightforward, easy to learn, and consistent in its syntax and semantics.

Programming languages are broadly categorized into three types:

Low-Level Languages (LLL)

These are more complex and operate directly with a computer's instruction set, often used for system software development.

  • Machine Language: The only language that computers natively understand, often referred to as machine code, object code, or binary language. It consists of binary digits (0s and 1s) that computers read and interpret.
  • Assembly Language: A low-level language that provides a more human-readable way to interact with computer hardware through structured commands that replace binary code.

Question for Programming Concept
Try yourself:
What type of programming language directly interacts with a computer's instruction set?
View Solution

Medium-Level Languages (MLL)

  • These languages act as an intermediary between raw hardware and the programming layer of a computer system, designed to enhance the efficiency of translated code before it is processed. An example is C.

High-Level Languages (HLL)

  • Advanced programming languages that are not tied to a specific computer system and are designed for specific tasks. They are generally easier to understand and use.
  • The main advantages of high level languages over low level languages is that they are easier to read, write and understand. e.g. BASIC, C, FORTRAN, Java, Python, etc.

Programming Concept | Computer Awareness and Proficiency - SSC CGL

Programming Concept | Computer Awareness and Proficiency - SSC CGL

  • Program Documentation: This refers to detailed documentation that provides a thorough procedural description of a program. It explains how the software is constructed and outlines what the program does, including the requirements for input data and the effects of executing specific programming tasks.
  • OOP (Object-Oriented Programming): OOP is a programming paradigm where programs are viewed as collections of objects. Each object is an instance of a class, and the focus is on using these objects to design and implement software.
  • Debugging: Debugging is the process of identifying, fixing, or bypassing errors (bugs) in computer program code.

Question for Programming Concept
Try yourself:
Which type of programming language is designed to be an intermediary between raw hardware and high-level languages?
View Solution

Language Translator 

It converts programming language into machine language.

Programming Concept | Computer Awareness and Proficiency - SSC CGL

Depending on the programming language used, language translators fall into three categories:

  • Assembler: Converts a program written in assembly language into machine language. Assembly language uses mnemonic codes that are machine-dependent and can be challenging to learn.

  • Interpreter: Converts a high-level language (HLL) program into machine language line-by-line. It halts execution and reports errors immediately if they occur, requiring the user to fix them before continuing. While interpreters are useful for debugging and are suitable for novice programmers, they are generally slower and consume less memory.
  • Compiler: Translates an HLL program into machine language that the processor can understand. Each HLL requires a specific compiler. A compiler processes the entire program at once, creating an object program. Once compiled, the source program is no longer needed as the object program can be executed. The compiler reports all errors along with their line numbers.

Generations of Programming Languages

Programming languages are categorized into five generations, reflecting advancements in technology:

  1. First Generation Languages (1GLs):
    These are low-level languages such as machine language.

  2. Second Generation Languages (2GLs):
    Also low-level, these languages include assembly language.

  3. Third Generation Languages (3GLs):
    High-level languages like Java fall into this category.

  4. Fourth Generation Languages (4GLs):
    These languages feature statements similar to human language and are commonly used in database and scripting programming.

  5. Fifth Generation Languages (5GLs):
    These languages use visual tools to aid program development. Visual Basic is a notable example of a 5GL.

Algorithm

An algorithm is a methodical, step-by-step approach to solving a problem, often used in data processing, calculations, and other computer or mathematical tasks.

Question for Programming Concept
Try yourself:
Which type of language translator converts a high-level language program into machine language line-by-line?
View Solution

Flow Chart

  • A flow chart visually represents the sequence of steps and decisions required to complete a process.
  • Steps are illustrated within diagram shapes and connected by lines and directional arrows.

Error

An error, commonly known as a bug, is an unexpected issue that disrupts the proper functioning of a computer.

Types of Errors:
Errors are classified into four categories:

  • Syntax Error: Occurs when the rules of the programming language are not followed. The compiler detects and reports these errors.
  • Semantic Error: Happens when the statements in the program are not meaningful to the compiler, leading to issues in the code.
  • Logical Error: Results in incorrect or undesired output due to errors in the program's logic.
  • Runtime Error: Arises during program execution, typically due to illegal operations performed in the code.

Tit-Bits

  • Reserved words are words that a programming language has set aside for its own use.
  • Pseudocode is not a programming language, but simply an informal way of describing a program. It does not follow any syntax strictly.
  • Looping is a control structure which is used in a program to execute a particular set of statements repeatedly.
  • Data Flow Diagram (DFD) describes the processes that are involved in a system to transfer data from the input to the file storage and reports generation.
The document Programming Concept | Computer Awareness and Proficiency - SSC CGL is a part of the SSC CGL Course Computer Awareness and Proficiency.
All you need of SSC CGL at this link: SSC CGL
48 videos|22 docs|33 tests

Top Courses for SSC CGL

FAQs on Programming Concept - Computer Awareness and Proficiency - SSC CGL

1. What is a programming language translator?
Ans. A programming language translator is a tool that converts code written in a high-level programming language into machine code that the computer can understand and execute.
2. What are the generations of programming languages?
Ans. There are five generations of programming languages, starting from machine language in the first generation to modern languages like Python and Java in the fifth generation.
3. What is an algorithm in programming?
Ans. An algorithm is a set of step-by-step instructions that outline a solution to a problem. It is a fundamental concept in programming and is used to design and implement code.
4. How is a flow chart used in programming?
Ans. A flow chart is a visual representation of the steps in an algorithm. It helps programmers visualize the logic of their code and identify any potential errors or optimizations.
5. How are errors handled in programming?
Ans. Errors in programming can be handled through techniques like debugging, testing, and error handling mechanisms such as try-catch blocks. Identifying and fixing errors is an essential part of the programming process.
48 videos|22 docs|33 tests
Download as PDF
Explore Courses for SSC CGL exam

Top Courses for SSC CGL

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

mock tests for examination

,

Semester Notes

,

ppt

,

Programming Concept | Computer Awareness and Proficiency - SSC CGL

,

Exam

,

past year papers

,

study material

,

Extra Questions

,

Programming Concept | Computer Awareness and Proficiency - SSC CGL

,

Programming Concept | Computer Awareness and Proficiency - SSC CGL

,

Summary

,

practice quizzes

,

Previous Year Questions with Solutions

,

Objective type Questions

,

video lectures

,

Important questions

,

pdf

,

Sample Paper

,

MCQs

,

shortcuts and tricks

,

Viva Questions

,

Free

;