COMPUTER PROGRAMMING, exam papers, Exams of Programming Languages

B.Tech Semester Regular Examinations, June 2009 COMPUTER PROGRAMMING C programming, structure, array, matrix, functions, pointers, input/output on files, binary search algorithm

Typology: Exams

2010/2011

Uploaded on 08/22/2011

kiriakov80
kiriakov80 ๐Ÿ‡ฎ๐Ÿ‡ณ

4.4

(18)

31 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Code No: R07A1EC04 Set No. 1
I B.Tech Semester Regular Examinations, June 2009
COMPUTER PROGRAMMING
( Common to Mechanical Engineering, Mechatronics, Production
Engineering and Automobile Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
โ‹†โ‹†โ‹†โ‹†โ‹†
1. (a) Define Key word. Write standard keywords available in โ€˜Cโ€™.
(b) Define constant. What are the different types available in โ€˜Cโ€™? [6+10]
2. (a) What are the commonly used Input / Output functions used in โ€˜Cโ€™. How they
are accessed?
(b) What is the standard Input / Output header files in โ€˜Cโ€™? How it is used?
[10+6]
3. Define actual parameter and formal parameter. What is meant by global and local
variable, explain with example? [6+10]
4. Define two - dimensional array with an example. [16]
5. (a) Define structure. Write the rule for declaring structure.
(b) What are the difference between structures and Union? [8+8]
6. (a) Write the syntax for opening a file with various modes and closing a file.
(b) Explain about file handling functions. [8+8]
7. Which searching technique uses the sorted array as the input elements? Explain
with example. [16]
8. Write a โ€˜Cโ€™ program to implement recursive algorithm for a Binary Search Tree.
[16]
โ‹†โ‹†โ‹†โ‹†โ‹†
1 of 1
pf3
pf4

Partial preview of the text

Download COMPUTER PROGRAMMING, exam papers and more Exams Programming Languages in PDF only on Docsity!

I B.Tech Semester Regular Examinations, June 2009 COMPUTER PROGRAMMING ( Common to Mechanical Engineering, Mechatronics, Production Engineering and Automobile Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks โ‹† โ‹† โ‹† โ‹† โ‹†

  1. (a) Define Key word. Write standard keywords available in โ€˜Cโ€™. (b) Define constant. What are the different types available in โ€˜Cโ€™? [6+10]
  2. (a) What are the commonly used Input / Output functions used in โ€˜Cโ€™. How they are accessed? (b) What is the standard Input / Output header files in โ€˜Cโ€™? How it is used? [10+6]
  3. Define actual parameter and formal parameter. What is meant by global and local variable, explain with example? [6+10]
  4. Define two - dimensional array with an example. [16]
  5. (a) Define structure. Write the rule for declaring structure. (b) What are the difference between structures and Union? [8+8]
  6. (a) Write the syntax for opening a file with various modes and closing a file. (b) Explain about file handling functions. [8+8]
  7. Which searching technique uses the sorted array as the input elements? Explain with example. [16]
  8. Write a โ€˜Cโ€™ program to implement recursive algorithm for a Binary Search Tree. [16]

I B.Tech Semester Regular Examinations, June 2009 COMPUTER PROGRAMMING ( Common to Mechanical Engineering, Mechatronics, Production Engineering and Automobile Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks โ‹† โ‹† โ‹† โ‹† โ‹†

  1. (a) Define Psuedocode. (b) Define flowchartc. (c) What are the different stages in the program development? [3+3+10]
  2. (a) What are the commonly used Input / Output functions used in โ€˜Cโ€™. How they are accessed? (b) What is the standard Input / Output header files in โ€˜Cโ€™? How it is used? [10+6]
  3. (a) Demonstrate global variable. (b) Define function as an argument. [8+8]
  4. Write a program to reverse the strings stored in array of pointers. [16]
  5. Define Structure and write the general format for declaring and accessing structure members with an example. [16]
  6. How to move the file position to the current location within a file explain with example? [16]
  7. What difference between queue and circular queue? Explain about circular queue operations? [16]
  8. Define binary tree. What are the application of binary tree? [16]

I B.Tech Semester Regular Examinations, June 2009 COMPUTER PROGRAMMING ( Common to Mechanical Engineering, Mechatronics, Production Engineering and Automobile Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks โ‹† โ‹† โ‹† โ‹† โ‹†

  1. (a) Define expression. Write the syntax for it. (b) What is the purpose of type cast? Explain with example. (c) Define Keywords. What are the keywords available in โ€˜Cโ€™? [4+4+8]
  2. (a) What are the single character Input and Output functions used in โ€˜Cโ€™? (b) Write a โ€˜Cโ€™ program to convert lower case to upper case. [8+8]
  3. Define function. What are the different types of function, explain about User defined function and its advantage? [16]
  4. Explain need of pointers and its advantage. [16]
  5. Define Structure and write the general format for declaring and accessing structure members with an example. [16]
  6. Write a program to sort based on names in ascending order for student database. [16]
  7. Define queue. Explain the various operations in queue using a C program. [16]
  8. (a) What is a network? (b) What is a spanning tree? (c) Define minimal spanning tree. (d) What are the various traversals in a tree? [4+4+4+4]