Exam Details

Subject computer programming
Paper
Exam / Course b.tech
Department
Organization Institute Of Aeronautical Engineering
Position
Exam Date December, 2016
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, 2016
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. What do you mean by type conversion? When it is required? Explain with suitable example.

The Scalene triangle is one category of triangles which have 3 unequal sides and 3 unequal angles.
Assume that user inputs 2 sides and the in between angle. Write a C program to compute area
for this scenario using the formula.
k ab (sin
2. Explain how evaluation of expression takes place in computer. Evaluate the following expression:
i 2 3/4 4/4 8 2 5/8
If a five-digit number is input through the keyboard, write a C program to print a new number
by adding one to each of its digits. For example if the number that is input is 12391 then the
output should be displayed as 23402.
UNIT II
3. While purchasing certain items, a discount of 10% is offered if the quantity purchased is more
than 1000. If quantity and price per item are input through the keyboard, write a C program to
calculate the total expenses.
Write a C program to reverse a input string given by user (without using string library functions).

4. In number theory, the prime factors of a positive integer are the prime numbers that divide that
integer exactly. For instance 2 and 5 are the prime factors of 10. Write a C program to enter
any number and find all Prime factors of the number.
Write a C program that computes frequency of characters in a string i.e. which character is
present how many times in a string. For example in the string "code" each of the character
and has occurred one time. Only lower case alphabets need to be considered for
counting and other characters (uppercase and special characters) must be ignored.
Page 1 of 2
UNIT III
5. Define a macro MIN and MAX that gives the minimum and maximum of two values. Then write
a C program to test the macro definition.
Write a function called arraySum that takes two arguments: an integer array and the number of
elements in the array. Have the function return as its result the sum of the elements in the array.

6. Write a C program to pass an array containing age of person and number of persons to a function.
This function should find average age and display the average age in main function.
Write a c program to swap three integers in cyclic order using call by reference.
UNIT IV
7. How Structure and unions are assigned memory? Explain with diagram.
Write a function elapsed_time that takes as its arguments two time structures and returns a
time structure that represents the elapsed time (in hours, minutes, and seconds) between the two
times.
8. What is structure variable? Can a structure variable be defined as member of another structure?
Explain with example.
Write a C program which asks the user to enter today's date and calculates tomorrow's date and
display the results.
UNIT V
9. Is it possible to pass arguments to C programs when they are being executed? Justify.
Write a C program to write name and height of five students using an array of structures to a file
via fwrite(). Further, the program must read the array from the file and display on the screen.

10. What is EOF? How can we read a file, if it has multiple EOF characters? Compare with examples
the text file and binary file.
Write a program that merges lines alternately from two files and writes the results to new file.
If one file has less number of lines than the other, the remaining lines from the large file should
be simply copied into the target file.
Page 2 of 2


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