Career
Career
Career
Name of presentation
Career Option
Computer and Information Technology is a very
fast and complex field.
Software
Hardware
Internet and Web
Operations
Services
IT-Enabled Services
Software
Analytical reasoning
Computer awareness
Quantitative Ability
Logical reasoning
Affiliated Important Colleges
A.C.College of Engineering
andTechnology.
Alagappa University
Anna University
Annamalai University
Avinashilingam Institute
HomeScience and Higher
Education for Women
Affiliated Important Colleges
Ayya Nadar Janaki Ammal
College
Bharathiyar University
Bharathidasan University
CIT
Hindustan College of
Engineering
Affiliated Important Colleges
Karunya University
Gumaraguru Engineering
College
PSG Eng. And Technology
Bharathidasan University
KGISL - Coimbatore
Affiliated Important Colleges
Mepco Engineering College.
Thiyagarajar Engineering College.
University of Madras.
MKU
SRM University
S.S.N. School of Advanced
Software Engineering
Some Useful Websites
Some Useful Websites
Some Useful Websites
Some Useful Websites
Technical
C
C++
Java Questions
OS
Data Structure
1967
BCPL B 1970
Dennis Ritchie
1972 C
Bjjrane Stroustrup
1983 C++
James Gosling
1991 OAK
Sun Microsystems
1995 JAVA
Microsoft
2000 C#
Source Code
Compilation
Machine Code
(100110101)
Input Program Output
.
source code Preprocessor expanded
source code
expanded Compiler assembly
source code source code
assembly source Assembler object code
code
object code Linker executable
code
executable code Loader execution
Main Differences:
.
1. OOP’S
2. Speed : C applications are faster to compile
and execute than C++ applications.
Some Differences:
1. Programming-input /output
2. Programming-include
3. Programming-String type
Disadvantages of C are:
.
• C is a platform independent, But compiler
dependent.
• C doesn't support for garbage collection.
• There is no runtime checking.
• There is no strict type checking.
For ex: we can pass an integer value for the
floating data type).
• As the program extends it is very difficult to fix
the bugs
No Runtime Checking
.
Eg..,
main( )
{
int num[40], i ;
for ( i = 0 ; i <= 100 ; i++ )
scanf(“%d”,&num[i]);
}
Motorola
(110100111)
Solution
Intel
Source Code Fails (100110101)
Compiler
Intermediate Fails
Code
(XXXXXXXXX)
Motorola
(110100111)
Execute
Program
Execute
Execute
Execute
Intel
Source Code Execute (100110101)
Intermediate
Code
Specific Agent
(XXXXXXXXX)
Runtime
Compilation
Compiled Intermediate Code
(XXXXXXXXX)
Specific Agent
Execute
Motorola
(110100111)
James Gosling
.
Import java.io.*;
.
public class HelloWorld {
System.out.println("Hello World!");
}
public denotes that a method can be called from code in
.
other classes, or that a class may be used by classes
outside the class hierarchy.
static indicates that the method is a static method,
associated with the class rather than object instances.
void indicates that the main method does not return any
value to the caller.
main is not a keyword in the Java language. This method
must accept an array of String objects. (The method name
"main" is not a keyword in the Java language. It is simply the name of the method the
Java launcher calls to pass control to the program. Java classes that run in managed
environments such as applets and Enterprise Java Beans do not use or need a main()
method.)
Some Similarities between
C++ and Java
• Simple (primitive) types: int, double, char
• Control Structures if-else, switch, while, for
• Arithmetic expressions
• Both have a string type:
C++ string, Java String.
• Arrays
• Both have classes.
• Both have a "main".
Some Differences between
C++ and Java
• C++ is platform independent, but compiler dependent
language
Runtime
Compilation
MSIL
Language
(XXXXXXXXX)
Specific
Compiler CLR
Execute
Motorola
(110100111)
Elements Of Languages
In C..,
int i = 2 * 3 / 4 + 4 / 4 + 8 - 2 + 5 / 8
Stepwise evaluation of this expression is
.
shown below:
int i = 2 * 3 / 4 + 4 / 4 + 8 - 2 + 5 / 8
i=6/4+4/4+8-2+5/8 operation: *
i=1+4/4+8-2+5/8 operation: /
i = 1 + 1+ 8 - 2 + 5 / 8 operation: /
i=1+1+8-2+0 operation: /
i=2+8-2+0 operation: +
i = 10 - 2 + 0 operation: +
i = 8 + 0 operation : -
i = 8 operation: +
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10;
clrscr();
printf("\n%d..%d..%d",++a,a++,++a);
getch();
}
Ans:
13, 11, 11
#include<stdio.h>
#include<conio.h>
void main()
{
int i=10,j=20;
clrscr();
printf("%d\n",i+++j);
printf("%d %d\n",i,j);
getch();
}
Ans
30
11,20
#include<stdio.h>
#include<conio.h>
void main()
{
int x=10,y=20,z=5,ans;
clrscr();
ans=x<y<z;
printf("%d",ans);
getch();
}
Ans:
1
#include<stdio.h>
#include<conio.h>
void main()
{
char str1[]="hello";
char str2[]="hello";
clrscr();
if(str1 == str2)
printf("Equal");
else
printf("not equal");
getch();
}
Ans:
Not Equal
#include<stdio.h>
#include<conio.h>
void main()
{
int i=10,j=5,k=0;
clrscr();
k=SQUARE(i-j);
printf("%d",k);
getch();
}
Ans:
SQUARE(X) (X*X)
10-5 * 10-5
10-50-5
-40-5
-45
#include<stdio.h>
#include<conio.h>
void main()
{
int x;
clrscr();
k=Macro(2<3,7<2);
printf("%d",k);
getch();
}
Ans: