LANGUAGE PROCESSORS?

Language processors


Programmers write codes in high-level language however the computer does not understand any other language other than its own machine language of zero and one that is binary language.

Therefore it is necessary to process the High-level language into binary language so it is done by the language processors

  • ASSEMBLER

This language processor converts the program written in assembly language into machine language

  • INTERPRETER

This language processor converts high-level language program into machine language(binary) by converting and executing line by line.

If there is any error in any line it reports at the same time and program execution can not resume until the error is rectified.

Advantage

  • For error debugging, an interpreter is useful as it reports the error at the same time.

Disadvantage

  • But once errors are removed usage of memory takes place as interpreter must always be present in memory
  • COMPILER

It also converts the High-level language into machine language(binary) but conversion method is different it converts in one go and reports all the error of program after conversion along with line numbers.

Advantage

  • After all, error is are removed, the program is recompiled and after that, the compiler is not needed in the memory as the object program is available

Disadvantage

  • Interpreter is much better for error removal than compiler

 

WHAT IS FIRMWARE?

Firmware

Firmware is basically a software type which is pre-installed in the device non volatile memory(like ROM) from the device manufacturer.

We can not change or access the firmware easily

It can be updated if the manufacturing company allow us to update.The update is for bug fixes or adding new features to the device

It can be hacked

Why it is required

  • It defines the functionality of the device
  • it is controlling software for modern electronic
  • used to run an application program on the device
  • used to protect the device from malware

Guide to some of Programming languages ?

Complete Guide To Perl, PHP, and Python?

These are very popular programming language each with its own advantage and disadvantages.I am publishing this article so that the people will get a brief guide to these languages and it will be helpful for them who wants to learn these languages

Perl

Perl is a general purpose language, high-level dynamic programming language.currently, the popular version is Perl 5.It is derived from different languages like c.

It is useful for web development, system administration, network programming and game development.

Advantages

  • In Perl, there are many ways to do the same thing
  • It is portable and available for all platforms
  • since Perl is very old language it has vast community support
  • Perl code is very short and there is a whole set of one line code available
  • It is very good at handling regular expression
  • Perl CPAN( Comprehensive Perl Archive Network) provides a huge number of modules and tested code most of which are completely free
  • It should be used depending upon the use case.It can be used as a functional language, sometimes object oriented, Procedural.It depends on programmer how to use

Disadvantages

  • Since its syntax is complex sometimes new programmers find it difficult to understand it, because the same code can be written in many different ways
  • It has poor documentation for object oriented approach compared to Python
  • It is slow as compared to other scripting languages

Popular Frameworks and Popularity

  • Through Perl is old language, its growth has been slow compared to some other languages
  • Catalyst, dancer, and mojolicious are some of the popular frameworks

Basic Syntax

#!/usr/bin/perl

Print “hello programmers”;

File extension is  .pl

 

PHP(PHP Hypertext Preprocessor)

It is also General purpose language but it is mainly used for web development.It is server side scripting language very popular for back end web development compared to other languages.Used by some big companies like Facebook, YouTube, google etc.

The latest version is 7.1

Advantages

  • Most people prefer PHP when it comes creating dynamic web pages because it is easier to set local host and most of Web Hosting providers offer to build in PHP support
  • It is easy to use.The syntax is almost similar as that of c language.Anyone can adopt it
  • There are lot of frameworks available for PHP and has good community support
  • It is stable
  • code maintenance is quick
  • Has strong database support

Disadvantages

  • Some libraries written in PHP are procedural, so it is difficult for programmers from object oriented background
  • Since it is open source security is the main challenge.As code is available to all hackers can easily find weakness in code
  • Its error handling capabilities are poor

Popular Frameworks and Popularity

  • PHP is still very popular and one of the top language used by web developers to create dynamic websites
  • Laravel, Symfony, cakePHP are some of the popular frameworks

Basic Syntax

<? php

echo “hello”;

?>

File extension is .php

Python

It is a general purpose high-level language designed by Guido Van Rossum in 1980.It is easy to learn.It is very popular nowadays.It can be used for web development, mobile game development, mobile apps development, cloud computing, data analytics.

It uses indentation which eliminates need of curly brackets and colon

Advantages

  • It is well documented
  • can be used game development which is different from other languages
  • easier to learn than c and c++
  • The code is short compared to other languages

Disadvantages

  • indentation is an issue sometimes people find irritating as the code does not work properly
  • slower than c and c++

Popular frameworks and popularity

  • very popular in current scenario
  • popular frameworks are Django, web2py, flask

Basic Syntax

print “hello”

File extension is .py

So which is the best language among these to learn and use?

There is no specific answer to this question because it depends on what you want to do and how can you do it efficiently

In my opinion, if web development is first priority then PHP should be first priority

For test automation and scripting python and Perl is popular

You should learn all these languages and use them based on the situation and need

Beginners can start with python as it is easier to learn later on they can learn PHP and Perl

Basic logic for all programming language is same only syntax differs and if you have learned any one programming language it is easier to shift into the other languages.

 

WHAT IS LASER?

 Laser

Laser stands for Light amplification by stimulated emission of radiation.The unique property of laser emission of coherent light makes the application of laser cutting and lithography possible Laser pointing is also an application based on the property of laser to follow a narrow path over great distances.

Applications

Defence

  • Marking targets
  • guiding ammunition
  •  Blinding troops
  • missiles
  • Electro-optical counter measure

Medicine and Healthcare

  • kidney stone treatment
  • tissue repairs
  • cosmetology
  • bloodless surgery
  • dentistry
  • neurology

Enforcement and Scientific research

  • Laser fingerprint detection
  • forensic science
  • spectroscopy
  • laser scattering microscopy
  • metrology

Commercial and entertainment

  • Laser printers
  • optical disks
  • bar code scanners
  • thermometers
  • laser pointers
  • 3D holograms
  • laser light shows
  • Decoration

 

Why Do 3G Smartphones does not support a 4G SIM Card?

3G smartphones do not support 4G SIM cards because 3G works on Wide-band code division multiple access(WCDMA) technology whereas 4G the fourth generation of mobile communication works on Long term evolution(LTE) standard, is comparatively a new technology that is different from WCDMA.

Therefore 4G SIM card will not work on 3G handset

WHAT IS ACCELEROMETER?

Accelerometer

It is an electromechanical device that measures acceleration forces.

Usage

It can be used to measure vibration on vehicles, safety monitoring devices, industrial machines and process control systems.These are also used to measure seismic activity, inclination, dynamic distance and speed with or without gravity.

Working

The accelerometer is commonly made either of the piezoelectric, photosensitive or capacitive element which is used to convert the mechanical motion into an electrical signal.The piezoelectric is the most common form of accelerometer that uses microscopic crystal structures.when the static crystal structures are deformed due to physical force or bending, it creates a voltage from the stress and accelerometer interprets the voltage to determine velocity and orientation.

Computer Memory?

Memory

Memory is Just like human brain it is used to store data and instruction. Computer memory is a storage space in the computer where data is to be processed and instructions required for processing are stored.

Types of computer memory

  • Main Memory- Main memory-Main memory is fast, it has Limited capacity and data is lost when power is switched off.
  • Secondary memory-It is an external memory and non-volatile in nature it is slower than main memory and used for storing data permanently.It is present even if power is switched off.

Units of memory

A computer stores and process data in the form of binary numbers.A binary is either a 0(off voltage) or 1(on voltage) and is known as bit(short form of binary digit)

4 bits=1 nibble

8 bits=1 byte

1024 bytes=1 kilobyte(KB)

1024 KB=1 megabyte(MB)

1024 MB=1 gigabyte(GB)

1024 GB=1 Terabyte(TB)

1024 TB=1 petabyte(PB)

Parts of main memory

RAM-Random access memory

  • It is volatile memory i.e it only last till computer is powered on
  • All programmers embed their programs in RAM
  • It is fast than secondary storage
  • It is temporary

ROM-Read only memory 

  • Data stored in ROM is not erased even if power is switched off
  • It is permanent and nonvolatile
  • The data in ROM can’t be changed by user as it is embedded inside the processor
  • Programs related to operating system are stored in ROM
  • It is used to tell the computer how to load the operating system when it is switched on or rebooted

CACHEThis memory I have explained in deep in my previous post you can visit by clicking on                    the link 

Parts of secondary memory

Magnetic media

Hard drive

  • Used to store large amount of data and stores data in one or more circular magnetic disks
  • Permanent storage
  • rewritable and erasable
  • slower than RAM and ROM
  • Usually fixed inside the computer

Optical media

Compact disk

  • Can be used to store information and can’t be used to store data
  • have low storage space

Flash Memories/drives

  • Pendrive and SD card are flash memories
  • have a large storage capacity
  • smaller in size
  • most use memory today
  • easily to carry