SlideShare a Scribd company logo
GE6151 – COMPUTER PROGRAMMING REG.2013 NOTES
Prepared by V.Balamurugan, Assistant professor / Dept ofIT
Q January 14 May 14 January 15 May 15
1. Adv - 5th generation
computers
(110100111101)2 = (?)8 What is Flow chart? What is super computer?
2. What is pseudo code? Flowchart for biggest of 2number Define algorithm Define pseudo code
3. What are operators in C? What are data types in C? What is a variable? Define keywords
4. Print from 10 to 1 Program for factorial What is ternary operator? Write any 4 I/O statements
5. What is array? What is 2D array? Declare float array with
5values
Define array
6. Write 4 string handling
functions
Write 4 string handling functions What is string array? What is character string
7. Define functions Define recursion Define functions Actual and formal parameter?
8. Define pointer call by value/call byreference What is address operator? Define pointer
9. Define pre-processor What is the Purpose ofunion? What is static storageclass? Define structure
10. Difference b/w struct &union What are pre-processor
directives?
What is #define pre-processor? Define pre-processor
11a Generation of computers(16) Generation of computers(10)
Flowchart for factorial (6)
Organization of computer(10)
PseudoCode-swap two
numbers(6)
Generation of computers(8)
Number system problem(8)
11b Organization of computer(16) Organization of computer (8)
Flowchart for 1+2+3+....+100 (8)
Number system problem(10)
Need of Logical analysis? (6)
Organization of computer (8)
Flowchart–find +/-/0
number(8)
12a Looping in C(16) Prgm - prime or not (8)
Prgm - sum of digits of a
number(8)
Explain operators in C (16)
Explain looping in C(16)
Explain operators in C (8)
Explain constants in C (8)
12b Branching in C(16) Prgm - Roots of quadratic eqn(8)
Prgm - Entry/exit checked loop(8)
Sort an array of numbers (8)
Program using strlen (8)
Explain looping in C (8)
Prgm-Roots of quadratic
eqn(8)
13a Program to reverse a
string(8)
Program for fibbonacci(8)
Prgm - call by reference(8)
Prgm – factorial (8)
Matrix multiplication (8)
Search an element in array(8)
Matrix addition(8)
Search an element in
array(8)
13b Matrix addition(16) Prgm – factorial (8)
Prgm – pointers (8)
Call by value / reference (16) Sort an array of numbers (8)
String handling functions(8)
14a How function is declared? (8)
Call by value & reference(8)
Prgm – bubble sort (16) Recursion (8) Pgrm - Factorial (8)
Prgm – pass by reference(8)
14b Function prototypes(8)
Recursion(8)
Matrix subtraction(16) Prgm–find power of a
number(8)
Prgm-sum of digits of a
number(8)
Prgm-pointer decrement (8)
15a Storage class (8)
Structure(8)
Explain storage class(16) Explain struct withexample(16) Book details using struct(16)
15b Student Mark sheet using
structure(16)
Employee details using structure(16) Explain register storage class(6)
Explain union(6), pre-processor(4)
Explain storage class (8)
Explain union with ex(8)
UNIT 1 UNIT 2 UNIT 3 UNIT 4 UNIT 5
Application & system s/w What is a variable? What is an array? Define function Define structure Adv–
5th generation comp Define keywords String handling functions Define pointers What is pre-processor
Digital computer What are the data types? What is 2D array? Define recursion #define pre-processor
Super computer Program for factorial What is string array? Call by value / reference What is a macro?
Compare RAM and ROM Operators in C Diff b/w struct&union
What is algorithm? Ternary operator Purpose of struct
What is pseudo code? Break and continue Purpose of union
What is flow chart? Program – odd or even Types of storage class
Number problem Diff b/w while & do..While Static storage class
Biggest among 2 numbers Extern storage class
Print from 10 to 1
Generation of computers Looping in C Bubble sort Pgrm – sum of digits Mark sheet – struct
Organization of computer Branching in C Insertion sort Function prototypes Employee – struct
Flowcharts Arithmetic&relational Merge sort Recursion (factorial) union
Number problem Logical&assignment Linear search Call by value&reference Storage classes
Increment/decrement Pgrm – fibbonacci Arithmetic op (pointers) Pre-processor
Formatted/unformatted IO Pgrm – factorial
Pgrm – prime or not Pgrm – matrix add
Pgrm – quadratic eqn Pgrm – matrix sub
Pgrm – matrix multiply
Pgrm-string functions
Pgrm –entry&exit checked
Underlined questions are the most probable questions expected to come for Dec 2015 exam
GE6151 – COMPUTER PROGRAMMING REG.2013 NOTES
Prepared by V.Balamurugan, Assistant professor / Dept ofIT
UNIT 1 
INTRODUCTION TO COMPUTERS
1. What is a computer?
 The computer is an electronic machine that takes input from the user and processes it to generate the output in the
form of useful information.
2. What is a program?
 A program is a set of instructions that can be executed one-by-one in thecomputer.
 Each program performs certain task that is created by the user.
3. What is Hardware and Software?
 Hardware of the computer means, all the visible components of a computer that are needed for proper functioning.
It is the framework. Software is applied on the hardware of the computer. E.x: CPU, monitor,etc
 Software of the computer means, the set of programs that can be executed one by one in acomputer.
It controls all the operations of a computer. Ex: OS, games softwares,etc
4. What is the difference between application software and system software?
 System softwares are inbuilt softwares that are required to start thecomputer.
 Without system software, a computer cannot work properly. Ex : Windows OS, Linux OS, DOS,etc
 Application softwares are optional softwares that are needed to perform certain task needed foruser.
 Without application software, a system can work. Ex: Tally, Games softwares, etc
5. What are the advantages and disadvantages of first generation ofcomputers?
Advantages:
 Based on vacuum tube technology
 During that time, these type of computers
were the fastest.
 Calculations are done in milliseconds.
Disadvantages:-
 Large space is needed.
 It takes more power
 Very costly
 No reliability
 Programming is difficult
6. What are the advantages and disadvantages of second generation ofcomputers?
Advantages:
 Based on transistor technology
 Small in size
 Less heat produced
 Calculations are done in microseconds
 Better reliability
Disadvantages:-
 Very costly
 It needed AC
 Production was difficult
7. What are the advantages and disadvantages of third generation ofcomputers?
Advantages:
 Based on IC (Integrated Chip) technology
 Calculations are done in nano seconds
 Less power needed
 Less maintenance cost
 More reliability
Disadvantages:-
 It needed AC
 Production was difficult
8. What are the advantages and disadvantages of fourth generation of computers?
Advantages:
 Based on Processor technology
 Small in size
 Portable and very much reliable
 Less maintenance cost
 All programming languages aresupported
Disadvantages:-
 Production was difficult
9. What are the advantages and disadvantages of fifth generation of computers?
Advantages:
 Portable
 User friendly
 Supports many OS
 Supports parallel programming
 High speedcalculations
 Large storage capacity.
Disadvantages:-
 There is no program that makes the computer to
operate completely automatic.
Thank you for using www.freepdfconvert.com service!
Only two pages are converted. Please Sign Up to convert all pages.
https://www.freepdfconvert.com/membership

More Related Content

Similar to cp.docx

Bachelor in-computer-application
Bachelor in-computer-applicationBachelor in-computer-application
Bachelor in-computer-application
mahatmagandhiuniversity
 
Algorithm
AlgorithmAlgorithm
Algorithm
Prajakta Bagal
 
U19CS101 - PPS Unit 4 PPT (1).ppt
U19CS101 - PPS Unit 4 PPT (1).pptU19CS101 - PPS Unit 4 PPT (1).ppt
U19CS101 - PPS Unit 4 PPT (1).ppt
Manivannan837728
 
Pragmatic Optimization in Modern Programming - Ordering Optimization Approaches
Pragmatic Optimization in Modern Programming - Ordering Optimization ApproachesPragmatic Optimization in Modern Programming - Ordering Optimization Approaches
Pragmatic Optimization in Modern Programming - Ordering Optimization Approaches
Marina Kolpakova
 
Computer Programming_Unit 1
Computer Programming_Unit 1Computer Programming_Unit 1
Computer Programming_Unit 1
Pradhiba Selvarani
 
C q 1
C q 1C q 1
Synchronizing Parallel Tasks Using STM
Synchronizing Parallel Tasks Using STMSynchronizing Parallel Tasks Using STM
Synchronizing Parallel Tasks Using STM
IJERA Editor
 
MGU SYLLABUS MANUAL-Advance diploma in computer applications
MGU SYLLABUS MANUAL-Advance diploma in computer applicationsMGU SYLLABUS MANUAL-Advance diploma in computer applications
MGU SYLLABUS MANUAL-Advance diploma in computer applications
mahatmagandhiuniversity
 
Microprocessor Microcontroller Interview & Viva Question.pdf
Microprocessor Microcontroller Interview & Viva Question.pdfMicroprocessor Microcontroller Interview & Viva Question.pdf
Microprocessor Microcontroller Interview & Viva Question.pdf
Engineering Funda
 
ISC Frankfurt 2015: Good, bad and ugly of accelerators and a complementary path
ISC Frankfurt 2015: Good, bad and ugly of accelerators and a complementary pathISC Frankfurt 2015: Good, bad and ugly of accelerators and a complementary path
ISC Frankfurt 2015: Good, bad and ugly of accelerators and a complementary path
John Holden
 
Advance diploma in it
Advance diploma in itAdvance diploma in it
Advance diploma in it
mahatmagandhiuniversity
 
Sparklyr: Big Data enabler for R users
Sparklyr: Big Data enabler for R usersSparklyr: Big Data enabler for R users
Sparklyr: Big Data enabler for R users
ICTeam S.p.A.
 
Sparklyr: Big Data enabler for R users - Serena Signorelli, ICTEAM
Sparklyr: Big Data enabler for R users - Serena Signorelli, ICTEAMSparklyr: Big Data enabler for R users - Serena Signorelli, ICTEAM
Sparklyr: Big Data enabler for R users - Serena Signorelli, ICTEAM
Data Science Milan
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
International Journal of Technical Research & Application
 
Machine learning on streams of data
Machine learning on streams of dataMachine learning on streams of data
Machine learning on streams of data
Tomasz Sosiński
 
Overview Of Parallel Development - Ericnel
Overview Of Parallel Development -  EricnelOverview Of Parallel Development -  Ericnel
Overview Of Parallel Development - Ericnel
ukdpe
 
MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"Hideyuki Kawashima
 
Matopt
MatoptMatopt
Machine-Learning-based Performance Heuristics for Runtime CPU/GPU Selection
Machine-Learning-based Performance Heuristics for Runtime CPU/GPU SelectionMachine-Learning-based Performance Heuristics for Runtime CPU/GPU Selection
Machine-Learning-based Performance Heuristics for Runtime CPU/GPU Selection
Akihiro Hayashi
 

Similar to cp.docx (20)

Bachelor in-computer-application
Bachelor in-computer-applicationBachelor in-computer-application
Bachelor in-computer-application
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
U19CS101 - PPS Unit 4 PPT (1).ppt
U19CS101 - PPS Unit 4 PPT (1).pptU19CS101 - PPS Unit 4 PPT (1).ppt
U19CS101 - PPS Unit 4 PPT (1).ppt
 
Pragmatic Optimization in Modern Programming - Ordering Optimization Approaches
Pragmatic Optimization in Modern Programming - Ordering Optimization ApproachesPragmatic Optimization in Modern Programming - Ordering Optimization Approaches
Pragmatic Optimization in Modern Programming - Ordering Optimization Approaches
 
Computer Programming_Unit 1
Computer Programming_Unit 1Computer Programming_Unit 1
Computer Programming_Unit 1
 
C q 1
C q 1C q 1
C q 1
 
Introduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSPIntroduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSP
 
Synchronizing Parallel Tasks Using STM
Synchronizing Parallel Tasks Using STMSynchronizing Parallel Tasks Using STM
Synchronizing Parallel Tasks Using STM
 
MGU SYLLABUS MANUAL-Advance diploma in computer applications
MGU SYLLABUS MANUAL-Advance diploma in computer applicationsMGU SYLLABUS MANUAL-Advance diploma in computer applications
MGU SYLLABUS MANUAL-Advance diploma in computer applications
 
Microprocessor Microcontroller Interview & Viva Question.pdf
Microprocessor Microcontroller Interview & Viva Question.pdfMicroprocessor Microcontroller Interview & Viva Question.pdf
Microprocessor Microcontroller Interview & Viva Question.pdf
 
ISC Frankfurt 2015: Good, bad and ugly of accelerators and a complementary path
ISC Frankfurt 2015: Good, bad and ugly of accelerators and a complementary pathISC Frankfurt 2015: Good, bad and ugly of accelerators and a complementary path
ISC Frankfurt 2015: Good, bad and ugly of accelerators and a complementary path
 
Advance diploma in it
Advance diploma in itAdvance diploma in it
Advance diploma in it
 
Sparklyr: Big Data enabler for R users
Sparklyr: Big Data enabler for R usersSparklyr: Big Data enabler for R users
Sparklyr: Big Data enabler for R users
 
Sparklyr: Big Data enabler for R users - Serena Signorelli, ICTEAM
Sparklyr: Big Data enabler for R users - Serena Signorelli, ICTEAMSparklyr: Big Data enabler for R users - Serena Signorelli, ICTEAM
Sparklyr: Big Data enabler for R users - Serena Signorelli, ICTEAM
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
 
Machine learning on streams of data
Machine learning on streams of dataMachine learning on streams of data
Machine learning on streams of data
 
Overview Of Parallel Development - Ericnel
Overview Of Parallel Development -  EricnelOverview Of Parallel Development -  Ericnel
Overview Of Parallel Development - Ericnel
 
MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"
 
Matopt
MatoptMatopt
Matopt
 
Machine-Learning-based Performance Heuristics for Runtime CPU/GPU Selection
Machine-Learning-based Performance Heuristics for Runtime CPU/GPU SelectionMachine-Learning-based Performance Heuristics for Runtime CPU/GPU Selection
Machine-Learning-based Performance Heuristics for Runtime CPU/GPU Selection
 

More from Balasubramanian699229

Unit 2_ Flow & Error Control in computer networks
Unit 2_ Flow & Error Control in computer networksUnit 2_ Flow & Error Control in computer networks
Unit 2_ Flow & Error Control in computer networks
Balasubramanian699229
 
computer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdfcomputer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdf
Balasubramanian699229
 
Engineers as experimenter in professional ethics
Engineers as experimenter in professional ethicsEngineers as experimenter in professional ethics
Engineers as experimenter in professional ethics
Balasubramanian699229
 
Introduction to Computers.ppt
Introduction to Computers.pptIntroduction to Computers.ppt
Introduction to Computers.ppt
Balasubramanian699229
 
Unit III.ppt
Unit III.pptUnit III.ppt
Unit III.ppt
Balasubramanian699229
 
bargaining.pdf
bargaining.pdfbargaining.pdf
bargaining.pdf
Balasubramanian699229
 
occupational crime.pdf
occupational crime.pdfoccupational crime.pdf
occupational crime.pdf
Balasubramanian699229
 
quicksort (1).ppt
quicksort (1).pptquicksort (1).ppt
quicksort (1).ppt
Balasubramanian699229
 
Civic Virtues_Unit1.pptx
Civic Virtues_Unit1.pptxCivic Virtues_Unit1.pptx
Civic Virtues_Unit1.pptx
Balasubramanian699229
 
Titanic-Powerpoint.pdf
Titanic-Powerpoint.pdfTitanic-Powerpoint.pdf
Titanic-Powerpoint.pdf
Balasubramanian699229
 
3 Mile island.pdf
3 Mile island.pdf3 Mile island.pdf
3 Mile island.pdf
Balasubramanian699229
 
Chernobyl_Nuclear_Disaster_ppt.pptx
Chernobyl_Nuclear_Disaster_ppt.pptxChernobyl_Nuclear_Disaster_ppt.pptx
Chernobyl_Nuclear_Disaster_ppt.pptx
Balasubramanian699229
 

More from Balasubramanian699229 (13)

Unit 2_ Flow & Error Control in computer networks
Unit 2_ Flow & Error Control in computer networksUnit 2_ Flow & Error Control in computer networks
Unit 2_ Flow & Error Control in computer networks
 
computer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdfcomputer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdf
 
Engineers as experimenter in professional ethics
Engineers as experimenter in professional ethicsEngineers as experimenter in professional ethics
Engineers as experimenter in professional ethics
 
Introduction to Computers.ppt
Introduction to Computers.pptIntroduction to Computers.ppt
Introduction to Computers.ppt
 
Unit III.ppt
Unit III.pptUnit III.ppt
Unit III.ppt
 
DATA COMMUNICATIONS.ppt
DATA COMMUNICATIONS.pptDATA COMMUNICATIONS.ppt
DATA COMMUNICATIONS.ppt
 
bargaining.pdf
bargaining.pdfbargaining.pdf
bargaining.pdf
 
occupational crime.pdf
occupational crime.pdfoccupational crime.pdf
occupational crime.pdf
 
quicksort (1).ppt
quicksort (1).pptquicksort (1).ppt
quicksort (1).ppt
 
Civic Virtues_Unit1.pptx
Civic Virtues_Unit1.pptxCivic Virtues_Unit1.pptx
Civic Virtues_Unit1.pptx
 
Titanic-Powerpoint.pdf
Titanic-Powerpoint.pdfTitanic-Powerpoint.pdf
Titanic-Powerpoint.pdf
 
3 Mile island.pdf
3 Mile island.pdf3 Mile island.pdf
3 Mile island.pdf
 
Chernobyl_Nuclear_Disaster_ppt.pptx
Chernobyl_Nuclear_Disaster_ppt.pptxChernobyl_Nuclear_Disaster_ppt.pptx
Chernobyl_Nuclear_Disaster_ppt.pptx
 

Recently uploaded

J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 

Recently uploaded (20)

J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 

cp.docx

  • 1. GE6151 – COMPUTER PROGRAMMING REG.2013 NOTES Prepared by V.Balamurugan, Assistant professor / Dept ofIT Q January 14 May 14 January 15 May 15 1. Adv - 5th generation computers (110100111101)2 = (?)8 What is Flow chart? What is super computer? 2. What is pseudo code? Flowchart for biggest of 2number Define algorithm Define pseudo code 3. What are operators in C? What are data types in C? What is a variable? Define keywords 4. Print from 10 to 1 Program for factorial What is ternary operator? Write any 4 I/O statements 5. What is array? What is 2D array? Declare float array with 5values Define array 6. Write 4 string handling functions Write 4 string handling functions What is string array? What is character string 7. Define functions Define recursion Define functions Actual and formal parameter? 8. Define pointer call by value/call byreference What is address operator? Define pointer 9. Define pre-processor What is the Purpose ofunion? What is static storageclass? Define structure 10. Difference b/w struct &union What are pre-processor directives? What is #define pre-processor? Define pre-processor 11a Generation of computers(16) Generation of computers(10) Flowchart for factorial (6) Organization of computer(10) PseudoCode-swap two numbers(6) Generation of computers(8) Number system problem(8) 11b Organization of computer(16) Organization of computer (8) Flowchart for 1+2+3+....+100 (8) Number system problem(10) Need of Logical analysis? (6) Organization of computer (8) Flowchart–find +/-/0 number(8) 12a Looping in C(16) Prgm - prime or not (8) Prgm - sum of digits of a number(8) Explain operators in C (16) Explain looping in C(16) Explain operators in C (8) Explain constants in C (8) 12b Branching in C(16) Prgm - Roots of quadratic eqn(8) Prgm - Entry/exit checked loop(8) Sort an array of numbers (8) Program using strlen (8) Explain looping in C (8) Prgm-Roots of quadratic eqn(8) 13a Program to reverse a string(8) Program for fibbonacci(8) Prgm - call by reference(8) Prgm – factorial (8) Matrix multiplication (8) Search an element in array(8) Matrix addition(8) Search an element in array(8) 13b Matrix addition(16) Prgm – factorial (8) Prgm – pointers (8) Call by value / reference (16) Sort an array of numbers (8) String handling functions(8) 14a How function is declared? (8) Call by value & reference(8) Prgm – bubble sort (16) Recursion (8) Pgrm - Factorial (8) Prgm – pass by reference(8) 14b Function prototypes(8) Recursion(8) Matrix subtraction(16) Prgm–find power of a number(8) Prgm-sum of digits of a number(8) Prgm-pointer decrement (8) 15a Storage class (8) Structure(8) Explain storage class(16) Explain struct withexample(16) Book details using struct(16) 15b Student Mark sheet using structure(16) Employee details using structure(16) Explain register storage class(6) Explain union(6), pre-processor(4) Explain storage class (8) Explain union with ex(8) UNIT 1 UNIT 2 UNIT 3 UNIT 4 UNIT 5 Application & system s/w What is a variable? What is an array? Define function Define structure Adv– 5th generation comp Define keywords String handling functions Define pointers What is pre-processor Digital computer What are the data types? What is 2D array? Define recursion #define pre-processor Super computer Program for factorial What is string array? Call by value / reference What is a macro? Compare RAM and ROM Operators in C Diff b/w struct&union What is algorithm? Ternary operator Purpose of struct What is pseudo code? Break and continue Purpose of union What is flow chart? Program – odd or even Types of storage class Number problem Diff b/w while & do..While Static storage class Biggest among 2 numbers Extern storage class Print from 10 to 1 Generation of computers Looping in C Bubble sort Pgrm – sum of digits Mark sheet – struct Organization of computer Branching in C Insertion sort Function prototypes Employee – struct Flowcharts Arithmetic&relational Merge sort Recursion (factorial) union Number problem Logical&assignment Linear search Call by value&reference Storage classes Increment/decrement Pgrm – fibbonacci Arithmetic op (pointers) Pre-processor Formatted/unformatted IO Pgrm – factorial Pgrm – prime or not Pgrm – matrix add Pgrm – quadratic eqn Pgrm – matrix sub Pgrm – matrix multiply Pgrm-string functions Pgrm –entry&exit checked Underlined questions are the most probable questions expected to come for Dec 2015 exam
  • 2. GE6151 – COMPUTER PROGRAMMING REG.2013 NOTES Prepared by V.Balamurugan, Assistant professor / Dept ofIT UNIT 1  INTRODUCTION TO COMPUTERS 1. What is a computer?  The computer is an electronic machine that takes input from the user and processes it to generate the output in the form of useful information. 2. What is a program?  A program is a set of instructions that can be executed one-by-one in thecomputer.  Each program performs certain task that is created by the user. 3. What is Hardware and Software?  Hardware of the computer means, all the visible components of a computer that are needed for proper functioning. It is the framework. Software is applied on the hardware of the computer. E.x: CPU, monitor,etc  Software of the computer means, the set of programs that can be executed one by one in acomputer. It controls all the operations of a computer. Ex: OS, games softwares,etc 4. What is the difference between application software and system software?  System softwares are inbuilt softwares that are required to start thecomputer.  Without system software, a computer cannot work properly. Ex : Windows OS, Linux OS, DOS,etc  Application softwares are optional softwares that are needed to perform certain task needed foruser.  Without application software, a system can work. Ex: Tally, Games softwares, etc 5. What are the advantages and disadvantages of first generation ofcomputers? Advantages:  Based on vacuum tube technology  During that time, these type of computers were the fastest.  Calculations are done in milliseconds. Disadvantages:-  Large space is needed.  It takes more power  Very costly  No reliability  Programming is difficult 6. What are the advantages and disadvantages of second generation ofcomputers? Advantages:  Based on transistor technology  Small in size  Less heat produced  Calculations are done in microseconds  Better reliability Disadvantages:-  Very costly  It needed AC  Production was difficult 7. What are the advantages and disadvantages of third generation ofcomputers? Advantages:  Based on IC (Integrated Chip) technology  Calculations are done in nano seconds  Less power needed  Less maintenance cost  More reliability Disadvantages:-  It needed AC  Production was difficult 8. What are the advantages and disadvantages of fourth generation of computers? Advantages:  Based on Processor technology  Small in size  Portable and very much reliable  Less maintenance cost  All programming languages aresupported Disadvantages:-  Production was difficult 9. What are the advantages and disadvantages of fifth generation of computers? Advantages:  Portable  User friendly  Supports many OS  Supports parallel programming  High speedcalculations  Large storage capacity. Disadvantages:-  There is no program that makes the computer to operate completely automatic.
  • 3. Thank you for using www.freepdfconvert.com service! Only two pages are converted. Please Sign Up to convert all pages. https://www.freepdfconvert.com/membership