Exam Details

Subject computer programming
Paper
Exam / Course b.tech
Department
Organization Institute Of Aeronautical Engineering
Position
Exam Date February, 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 (Supplementary) February, 2017
Regulation: IARE-R16
COMPUTER PROGRAMMING
(Common to CSE|EEE|ECE|IT)
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 is a flowchart? Develop a flowchart to determine given string is palindrome or not.
The distance between two cities (in km.) is input through the keyboard. Write a program to
convert and print this distance in meters, feet, inches and centimeters.
2. Explain briefly Client server computing environment.
Write a C program to accept an integer from user and toggle the nth bit of the given number.
Assume the number of bits to be 32.
UNIT II
3. Discuss briefly the switch case statement in C with its syntax and compare with other conditional
control statements.
Assume that you have been given ten words: fortran, java, perl, python, php, javascript,
cpp, ruby, csharp. Write a C program to take these 10 words from user and sorts elements in
lexicographical order. The result must be cpp, csharp, fortran, java, javascript, perl, php,
python, ruby.
4. Given a MM matrix, write a C Program to compute the sum of upper triangular elements.
Note that the program must accept the dimension of matrix and elements from the user.
In number theory, a perfect number is a positive integer that is equal to the sum of its proper
positive divisors, that is, the sum of its positive divisors excluding the number itself (also known
as its aliquot sum). Write a C program to print all Perfect numbers between 1 to n.
UNIT III
5. Explain different methods for transferring data between calling and called function with an
example.
In mathematics, the factorial of a non-negative integer denoted by is the product of all
positive integers less than or equal to n. Design a recurivse C function to compute the factorial
of a integer n. Write a test drive for the same.
6. What do you mean by conditional compilation? Explain in detail.
Write a c program to find transpose of a matrix using pointer.
Page 1 of 2
UNIT IV
7. Explain the following with suitable example
i. Library Function
ii. Nested Structure
With suitable example, discuss the functions for allocating and deallocating memory in the Heap.

8. Explain the following with suitable example
i. Self Referential Structure
ii. Union
There is a structure called employee that holds information like employee code, name, date of
joining. Write a C program to create an array of the structure and enter some data into it. Then
ask the user to enter current date. Display the names of those employees whose tenure is 3 or
more than 3 years according to the given current date.
UNIT V
9. Explain the use of fopen() and fclose() functions.
Write a C program to copy one file to another. While doing so replace all lowercase characters
to their equivalent uppercase characters.
10. What is structure variable? Can a structure variable be defined as member of another structure?
Explain with example.
Write a C program to copy the contents of one file into another using fgetc and fputc function.



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