0% found this document useful (0 votes)
24 views4 pages

WWW - Manaresults.Co - In: Computer Programming

Uploaded by

kanurisubbarao
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views4 pages

WWW - Manaresults.Co - In: Computer Programming

Uploaded by

kanurisubbarao
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Subject Code: R13105/R13 Set No - 1

I B. Tech I Semester Supplementary Examinations Sept. - 2014


COMPUTER PROGRAMMING
(Common to CE, ME, CSE, PCE, IT, Chem E, Aero E, AME, Min E, PE, Metal E)
Time: 3 hours Max. Marks: 70
Question Paper Consists of Part-A and Part-B
Answering the question in Part-A is Compulsory,
Three Questions should be answered from Part-B
*****
PART-A

1.(i) Differentiate between variable and constant?


(ii) Write program to find whether the given no is Armstrong or not.
(iii) Write short notes on storage classes.
(iv) Write a program to swap two numbers using pointers.
(v) Discuss about shift operator with example.
(vi) Write a program to read a text file and count the no of blanks in the text file.
[3+4+4+4+3+4]
PART- B

2.(a) What are the steps involved in program development process? Explain.
(b) Discuss about the relational and logical operators.
[8+8]
3.(a) What is Array? Discuss about the initialization and accessing of array elements for 1D
and 2D arrays.
(b) Write a program to check whether the given string is palindrome or not.
[8+8]
4.(a) What is recursion? How it is implemented? Explain with example.
(b) Write a c program for Tower’s of Hanoi using recursion.
[8+8]
5.(a) How to define and initialize structures? How to access structure elements?
(b) Discuss about the enum data type with example.
[8+8]
6.(a) Differentiate between binary and text file?
(b) Write a program to copy contents of one file to another file.
[8+8]
7.(a) Explain about the procedure for creating and running programs.
(b) Discuss about standard library functions with examples.
[8+8]

Page 1 of 1

WWW.MANARESULTS.CO.IN
|''|''|||''|'''|||'|
Subject Code: R13105/R13 Set No - 2
I B. Tech I Semester Supplementary Examinations Sept. - 2014
COMPUTER PROGRAMMING
(Common to CE, ME, CSE, PCE, IT, Chem E, Aero E, AME, Min E, PE, Metal E)
Time: 3 hours Max. Marks: 70
Question Paper Consists of Part-A and Part-B
Answering the question in Part-A is Compulsory,
Three Questions should be answered from Part-B
*****

PART-A

1.(i) Is there any difference between pre increment and post increment? Explain with
examples?
(ii) Write program to check the symmetricity of a Matrix.
(iii) Write short notes on parameter passing mechanisms.
(iv) What is dangling memory? Explain.
(v) What are self referential structures? Explain.
(vi) Write a program to read a text file and Print the first character in each word into upper
case.
[4+4+4+3+3+4]
PART- B

2.(a) Discuss about different computer languages with examples.


(b) Draw flow chart for finding facts for a given number.
[8+8]
3.(a) Differentiate between else-if and switch? Explain with an example.
(b) write a c program for matrix multiplication with sufficient conditions.
[8+8]
4.(a) Explain about the different ways of creating functions with examples.
(b) Write a c program to print Fibonacci series using recursion. [8+8]

5.(a) What is the need of nested structures? Explain with one example.
(b) Write a program to display student details using pointers to structure.
[8+8]
6.(a) Discuss about formatted I/O with suitable examples.
(b) Write a program to merge two files into single file.
[8+8]
7.(a) Explain about user defined functions. How they are different from library functions?
(b) Write a program to sort a list of elements and trace with an example.
[8+8]

Page 1 of 1
WWW.MANARESULTS.CO.IN
|''|''|||''|'''|||'|
Subject Code: R13105/R13 Set No - 3
I B. Tech I Semester Supplementary Examinations Sept. - 2014
COMPUTER PROGRAMMING
(Common to CE, ME, CSE, PCE, IT, Chem E, Aero E, AME, Min E, PE, Metal E)
Time: 3 hours Max. Marks: 70
Question Paper Consists of Part-A and Part-B
Answering the question in Part-A is Compulsory,
Three Questions should be answered from Part-B
*****
PART-A

1.(i) Explain about the precedence rules with examples.


(ii) Write a program to find second smallest element in the given array.
(iii) Write a program to print factorial of a given number using recursion.
(iv) What is dynamic memory allocation? Explain.
(v) Explain about the nested structures.
(vi) Write a program to find whether the given string present in the main string or not.
[4+4+3+4+3+4]
PART- B

2.(a) Write the structure of the C Program.


(b) Draw a flow chart for the prime number program.
[8+8]
3.(a) What is an array? How to initialize 1D and 2D arrays? Discuss about the advantages and
disadvantages of arrays.
(b) Write a C program to print pascal triangle.
[8+8]
4.(a) Explain about different parameter passing mechanisms with examples.
(b) Write C program’s for swapping of 2 numbers using different parameter passing
mechanisms
[8+8]
5.(a) Is there any difference between structure and Union? If Yes, Explain.
(b) How structure elements are passed to function arguments? Discuss with an example.
[8+8]
6.(a) Discuss about file I/O operations.
(b) Write a program to replace the given word with CPROG in a given file.
[8+8]
7.(a) Discuss about header files and C Preprocessor.
(b) Write a program to sort given numbers using arrays.
[8+8]

Page 1 of 1
WWW.MANARESULTS.CO.IN
|''|''|||''|'''|||'|
Subject Code: R13105/R13 Set No - 4
I B. Tech I Semester Supplementary Examinations Sept. - 2014
COMPUTER PROGRAMMING
(Common to CE, ME, CSE, PCE, IT, Chem E, Aero E, AME, Min E, PE, Metal E)
Time: 3 hours Max. Marks: 70
Question Paper Consists of Part-A and Part-B
Answering the question in Part-A is Compulsory,
Three Questions should be answered from Part-B
*****
PART-A

1.(i) What is meant by type casting? Explain.


(ii) Explain about break and continue with an example.
(iii)Write a program to find GCD of 2 numbers using functions.
(iv) Write a program to find whether the given no is Armstrong number or not using
command line arguments.
(v) Differentiate between structure and union?
(vi) Write a program to read a text file and print frequency count of the given word.
[4+4+3+4+3+4]
PART- B

2.(a) What is flow chart? Draw the flow chart for the biggest number among 3 numbers.
(b) Write a C program that illustrates the conditional operator
[8+8]
3.(a) How to initialize strings? Explain about various string handling functions.
(b) Write a program to print the given string in reverse order.
[8+8]
4.(a) What is pointer? Discuss about pointers to pointers with examples.
(b) Write a program to insert and delete an element from the given array.
[8+8]
5.(a) What are self referential structures? Explain with one example.
(b) Write a C Program to calculate grade, average marks and Total marks in a class of 60
Students.
[8+8]
6.(a) What is a file and what are different type of files? Explain.
(b) Write a program to copy one file into another file.
[8+8]
7.(a) Explain about different storage classes with examples.
(b) Write a program to check whether the given element is there in the array or not.
[8+8]

Page 1 of 1
WWW.MANARESULTS.CO.IN
|''|''|||''|'''|||'|

You might also like