R09 SET-4
I - B.TECH EXAMINATIONS, DECEMBER - 2010
COMPUTER PROGRAMMING AND DATA STRUCTURES
(COMMON TO CE, EEE, ME, ECE, CSE, CHEM, EIE, BME, IT, MECT, E.COMP.E,
MMT, MEP, AE, ICE, BT, AME)
Time: 3hours Max.Marks:75
Answer any FIVE questions
All questions carry equal marks
- - -
1 a) List the activities involved in each phase of waterfall system development life
cycle model?
b) What are the different types of errors one can encounter during the program
execution? [10+5]
2 a) What is an identifier? What are the naming rules for identifiers in C?
b) List different categories of C operators based on their functionality? Give
examples?
c) Explain different types of coding constants in a C? [3+8+4]
3 a) Explain different categories of functions in C with simple illustrative examples?
b) Write a C program using functions to calculate the factorial of a given number?
[10+5]
4 a) Demonstrate command-line arguments using a simple program? Explain?
b) Differentiate between a pointer and a variable? How a pointer is declared and
initialized? What do you mean by pointer to another pointer?
c) Write a C function to convert the string passed as an argument to its uppercase
equivalent? [6+4+5]
5 a) What is an enumerated type? How it can be declared? What are the different ways
one can initialize enumerations?
b) Differentiate between self referential and nested structures with suitable
examples? [7+8]
6 a) What is the purpose of the ferror() and feof() functions?
b) What are the possible ways to set the file pointer to the beginning of the file?
c) Write a C program to count the number of words in a given file? [4+4+7]
7 a) Write a C program for selection sort using functions?
b) An Array contains 3, 13, 7, 26, 44, 23, 98, and 57. Trace the steps using quick
sort? [9+6]
8 a) Trace the output string and the stack contents at every step in converting the
expression A * B / (C – D) + E * F - G into postfix expression?
b) Write a C Program to demonstrate the operations of a Stack using arrays? [6+9]
Tags : JNTU Hyderabad first year previous papers,JNTUH 1st year C&DS previous papers,JNTU Hyd 2010 C&DS paper,SET-4,R09,JNTUH CPDS previous papers
I - B.TECH EXAMINATIONS, DECEMBER - 2010
COMPUTER PROGRAMMING AND DATA STRUCTURES
(COMMON TO CE, EEE, ME, ECE, CSE, CHEM, EIE, BME, IT, MECT, E.COMP.E,
MMT, MEP, AE, ICE, BT, AME)
Time: 3hours Max.Marks:75
Answer any FIVE questions
All questions carry equal marks
- - -
1 a) List the activities involved in each phase of waterfall system development life
cycle model?
b) What are the different types of errors one can encounter during the program
execution? [10+5]
2 a) What is an identifier? What are the naming rules for identifiers in C?
b) List different categories of C operators based on their functionality? Give
examples?
c) Explain different types of coding constants in a C? [3+8+4]
3 a) Explain different categories of functions in C with simple illustrative examples?
b) Write a C program using functions to calculate the factorial of a given number?
[10+5]
4 a) Demonstrate command-line arguments using a simple program? Explain?
b) Differentiate between a pointer and a variable? How a pointer is declared and
initialized? What do you mean by pointer to another pointer?
c) Write a C function to convert the string passed as an argument to its uppercase
equivalent? [6+4+5]
5 a) What is an enumerated type? How it can be declared? What are the different ways
one can initialize enumerations?
b) Differentiate between self referential and nested structures with suitable
examples? [7+8]
6 a) What is the purpose of the ferror() and feof() functions?
b) What are the possible ways to set the file pointer to the beginning of the file?
c) Write a C program to count the number of words in a given file? [4+4+7]
7 a) Write a C program for selection sort using functions?
b) An Array contains 3, 13, 7, 26, 44, 23, 98, and 57. Trace the steps using quick
sort? [9+6]
8 a) Trace the output string and the stack contents at every step in converting the
expression A * B / (C – D) + E * F - G into postfix expression?
b) Write a C Program to demonstrate the operations of a Stack using arrays? [6+9]
Tags : JNTU Hyderabad first year previous papers,JNTUH 1st year C&DS previous papers,JNTU Hyd 2010 C&DS paper,SET-4,R09,JNTUH CPDS previous papers