• Tidak ada hasil yang ditemukan

INSTITUTE OF AERONAUTICAL ENGINEERING - IARE

N/A
N/A
Protected

Academic year: 2024

Membagikan "INSTITUTE OF AERONAUTICAL ENGINEERING - IARE"

Copied!
2
0
0

Teks penuh

(1)

Hall Ticket No Question Paper Code: ACS001

INSTITUTE OF AERONAUTICAL ENGINEERING

(Autonomous)

B.Tech I Semester End Examinations (Supplementary) - February, 2018 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. (a) Write a C program to find the smallest of three numbers using conditional operator. [7M]

(b) Differentiate the following operators giving suitable examples. [7M]

i. Bitwise left shift and right shift ii. Post and pre increment

iii. Logical AND and Logical OR iv. Unary and binary operator ‘+’

2. (a) Write an algorithm to find the sum of all integers between 100 and 500 that are not divisible by 10. Also draw the flow chart for the same. State which approach do you prefer to use and why?

[7M]

(b) i. Draw a flowchart to find the roots of a quadratic equation. [7M]

ii. Write a C program to find whether the given two numbers are equal or not?

UNIT – II

3. (a) With appropriate examples, explain the following string handling functions. [7M]

i. strncat ii. strcmp iii. strchr iv. strstr

(b) Write a C program to display the given string in an alphabetical order. [7M]

4. (a) Differentiate break and continue statements in C. Illustrate with a program segment. [7M]

(b) Write a C program to print twin prime numbers between 1 to 100. Examples for twin prime numbers are (3,5), (5,7), (11,13) difference of 2 between consecutive prime numbers. [7M]

UNIT – III

5. (a) How to pass one function as an argument to the another function. Write a C program to calculate square and cube of a given number using function as an argument. [7M]

(b) What is a generic pointer? Which operations are not permitted on pointers? [7M]

Page 1 of 2

(2)

6. (a) Discuss the usage of the following preprocessor directives. [7M]

i. #define ii. #ifdef iii. #endif

(b) Write a C program to find matrix multiplication using pointers. [7M]

UNIT – IV

7. (a) What are structures? How they are different from unions. Give example for each. [7M]

(b) i. Construct an array of structure called “student” with the data members: name, roll-no, class, grade and percentage marks. Read n records and print the details of the student given a

particular roll-no as the key [7M]

ii. Define a structure by name ‘complex’ consisting of real and imaginary parts of a complex number. Write a C program to add two such complex numbers.

8. (a) The annual examination is conducted for 10 students on three subjects. Write a C program to

read the data and find the total marks of each student. [7M]

(b) i. Discuss the functions used in dynamic memory allocation with appropriate examples. [7M]

ii. Develop a C program to demonstrate passing structures as parameters to functions.

UNIT – V

9. (a) Write a C program to display the contents of a file in reverse order. [7M]

(b) Write a C program to read name and marks of n number of students from user and store them in a file. If the file previously exits, add the information of n students. [7M]

10. (a) Write a C program to count number of characters, number of words and number of lines in a

given file. [7M]

(b) Write a C program to find number of vowels in the given file use command line arguments. [7M]

− ◦ ◦ ◦ ◦ −

Page 2 of 2

Referensi

Dokumen terkait

Calculate the moment of inertia and radius of gyration about [4M] i an axis passing through a corner and perpendicular to the plane ii about an axis passing through a corner and

Understand 2 Part – C Problem Solving and Critical Thinking 1 Write a note on engineering models for aerodynamic forces on a wing systems Understand 2 Distinguish between rocket

Discuss the different techniques viz., perimeter fencing, controlled access gates, security lighting used for perimeter security at commercial service airports... a Define residual cost

[7M] b Write a program to define a structure for a book which contains book title, author, price and number of pages as members and read two book details and display the data..

If girder supports a uniformly distributed load of 200 kN/m including its own weight, design the necessary steel assuming M 20 concrete and Fe 415 steel.. a Discuss stepwise procedure

a Discuss the various types of decision making environments in detail along with different decision making techniques [7M] b The following information available related to a goods

[7M] b Calculate Hall voltage developed across the width of the slab of a metallic slab carrying a current of 30A is subjected to a magnetic field of 1.75T.. The magnetic field is

Write the HTML code for fallowing image: [7M] UNIT - II 3 a Using servlet make a “registration” form that collects a first name, last name, and email address.. Send the data to a