Exam Details
Subject | computer programming | |
Paper | ||
Exam / Course | b.tech | |
Department | ||
Organization | Institute Of Aeronautical Engineering | |
Position | ||
Exam Date | December, 2017 | |
City, State | telangana, hyderabad |
Question Paper
Hall Ticket No Question Paper Code: ACS001
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech I Semester End Examinations (Regular) December, 2017
Regulation: IARE R16
COMPUTER PROGRAMMING
Common for (CSE IT ECE EEE)
Time: 3 Hours Max Marks: 70
Answer ONE Question from each Unit
All Questions Carry Equal Marks
All parts of the question must be answered in one place only
UNIT I
1. Write an algorithm to read the radius and calculate the area of a circle. Also draw the flow chart
for the same. State which approach do you prefer to use and why?
Find the result of evaluation for the following expressions.
i. 5 3 4 2
ii. 4 5
iii. 5 10 2 3 5
iv. +2.25 -3.85
v. 2 2 2 2 5
2. Define flowchart. List the symbols used in flowchart. Draw a flowchart to check the given number
is a perfect number or not.
Which symbols are used for pre increment and post increment operations? What is the output
for the following C program? Justify your answer.
void main()
int
printf("%d
UNIT II
3. What are entry controlled and exit controlled looping structures in Explain with the help
of flow chart.
The grade of an examination is decided based on the rules as shown in Table 1.
Table 1
Marks 0-39 40-59 60-69 70-79 80-89 90-100
Grade F D C B A S
Write a C program to read the name and marks of a student and display the grade using switch
statement.
Page 1 of 2
4. Elaborate on various decision making constructs in C. Give a simple example in each case.
Develop a C program which takes a number, reverse its digits and add the reverse to the original.
If the sum is not a palindrome, repeat the procedure with the sum until the result is palindrome.
UNIT III
5. What is recursion? What are the advantages and disadvantages of recursion over iteration?
Justify the above to find the Factorial of a given number
Develop a C program to find the sum of the elements in an one dimensional array using pointers.
6. How to return multiple values from one function to another using return statement? Illustrate
with an example C program.
Write a C program to compare two strings using pointers.
UNIT IV
7. Discuss how structures and unions are declared, initialized and its members are accessed.
How enumerated data types are useful to the user? Write a C program to display number of days
in each month using enumerated data type.
8. How the memory space can be utilized efficiently using bit fields? Justify your answer.
Develop a C program which does the following
Define a structure 'student' with details like student name, marks for 3 subjects and total marks.
Read marks for 3 subjects of students.
Calculate the total mark of each student and store them.
Display the details of the student who scored the highest marks.
UNIT V
9. Demonstrate the file functions fclose(), and putc() to copy one file to another.
Write a C program that merges lines alternately from two files and writes the results to destination
file. If one file has less lines than the other, the remaining lines from the larger file should simply
be copied to destination file.
10. Discuss the primary advantages of using a data file. Describe various file operations. Demonstrate
various file accessing modes.
A file named DATA contains a series of integer numbers. Code a program to read these
numbers and then write all numbers to a file to be called ODD and all numbers to
a file to be called EVEN.
Page 2 of 2
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech I Semester End Examinations (Regular) December, 2017
Regulation: IARE R16
COMPUTER PROGRAMMING
Common for (CSE IT ECE EEE)
Time: 3 Hours Max Marks: 70
Answer ONE Question from each Unit
All Questions Carry Equal Marks
All parts of the question must be answered in one place only
UNIT I
1. Write an algorithm to read the radius and calculate the area of a circle. Also draw the flow chart
for the same. State which approach do you prefer to use and why?
Find the result of evaluation for the following expressions.
i. 5 3 4 2
ii. 4 5
iii. 5 10 2 3 5
iv. +2.25 -3.85
v. 2 2 2 2 5
2. Define flowchart. List the symbols used in flowchart. Draw a flowchart to check the given number
is a perfect number or not.
Which symbols are used for pre increment and post increment operations? What is the output
for the following C program? Justify your answer.
void main()
int
printf("%d
UNIT II
3. What are entry controlled and exit controlled looping structures in Explain with the help
of flow chart.
The grade of an examination is decided based on the rules as shown in Table 1.
Table 1
Marks 0-39 40-59 60-69 70-79 80-89 90-100
Grade F D C B A S
Write a C program to read the name and marks of a student and display the grade using switch
statement.
Page 1 of 2
4. Elaborate on various decision making constructs in C. Give a simple example in each case.
Develop a C program which takes a number, reverse its digits and add the reverse to the original.
If the sum is not a palindrome, repeat the procedure with the sum until the result is palindrome.
UNIT III
5. What is recursion? What are the advantages and disadvantages of recursion over iteration?
Justify the above to find the Factorial of a given number
Develop a C program to find the sum of the elements in an one dimensional array using pointers.
6. How to return multiple values from one function to another using return statement? Illustrate
with an example C program.
Write a C program to compare two strings using pointers.
UNIT IV
7. Discuss how structures and unions are declared, initialized and its members are accessed.
How enumerated data types are useful to the user? Write a C program to display number of days
in each month using enumerated data type.
8. How the memory space can be utilized efficiently using bit fields? Justify your answer.
Develop a C program which does the following
Define a structure 'student' with details like student name, marks for 3 subjects and total marks.
Read marks for 3 subjects of students.
Calculate the total mark of each student and store them.
Display the details of the student who scored the highest marks.
UNIT V
9. Demonstrate the file functions fclose(), and putc() to copy one file to another.
Write a C program that merges lines alternately from two files and writes the results to destination
file. If one file has less lines than the other, the remaining lines from the larger file should simply
be copied to destination file.
10. Discuss the primary advantages of using a data file. Describe various file operations. Demonstrate
various file accessing modes.
A file named DATA contains a series of integer numbers. Code a program to read these
numbers and then write all numbers to a file to be called ODD and all numbers to
a file to be called EVEN.
Page 2 of 2
Other Question Papers
Subjects
- ac machines
- advanced databases
- aircraft materials and production
- aircraft performance
- aircraft propulsion
- aircraft systems and controls
- analog communications
- analysis of aircraft production
- antennas and propagation
- applied physics
- applied thermodynamics
- basic electrical and electronics engineering
- basic electrical engineering
- building materials construction and planning
- business economics and financial analysis
- compiler design
- complex analysis and probability distribution
- computational mathematics and integral calculus
- computer networks
- computer organization
- computer organization and architecture
- computer programming
- concrete technology
- control systems
- data structures
- database management systems
- dc machines and transformers
- design and analysis of algorithms
- design of machine members
- digital and pulse circuits
- digital communications
- digital ic applications using vhdl
- digital logic design
- digital system design
- disaster management
- disaster management and mitigation
- discrete mathematical structures
- dynamics of machinery
- electrical circuits
- electrical measurements and instrumentation
- electrical technology
- electromagnetic field theory
- electromagnetic theory and transmission lines
- electronic circuit analysis
- electronic devices and circuits
- elements of mechanical engineering
- engineering chemistry
- engineering drawing
- engineering geology
- engineering mechanics
- engineering physics
- english
- english for communication
- environmental studies
- finite element methods
- fluid mechanics
- fluid mechanics and hydraulics
- fundamental of electrical and electronics engineering
- fundamental of electrical engineering
- gender sensitivity
- geotechnical engineering
- heat transfer
- high speed aerodynamics
- hydraulics and hydraulic machinery
- image processing
- industrial automation and control
- instrumentation and control systems
- integrated circuits applications
- introduction to aerospace engineering
- kinematics of machinery
- linear algebra and calculus
- linear algebra and ordinary differential equations
- low speed aerodynamics
- machine tools and metrology
- mathematical transform techniques
- mathematical transforms techniques
- mechanics of fluids and hydraulic machines
- mechanics of solids
- mechanism and machine design
- metallurgy and material science
- microprocessor and interfacing
- modern physics
- network analysis
- object oriented analysis and design
- object oriented programming through java
- operating systems
- optimization techniques
- power electronics
- power generation systems
- probability and statistics
- probability theory and stochastic processes
- production technology
- programming for problem solving
- pulse and digital circuits
- reinforced concrete structures design and drawing
- software engineering
- strength of materials - i
- strength of materials - ii
- structural analysis
- surveying
- theory of computation
- theory of structures
- thermal engineering
- thermo dynamics
- thermodynamics
- tool design
- transmission and distribution systems
- unconventional machining processes
- waves and optics
- web technologies