Skip to main content

Basic Terminiologies

Article No: 1

Data structure

It is a specialized format for organizing and storing the data. A data structure is a way of storing data in a computer so that it can be used efficiently.

Data

Data means value or set of values. In both the singular and plural form, this term is data. For example:

1.      55
2.      18/12/1989
3.      ISBN 81-203-0000-0

In all above examples, some values are represented in different ways. Each value or collection of all such values is termed as data.

Entity

An entity is one that has certain attributes and which may be assigned values. For example, a student in a university is an entity. The possible attributes and the corresponding values for an entity in the present example are:

Entity            :           STUDENT
Attributes     :           NAME                          DOB                 COURSE
Values          :           Amit Chaudhary          18/12/89         BCA

All the students in a university constitute an entity set. Each attribute of an entity set has a range of values, and is called the domain of attribute. Domain is the set of all possible values that could be assigned to the particular attribute. For example, in the STUDENT entity, the attribute SEX has domain as {M, F}.

Information

Processed data or meaningful data is known as information. For example, a set of data is represented during defining the term data, all these data become information if we impose the meaning as mentioned below related to a person:

Data                                                 Meaning

55                                         Age of a person
18/12/1989                          Date of birth of the person
ISBN 81-203-0000-0             Book number, recently published by the person.

Data type

A data type is a term which refers to the kind of data that may appear in computation. For example,

Data             Data type

004               Numeric
Amit             String
18/12/89      Date
| | |              Graphics

Built-in data type

With every programming language, there is a set of data types called built-in data types. For example, in C, FORTRAN and PASCAL, the data types that are available as built-in are listed below:

C                   : int, float, char, double, enum etc.
FORTRAN     : INTEGER, REAL, LOGICAL, CHARACTER…etc.
Pascal           : Integer, Real, Character, Boolean, etc.

With the built-in data types, programming languages allow users a lot of advantages regarding the processing of various types of data. For example, if a user declares a variable of type Real (say), then several things are automatically implied, such as how to store a value for that variable, what are the different operations possible on that type of data, what amount of memory is required to store, etc. All these things are taken care by the compiler or run-time system manager.

Abstract data type

When an application requires a special kind of data which is not available as built-in data type then it is the programmer’s burden to implement his own kind of data. Here, the programmer has to give more effort regarding:

-          How to store value for the data
-          What are the operations that meaningfully manipulate variables of that kind of data
-          Amount of memory required to store for a variable

The programmer has to decide all these things and accordingly implement it. Programmers own data type is termed as abstract data type. Abstract data type is also alternatively termed as user-defined data type.

For example, we want to process dates of the form dd/mm/yy. For this, no built-in data type is known in C, FORTRAN, and Pascal. If a programmer wants to process dates, then an abstract data type, say, Date, can be devised and various operations like: to add few days to a date to obtain another date, to find the days between two dates, to obtain a day for a given date, etc., have to be defined accordingly. Besides these, programmers should decide how to store the data, what amount of memory will be needed to represent a value Date, etc.

An abstract data type, in fact, can be built with the help of built-in data types and other abstract data type(s) already built by the programmer. Some programming languages allow facility to build abstract data type easily. For example, using struct in C, record in Pascal and class in C++, programmers can define their own data types.


Made By: Chaudhary Amit V.

Comments

Popular posts from this blog

Characteristics of a Good Programming Language

Till now there are many high level languages which are very popular, and there are others, which could not become so popular in-spite of being very powerful. There might be many reasons for the success of a language, but one obvious reason is the characteristics of the language. Several characteristics believed to be important with respect to making a programming language good are briefly discussed below. Simplicity A good programming language must be simple and easy to learn and use. For example, BASIC is liked by many programmers only because of its simplicity. Thus, a good programming language should provide a programmer with a clear, simple and unified set of concepts which can be easily grasped. It is also easy to develop and implement a compiler or an interpreter for a programming language that is simple. However, the power needed for the language should not be sacrificed for simplicity. The overall simplicity of a programming language strongly affects the readability of the pr...

Angular 4 and Firebase Authentication: Email/Password

In our  previous  article we saw how to create authentication module using Google identity provider. Now we will see how to implement Email and Password authentication using Firebase. We will use Bootstrap form to create intuitive user interface for sign-up and login using Email and Password. Step 1: Create signUp component. ng generate component signUp Step 2: Create custom form in sign-up.component.html file. The result of above code: Step 3: Add two functions for creating the user and login using Email and Password in src/app/providers/AFAuth.ts file. Step 4: Call createUserWithEmailAndPassword function in service from sign-up.component.ts. Step 5: Update routing configuration in app.module.ts  to include signUp component. Step 6: Update Login form to have Bootstrap form. The result of the above code. Step 7: Enable Email/Password component in Firebas...

Angular 4 and Firebase Authentication: Setup

If you have come to this article, it means you are keen to learn new technology and that too Firebase. I love Firebase because it provides all basic but important features of any web application. Take for example, authentication, which is cumbersome and risky if not implemented with utmost care. And when we have the integration of Angular and Firebase, it becomes a lot easier for a developer to build such crucial modules in less time with minimal efforts. In this article we will create a simple Angular application using Firebase. I am going ahead with the understanding that you know the benefits of Firebase and have little knowledge about it. There are plenty of posts out on the web if you are behind. Step 1: Install Angular CLI (if not installed). npm install -g angular-cli Step 2: Create new Angular 4 project. By default now angular CLI will create Angular 4 project so you need not fret. ng new firebase-authentication Step 3: Check whether the ne...