FOCSE
FOCSE
System Languages
… best used to build operating systems, hardware drivers etc. Fast and gives you low level
(close to the core) access to the computer. These languages are used when speed is critical.
C
C++
Assembler
Architectural Languages
… best used to build frameworks that support (make easy) application building. Not as fast (at
run-time) as system level languages, but they provide a higher level of abstraction that makes
writing software quicker and more productive.
Java
C#
Application Languages
… best used to build the actual business applications like web shopping carts/stores,
connecting to databases and creating the screens for users to interact with the database.
PHP
Ruby
Perl
Python
These language all allow for extremely fast development.
Programmers are freed from the low-level details that you have to contend with when working
with architectural and system level languages.
The fact that they’re all scripting languages (that don’t need to be compiled,) adds to the ease of
use and speed of development.
int main()
{
int num1, num2, temp;
cout<<"Enter 1st Number: ";
cin>>num1;
cout<<"Enter 2nd Number: ";
cin>>num2;
//swapping
temp=num1;
num1=num2;
num2=temp;
int main()
{
int i,j,k,space=10; // to print the pyramid in center, you can also
increase the # of spaces
cout<<" ";
}
for (int j=0;j<2*i-1;j++)
{
cout<<"*";}
space--;
cout<<endl;
}
float function2()
{
data2 = 3.5;
return data2;
}
};
int main()
{
Test o1, o2;
}
#include <iostream>
/*Base Class*/
class A
public:
void Afun(void);
};
// function definiion
void A::Afun(void)
/*Derived Class*/
class B:public A
public:
void Bfun(void);
};
// function definition
void B::Bfun(void)
int main()
B objB;
objB.Afun();
objB.Bfun();
return 0;
(iii) Arrays
An array is a collection of similar items stored in contiguous memory locations. In programming,
sometimes a simple variable is not enough to hold all the data.
(iii) Pointers
A pointer is a variable that holds a memory address where a value lives. A pointer is declared
using the * operator before an identifier. As C++ is a statically typed language, the type is required to
declare a pointer.
(iv) Structures
Structure is a collection of variables of different data types under a single name. It is similar to a
class in that, both holds a collecion of data of different data types.