Exam Details
Subject | computer programming | |
Paper | ||
Exam / Course | b.tech | |
Department | ||
Organization | Institute Of Aeronautical Engineering | |
Position | ||
Exam Date | May, 2017 | |
City, State | telangana, hyderabad |
Question Paper
Hall Ticket No Question Paper Code: ACS001
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech II Semester End Examinations (Regular) May, 2017
Regulation: IARE R16
Computer Programming
(Common for AE/CE/ME)
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 are the rules for naming an identifier and list some valid identifiers.
Write a C program to find whether a given year is leap year or not using ternary operator.
2. Explain with examples any 4 data type to store numeric' s in C programming language?
Write a C program to evaluate the polynomial shown below:
4x4 9x3 7x 28
What is type casting? Explain with example.
UNIT II
3. Explain about dangling else problem with an example.
Write a program to reverse a given string without using string library functions.
4. Describe multi branching statement in C using its syntax and flow chart.
Write a C program to remove duplicate elements in an integer array.
UNIT III
5. Using an example compare the declarations char and char *a.
Write a C program to demonstrate the Call By Value and Call By Reference functions by taking
an example of swapping the values of two variables.
6. Explain the following pre-processor directives briefly. #define, #include, #undef, #ifndef.
Write a C program to find largest element in an array using pointers.
UNIT IV
7. What is dynamic memory allocation? What are the functions used for it? Explain.
Write a C Program to add two complex numbers by passing structure to a function.
Page 1 of 2
8. What is Structure in C Create a Structure to store DATE and write a function to add 2 dates.
Explain following with example:
i. malloc()
ii. calloc()
iii. realloc()
UNIT V
9. Give the syntax for opening a file. Explain various modes of opening a file.
Write a C program to count no of lines, words and characters in a file.
10. Give the syntax and description of the following.
i. fgets()
ii. fgetc()
iii. fputs()
iv. fputc()
Write a C program to add two numbers using command line arguments.
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech II Semester End Examinations (Regular) May, 2017
Regulation: IARE R16
Computer Programming
(Common for AE/CE/ME)
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 are the rules for naming an identifier and list some valid identifiers.
Write a C program to find whether a given year is leap year or not using ternary operator.
2. Explain with examples any 4 data type to store numeric' s in C programming language?
Write a C program to evaluate the polynomial shown below:
4x4 9x3 7x 28
What is type casting? Explain with example.
UNIT II
3. Explain about dangling else problem with an example.
Write a program to reverse a given string without using string library functions.
4. Describe multi branching statement in C using its syntax and flow chart.
Write a C program to remove duplicate elements in an integer array.
UNIT III
5. Using an example compare the declarations char and char *a.
Write a C program to demonstrate the Call By Value and Call By Reference functions by taking
an example of swapping the values of two variables.
6. Explain the following pre-processor directives briefly. #define, #include, #undef, #ifndef.
Write a C program to find largest element in an array using pointers.
UNIT IV
7. What is dynamic memory allocation? What are the functions used for it? Explain.
Write a C Program to add two complex numbers by passing structure to a function.
Page 1 of 2
8. What is Structure in C Create a Structure to store DATE and write a function to add 2 dates.
Explain following with example:
i. malloc()
ii. calloc()
iii. realloc()
UNIT V
9. Give the syntax for opening a file. Explain various modes of opening a file.
Write a C program to count no of lines, words and characters in a file.
10. Give the syntax and description of the following.
i. fgets()
ii. fgetc()
iii. fputs()
iv. fputc()
Write a C program to add two numbers using command line arguments.
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