www.jntuworld.com || www.android.jntuworld.com || www.jwjobs.net || www.android.jwjobs.

net

Set No. 1

Code No: R10105/R10

I B.Tech I Semester Supplementary Examinations, Oct/Nov 2013
C PROGRAMMING
( Common to Civil Engineering, Electrical & Electronics Engineering,
Mechanical Engineering, Electronics & Communication Engineering,
Computer Science & Engineering, Chemical Engineering, Electronics &
Instrumentation Engineering, Bio-Medical Engineering, Information
Technology, Electronics & Computer Engineering, Aeronautical
Engineering, Bio-Technology, Automobile Engineering, Mining and
Petroliem Technology)
Time: 3 hours
Max Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
?????

D
L

1. Write a C program that converts and prints a user supplied measurement in inches
into foot(12 inches),yard(36 inches),centimetre(2.54/inch) and meter(39.37 inches).
[15]

R
O

2. (a) What is null? Justify your answer with an example

(b) Write a C program to find the biggest of 3 numbers

W
U

[8+7]

3. (a) Write a program to count number of words, lines and characters in a text
(b) Write C program to find out the length of given string without using string
function.
[8+7]

T
N

4. Write a program to find determinant of a matrix.

J

[15]

5. (a) What is the advantage of using recursive function?
(b) Write a C Program to demonstrate Towers of Hanoi using Recursion.

[8+7]

6. (a) Explain ‘Lvalue’ and ‘Rvalue’ terms in Pointers.
(b) Write a C Program to perform Binary Search using pointers.

[7+8]

7. (a) What are different ways of accessing structure elements.
(b) Declare a structure with the elements Book. No., Book Name, Book Price.
and write a program to access the elements.
[8+7]
8. (a) What is a text file? Describe the various modes of opening a text file.
(b) What is a binary file ? Describe the various modes of opening a binary file.
[7+8]
?????

1 of 1

www.jntuworld.com || www.jwjobs.net

n2 T N 4.. and write a program to access the elements. Information Technology.com || www.jntuworld. (b) What are the various operations performed in Pointers. Automobile Engineering. Oct/Nov 2013 C PROGRAMMING ( Common to Civil Engineering.android. Mining and Petroliem Technology) Time: 3 hours Max Marks: 75 Answer any FIVE Questions All Questions carry equal marks ????? D L 1. [15] 7.jwjobs. Electronics & Computer Engineering. Mechanical Engineering. Electronics & Communication Engineering. [15] W U 3. Book Name. Explain with an example.net Set No. (b) Declare a structure with the elements Book. Computer Science & Engineering.jwjobs. No.net || www. Aeronautical Engineering. 2 Code No: R10105/R10 I B. [8+7] 6.com || www. .jwjobs.Tech I Semester Supplementary Examinations. Electrical & Electronics Engineering. (a) What is a File and what advantage do disk files have over holding data in memory (b) Write the syntax for opening and closing a file. R O (b) Differentiate between hardware and software [8+7] 2. Electronics & Instrumentation Engineering. [8+7] [15] 5. (a) What are different ways of accessing structure elements.jntuworld. Bio-Medical Engineering. What are bitwise shifting operators? Explain about bitwise shifting operators with suitable programming example. . (a) What are the different standard library functions available in ’C’ ? J (b) Write a ’C’ program to calculate factorial of a number using with argument and no return type. ????? 1 of 1 www. (a) What is CPU? Explain about various components of CPU.net [7+8] . Bio-Technology.www. Book Price.com || www.jntuworld. (a) Write short notes on Pointers.android. Chemical Engineering. (a) Explain different looping statements with syntax and examples (b) Write a C program to find the sum of the following series: 12 +22 +32 +. [8+7] 8. Write a program to find rank of a matrix.

Electrical & Electronics Engineering. Bio-Technology. How multidimensional array is passed to function. What are assignment operators in C? Explain about assignment operators in C with appropriate examples [8+7] R O 2. Oct/Nov 2013 C PROGRAMMING ( Common to Civil Engineering. [15] ????? 1 of 1 www. [15] 7. [7+8] W U 3. Explain with an example [15] 8. Computer Science & Engineering. mention its advantage and disadvantage with example. What is nested structure. (b) Explain the concept of Function. (a) Compare Function and Recursive Function.com || www. Electronics & Instrumentation Engineering.android.jntuworld. (a) )Write C program compare two string for equality without strcmp( ) function? (b) Write C program the given string is palindrome or not? T N [8+7] 4. [7+8] 6. (b) What are the various operations performed in Pointers. Chemical Engineering.jwjobs. 3 Code No: R10105/R10 I B. (a) Write short notes on Pointers. Explain with an example. Electronics & Computer Engineering. Information Technology. Mechanical Engineering. (b) Write a C program to find whether the seller has earned profit or loss. Bio-Medical Engineering.Tech I Semester Supplementary Examinations. [15] J 5.jntuworld. Selling price and Cost price is read through keyboard.android. Automobile Engineering.net Set No.jwjobs.com || www.com || www.jwjobs.net . how are the formal argument declaration written? Compare with one dimensional array. Electronics & Communication Engineering. Mining and Petroliem Technology) Time: 3 hours Max Marks: 75 Answer any FIVE Questions All Questions carry equal marks ????? D L 1. (a) What are selection statements? What is the necessity of selection statements? Justify your answer. Explain the operation of random access file.www. Aeronautical Engineering.jntuworld. Give the syntax.net || www.

android. Explain with an example [15] 8. Explain with appropriate examples [15] 3. [15] T N 5. Mining and Petroliem Technology) Time: 3 hours Max Marks: 75 Answer any FIVE Questions All Questions carry equal marks ????? D L 1. how are the formal argument declaration written? Compare with one dimensional array. (b) Write a C program to explain call by value and call by reference concept. Electronics & Communication Engineering.com || www.net [15] . ????? 1 of 1 www. (a) Explain the various formats of ‘for’ loop? W U (b) Write a C program to generate fibonacci series until given number? [8+7] 4.com || www.jwjobs.com || www. Automobile Engineering. Oct/Nov 2013 C PROGRAMMING ( Common to Civil Engineering.Tech I Semester Supplementary Examinations. What are constants in C? Explain about various constants used in C R O [15] 2.jwjobs. What are the different ways to copy the elements of one structure into another structure. Differentiate the conditional operator with if else statement. 4 Code No: R10105/R10 I B. Electronics & Instrumentation Engineering.jntuworld.jntuworld.net Set No. Mechanical Engineering. Computer Science & Engineering. Bio-Medical Engineering. Chemical Engineering. How multidimensional array is passed to function. Electronics & Computer Engineering.www. Aeronautical Engineering. (a) What is a null pointer? When it is used? (b) What is a ‘void’ pointer.jwjobs. When ‘void’ pointer is used? [7+8] 7. [6+9] J 6.android. Electrical & Electronics Engineering.jntuworld. Bio-Technology. Information Technology. Describe types of files with an example. (a) Write short notes on nesting of functions.net || www.