What is Program and Programming language?

7


It is a set of instructions to complete the task. instruction can be mathematical, logical, conditional, and comparison based.
PSEUDO CODE of addition program
a=10
b=20
c=a+b,
display c
Programming language:-
It is a set of codes to create a program practically and load into a compiler or interpreter.
Software is a set of programs and programs will be developed by a set of codes hence programming language is used to develop a software application.
Type of Programming languages:-
1 Based on Execution:-
1.1.1 low level:-  It will be executed directly under the operating system with no need to use any intermediate.
Binary Code
1.1.2  middle level:-  It will be executed by Single Intermediate means compiler or interpreter to convert program code into machine code.
C, CPP, HTML, Assembly code
1.1.3  high level:-  It will be executed by a minimum of Two Intermediate means multiple compiler and interpreter.
Java,.NET, Objective-c, Kotlin, C#, VB,, Python, PHP these all are programming language is the part of high level.
2  Based on Structure
2.1 Structured:-  This type of programming language syntax structure and program flow is pre-define .program will be started by top to bottom or bottom to top approach.
C, CPP,JAVA,PYTHON,PHP
Procedure, Function, Class
2.2 Unstructured:-  This type of programming languages has no proper structure, it can be executed from any position.
COBOL, PASCAL, FORTON, PYTHON, PHP
Without any procedure, function, class
Tags

إرسال تعليق

7تعليقات

POST Answer of Questions and ASK to Doubt

  1. a=10
    b=20
    print("before swap")
    print(a,b)
    temp=a
    a=b
    b=temp
    print("after swap")
    print(a,b)

    ردحذف
  2. WAP to swap two numbers without using a third variable
    a = 5
    b =9

    a,b=b,a

    print(a,b)

    ردحذف

  3. #convert temperature from Celsius to Fahrenheit?
    # formula --> fahrenheit = (celsius * 1.8) + 32

    celsius=float(input(" Temperature in Celsius : "))
    fahrenheit=(celsius*1.8)+32
    print("{0} degree Celsius is equal to {1} degree Fahrenheit".format (celsius,fahrenheit))

    ردحذف
  4. Fahrenheit= 54.
    Celsius = ((Fahrenheit-32)*5)/9.
    print("Temperature in Celsius is: ");
    print(Celsius);

    ردحذف
  5. COLOUR=("BLUE","RED")
    #COLOUR=("GREEN")
    print(COLOUR[0],COLOUR[1])


    a=12345
    b=23.56
    c="hello"
    print(a,b,c)
    print("a=%d b=%f c=%s"%(a,b,c))
    print("{0} {1} {2}".format(a,b,c))
    #or
    print("a={0} b={1} c={2}".format(a,b,c))

    ردحذف
  6. #Program to convert decimal number into binary


    num=27
    s=""
    num=num//2 #13
    a=num%2 #1
    num=num//2 #6
    b=num%2 #0
    num=num//2 #3
    c=num%2 #1
    num=num//2 #1
    d=num%2 #1
    num=num//2 #0
    print(d,c,b,a)




    ردحذف
  7. #Program of Reverse of Five digit no.
    n=12345
    a=n%10 #5
    n=n//10 #1234
    b=n%10 #4
    n=n//10 #123
    c=n%10 #3
    n=n//10 #12
    d=n%10 #2
    e=n//10 #1

    rn=a*10000+b*1000+c*100+d*10+e*1
    print(rn)


    ردحذف
إرسال تعليق