• Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Have any question?

(+91) 98222 16647
info@simplycoding.in
RegisterLogin
Simply Coding
  • Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Java Introduction

Types of Programming Languages

  • Categories Java Introduction, Introduction to Java, Java
Types of Programming Languages

Here we are going to cover what are different types of programming languages. You can watch our video on programming languages here.

 

Q.1 What is Programming Language?
Ans. A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behaviour of a machine. It could be a rocket, computer or even a smart TV

Q. 2 What is Program?
Ans. A program is nothing but a list of instructions written in a programming language that is used to control the behaviour of a machine.

Q. 3 What is the difference between High Level Language and Low Level Language?
Ans.

High Level LanguageLow Level Language
Written in language which is easy to understand, code and debugWritten in codes or numbers which is difficult to understand, code or debug
Knowledge of hardware is not requiredRequires knowledge of hardware
They are slower, and do not utilize CPU or memory effectivelyThey are faster as the program can directly control CPU and memory
e.g. C, C++, Java etc.e.g. MIPS, NASM etc.

Q. 4 What is Machine Language?
Ans. Machine language is the language which can directly run on CPU. They are numeric, in series of bits which is 0s and 1s representing instructions that a computer can understand.  This makes it tedious and error prone to write machine code manually.
They are not portable, means a language is specific to particular type of machine only ultimately all languages need to be translated to machine language.

Q. 5 What is Assembly Language?
Ans.
Assembly languages helped eliminate much of the error-prone and time-consuming machine language programming. It replaces remembering 1 and 0s with instructions which are mnemonic codes for corresponding machine language . Example it had commands like MOV, JMP, CMP , ADD etc.
Each assembly language is specific to particular computer architecture and sometimes to an operating system  . E.g MIPS, NASM, x86 etc.

Q. 6 What is the difference between Procedural Language and Object Oriented Language?
Ans.

Procedural LanguageObject Oriented Language
It is top down approachIt is bottom up approach
It is modelled as sequence of steps or functionsIt is modelled on real world as interaction between objects.
Program is divided into functionsPrograms is divided into classes
Data is global so less secureData is hidden so is more secure
It does not have features such as inheritance, polymorphism, etc.It provides features such as inheritance, polymorphism
e.g. C, Basic, Fortrane.g. C++, Java, Python

Q. 7 What is the difference between compiler and interpreter?
Ans.  

CompilerInterpreter
The program that translate the source program or source code to machine language or low-level language at once is known as compiler.The program that translate the source program or source code to machine language or low-level language step by step or line by line is known as interpreter.
Faster execution of control statements as compared to the interpreter.Slower execution of control statements as compared to the compiler.
Detected errors in the program get displayed after the entire program is read by compiler.Detected errors in the program get displayed after each instruction read by the interpreter.
Example: C++, Java.Example. Python, PHP.

Q. 8 What are advantages of object oriented programming?
Ans.    

  • Objects are created on real world entities.
  • Complex systems of real world can be converted into software solutions.
  • Objects can be easily reused in other programs due to its re-usability feature.
  • Objected oriented programs focuses the developer to do extensive planning which will reduces programming flaws and better design.
  • Software maintenance of the object oriented program is easier than as compared with structured oriented programming.

Q. 9 What is the difference between source code and object code?
Ans.

source codeobject code
The set of instructions and statements written by computer programmer using a programming language to find solution of problem is known as source code or programThe machine language program produced after the compilation of the source code is known as object code or object module or object program.
Human ReadableMachine Readable
Created by the programmerCreated by the Compiler

 

  • Share:
author avatar
Simply Coding

Previous post

Java Operators
June 16, 2021

Next post

Boolean Algebra
June 16, 2021

You may also like

Questions on Encapsulation
Questions on Encapsulation
4 July, 2021
Questions on Library classes
Questions on Library classes
4 July, 2021
Questions on String 1
What is Java String?
3 July, 2021

Leave A Reply Cancel reply

You must be logged in to post a comment.

Categories

  • Uncategorized
  • Programs
    • Python
    • Java
  • Problems
    • Python
    • Java
    • Web Development
      • Internet
    • Emerging Technologies
  • Notes
    • General
    • QBasic
    • MS Access
    • Web Development
      • XML
      • HTML
      • JavaScript
      • Internet
    • Database
    • Logo Programming
    • Scratch
    • Emerging Trends
      • Artificial Intelligence
      • Internet of Things
      • Cloud Computing
      • Machine Learning
    • Computer Fundamentals
      • Computer Networks
      • E-Services
      • Computer Hardware
    • Python
    • Java
  • School
    • ICSE
      • Computers Class 9
        • Java Introduction
        • Tokens & Data Types
        • Java Operators
        • Math Library
        • if & switch
        • For & While
        • Nested loops
      • Computer Class 10
        • Sample Papers
        • OOPS concepts
        • Functions in Java
        • Constructors
        • Arrays in Java
        • Strings in Java
    • SSC
      • IT Class 11
        • IT Basics
        • DBMS
        • Web Designing
        • Cyber Laws
      • IT Class 12
        • Web Designing
        • SEO
        • Advanced JavaScript
        • Emerging Tech
        • Server Side Scripting
        • E-Com & E-Gov
      • Computer Science 11
      • Computer Science 12
    • CBSE
      • Computer 9
        • Basics of IT
        • Cyber Safety
        • Scratch
        • Python
      • Computer 10
        • Sample Papers
        • Networking
        • HTML
        • Cyber Ethics
        • Scratch
        • Python
      • Computer Science 11
        • Computer Systems
        • Python 11
          • Python Basics
          • Python Tokens
          • Python Operators
          • Python if-else
          • Python loops
          • Python Strings
          • Python List
          • Python Tuple
          • Python Dictionary
          • Python Modules
        • Data Management
      • Computer Science 12
        • Sample Papers
        • Python 12
          • Python Functions
          • Python File Handling
          • Python Libraries
          • Python Recursion
          • Data Structures
        • Computer Networks
        • Data Management
    • ISC
      • Computer Science 11
        • Introduction to Java
        • Values & Data Types
        • Operators
        • if & switch
        • Iterative Statements
        • Functions
        • Arrays
        • String
        • Data Structures
        • Cyber Ethics
      • Computer Science 12
        • Sample Papers
        • Boolean Algebra
        • OOPS
        • Wrapper Classes
        • Functions
        • Arrays
        • String
Simply Coding Computer Courses for School                Privacy Policy     Terms of Use     Contact Us

© 2021 Simply Coding

Login with your site account

Lost your password?

Not a member yet? Register now

Register a new account

Are you a member? Login now