SlideShare a Scribd company logo
www.studentyogi.com                                                                       www.studentyogi.com

          Code No: 07A1EC01
                                                                                 Set No. 1
                      I B.Tech Supplimentary Examinations, Aug/Sep 2008
                          C PROGRAMMING AND DATA STRUCTURES
              ( Common to Civil Engineering, Electrical & Electronic Engineering,
                 Electronics & Communication Engineering, Computer Science &
                Engineering, Chemical Engineering, Electronics & Instrumentation
          Engineering, Bio-Medical Engineering, Information Technology, Electronics
                & Control Engineering, Computer Science & Systems Engineering,
                 Electronics & Telematics, Electronics & Computer Engineering,
             Aeronautical Engineering, Instrumentation & Control Engineering and
                                              Bio-Technology)
          Time: 3 hours                                                             Max Marks: 80
                                       Answer any FIVE Questions
                                    All Questions carry equal marks




                                                                                  om
            1. (a) Write a ‘C’ program to nd the squares of N numbers using do - while.
                (b) Write a ‘C’ program to convert Decimal Number to Octal Number. [8+8]

            2. Write a program using function with argument and with return value to nd sum
               of odd & even series.                                                               [16]




                                                                           i.c
            3. De ne an array. What are the di erent types of arrays? Explain. [16]

            4. De ne Structure and write the general format for declaring and accessing members.


                          g
            5. Explain the following operations
                                                                                                   [16]
                     omyo
                (a) fseek()
                (b) ftell
                        t
                 (c) rewind()
                  i.cen

                (d) ferror()                                                                        [16]

            6. What are the advantages of external sorting? Write a program to perform merge
               sort with following elements
               otgud


               Set A { 11 , 16,22,25 } Set B { 15,19,2,23 }                                        [16]

            7. De ne stack. What are the di erent methods used to implement stack, and explain
               di erent operations performed on it.                                                [16]

            8. (a) What are the di erences between a tree and binary tree?
           nty.s




                (b) Give the representation of binary trees and explain.                           [8+8]
         de w
          w




                                                       1 of 1
      stuw




www.studentyogi.com                                                                       www.studentyogi.com
    w.
ww
www.studentyogi.com                                                                         www.studentyogi.com

          Code No: 07A1EC01
                                                                                  Set No. 2
                      I B.Tech Supplimentary Examinations, Aug/Sep 2008
                          C PROGRAMMING AND DATA STRUCTURES
              ( Common to Civil Engineering, Electrical & Electronic Engineering,
                 Electronics & Communication Engineering, Computer Science &
                Engineering, Chemical Engineering, Electronics & Instrumentation
          Engineering, Bio-Medical Engineering, Information Technology, Electronics
                & Control Engineering, Computer Science & Systems Engineering,
                 Electronics & Telematics, Electronics & Computer Engineering,
             Aeronautical Engineering, Instrumentation & Control Engineering and
                                              Bio-Technology)
          Time: 3 hours                                                             Max Marks: 80
                                       Answer any FIVE Questions
                                    All Questions carry equal marks




                                                                                   om
            1. (a) De ne Algorithm.
                (b) What is the use of owchart?
                 (c) What are the di erent steps followed in the program development? [3+3+10]




                                                                          i.c
            2. (a) Explain about call by value with an example.
                (b) Write a program to generate Fibonacci series using with argument and return
                    type.                                                                          [8+8]


               and print the array elements.
                                                                  og
            3. Write the syntax for declaring two - dimensional array write a program to access


            4. How to copy one structure to another structure of a same data type, give an ex-
                                                                                                   [16]


               ample?                                                                              [16]
                                                    nty
            5. (a) Write the syntax for opening a le with various modes and closing a le.
                (b) Explain about le handling functions.                                           [8+8]

            6. Write a program to sort the elements whose worst and average case are O(n log n).
                                            de


                                                                                                   [16]

            7. What is a singly linked list? Write a program to delete a node in front, rear and
               in a particular position and print the list.                                        [16]
                                  u



            8. Write a ‘C’ program to implement recursive algorithm for a Binary Search Tree.
                                                                                                   [16]
              w               .st
           ww




                                                       1 of 1


www.studentyogi.com                                                                         www.studentyogi.com
www.studentyogi.com                                                                         www.studentyogi.com

          Code No: 07A1EC01
                                                                                 Set No. 3
                      I B.Tech Supplimentary Examinations, Aug/Sep 2008
                          C PROGRAMMING AND DATA STRUCTURES
              ( Common to Civil Engineering, Electrical & Electronic Engineering,
                 Electronics & Communication Engineering, Computer Science &
                Engineering, Chemical Engineering, Electronics & Instrumentation
          Engineering, Bio-Medical Engineering, Information Technology, Electronics
                & Control Engineering, Computer Science & Systems Engineering,
                 Electronics & Telematics, Electronics & Computer Engineering,
             Aeronautical Engineering, Instrumentation & Control Engineering and
                                              Bio-Technology)
          Time: 3 hours                                                             Max Marks: 80
                                       Answer any FIVE Questions
                                    All Questions carry equal marks




                                                                                  om
            1. How algorithm is di erent from owchart? Write an algorithm and draw owchart
               for nding greatest among three given numbers.                                      [8+8]

            2. What is a function? What are the di erent types of functions? Explain function
               with no argument and no return type with an example.                                [16]




                                                                         i.c
            3. De ne an array. What are the di erent types of arrays? Explain. [16]

            4. Compare arrays, structures and unions.                                              [16]


                (b) Explain about le handling functions.
                                                                 og
            5. (a) Write the syntax for opening a le with various modes and closing a le.
                                                                                                  [8+8]

            6. What is the advantage of binary search? Write a program to search an element 30
                                                    nty
               in the given set of inputs { 12,15,18,30 }                                          [16]

            7. (a) Compare the advantages and disadvantages of doubly linked list over singly
                     linked list.
                (b) Implement a queue using linked list and write a ‘C’ routine to add elements
                                           de


                     from a queue.                                                                [8+8]

            8. Explain about connected and non-connected graph and list the di erence between
               them?                                                                               [16]
                                  u
              w               .st
           ww




                                                        1 of 1


www.studentyogi.com                                                                         www.studentyogi.com
www.studentyogi.com                                                                         www.studentyogi.com

          Code No: 07A1EC01
                                                                                 Set No. 4
                      I B.Tech Supplimentary Examinations, Aug/Sep 2008
                          C PROGRAMMING AND DATA STRUCTURES
              ( Common to Civil Engineering, Electrical & Electronic Engineering,
                 Electronics & Communication Engineering, Computer Science &
                Engineering, Chemical Engineering, Electronics & Instrumentation
          Engineering, Bio-Medical Engineering, Information Technology, Electronics
                & Control Engineering, Computer Science & Systems Engineering,
                 Electronics & Telematics, Electronics & Computer Engineering,
             Aeronautical Engineering, Instrumentation & Control Engineering and
                                              Bio-Technology)
          Time: 3 hours                                                             Max Marks: 80
                                       Answer any FIVE Questions
                                    All Questions carry equal marks




                                                                                  om
            1. (a) Write a ‘C’ program to convert Decimal to Hexa Decimal number.
                (b) Write a ‘C’ program to nd area of circle.                                      [10+6]

            2. What are the di erent standard library functions available in ‘C’? Explain with a
               sample program.                                                                       [16]




                                                                          i.c
            3. (a) Write a program to perform addition of two matrices.
                (b) Write the program to nd the sum of even numbers using arrays. [10+6]

                                                                 og
            4. (a) How is structure di erent from an array? Explain.
                (b) How an array be included as a member of a structure? [8+8]

            5. (a) Write the syntax for opening a le with various modes and closing a le.
                                                    nty
                (b) Explain about le handling functions.                                            [8+8]

            6. Explain the sorting mechanism which uses the concept of pivot element selection
               with a program.                                                                       [16]
                                           de


            7. Write an ‘C’ program to implement linked stacks.                                      [16]

            8. (a) What is a network?
                (b) What is a spanning tree?
                                  u



                 (c) De ne minimal spanning tree.
                (d) What are the various traversals in a tree?                                       [16]
              w               .st
           ww




                                                       1 of 1


www.studentyogi.com                                                                         www.studentyogi.com

More Related Content

PDF
R05010303 C O M P U T E R P R O G R A M M I N G A N D N U M E R I C A L M E ...
PDF
PDF
C O M P U T E R P R O G R A M M I N G J N T U M O D E L P A P E R{Www
DOC
Paper
PDF
Ict mock exam answer
PDF
Ict mock exam paper 1 b combined
PDF
Ict networking exercise short questions
PDF
Automata And Compiler Design
R05010303 C O M P U T E R P R O G R A M M I N G A N D N U M E R I C A L M E ...
C O M P U T E R P R O G R A M M I N G J N T U M O D E L P A P E R{Www
Paper
Ict mock exam answer
Ict mock exam paper 1 b combined
Ict networking exercise short questions
Automata And Compiler Design

What's hot (16)

PDF
PDF
Ca mock exam combined
PDF
C O M P U T E R O R G A N I Z A T I O N J N T U M O D E L P A P E R{Www
PDF
212101 Object Oriented Analysis Design Through Uml
PDF
7th Semester (December; January-2014 and 2015) Computer Science and Informati...
DOCX
Sample paper i.p
PDF
M I C R O P R O C E S S O R S A N D I N T E R F A C I N G J N T U M O D E...
PDF
7th Semester Information Science (2013-June) Question Papers
PDF
7th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...
PDF
Question Paper Code 065 informatic Practice New CBSE - 2021
PDF
7th semester Computer Science and Information Science Engg (2013 December) Qu...
PDF
7th Semester (June; July-2015) Computer Science and Information Science Engin...
PDF
Informatics Practices (new) solution CBSE 2021, Compartment, improvement ex...
PDF
Sample Question Paper IP Class xii
 
PDF
Lecture14 - Advanced topics in association rules
Ca mock exam combined
C O M P U T E R O R G A N I Z A T I O N J N T U M O D E L P A P E R{Www
212101 Object Oriented Analysis Design Through Uml
7th Semester (December; January-2014 and 2015) Computer Science and Informati...
Sample paper i.p
M I C R O P R O C E S S O R S A N D I N T E R F A C I N G J N T U M O D E...
7th Semester Information Science (2013-June) Question Papers
7th Semester (Dec-2015; Jan-2016) Computer Science and Information Science En...
Question Paper Code 065 informatic Practice New CBSE - 2021
7th semester Computer Science and Information Science Engg (2013 December) Qu...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
Informatics Practices (new) solution CBSE 2021, Compartment, improvement ex...
Sample Question Paper IP Class xii
 
Lecture14 - Advanced topics in association rules
Ad

Viewers also liked (18)

PDF
05212201 Calibration And Electronic Measurements
PDF
A Paper Presentation On Artificial Intelligence And Global Risk Paper Present...
PDF
07 A1 Ec03 Classical Mechanics
PDF
11903 Electromagnetic Waves And Transmission Lines
PDF
Artificial Intelligence Techniques In Power Systems Paper Presentation
PDF
3g Wireless Technology Paper Presentation
PDF
Artificial Neural Networks
PDF
410102 Finite Element Methods In Civil Engineering
PDF
3d Machine Vision Systems Paper Presentation
PDF
Bio Chip Paper Presentation
PDF
Bluetooth Technology Paper Presentation
PDF
410402 Electronic Measurements And Instrumentation
PDF
Bluetooth Technology In Wireless Communications
PDF
64 Bit Multi Processor Paper Presentation
PDF
Basic Electronics Jntu Btech 2008
PDF
Artificial Neural Network Paper Presentation
PDF
Adaptive Control Systems Paper Presentation
05212201 Calibration And Electronic Measurements
A Paper Presentation On Artificial Intelligence And Global Risk Paper Present...
07 A1 Ec03 Classical Mechanics
11903 Electromagnetic Waves And Transmission Lines
Artificial Intelligence Techniques In Power Systems Paper Presentation
3g Wireless Technology Paper Presentation
Artificial Neural Networks
410102 Finite Element Methods In Civil Engineering
3d Machine Vision Systems Paper Presentation
Bio Chip Paper Presentation
Bluetooth Technology Paper Presentation
410402 Electronic Measurements And Instrumentation
Bluetooth Technology In Wireless Communications
64 Bit Multi Processor Paper Presentation
Basic Electronics Jntu Btech 2008
Artificial Neural Network Paper Presentation
Adaptive Control Systems Paper Presentation
Ad

Similar to 07 A1 Ec01 C Programming And Data Structures (20)

PDF
R05010106 C P R O G R A M M I N G A N D D A T A S T R U C T U R E S
PDF
Computer Programming Jntu Model Paper{Www.Studentyogi.Com}
PDF
0502 Object Oriented Programming Through Java Set1
PDF
0502 Object Oriented Programming Through Java Set1
PDF
05211201 Advanced Data Structures And Algorithms
PDF
05211201 A D V A N C E D D A T A S T R U C T U R E S A N D A L G O R I...
PDF
C g.2010 supply
PDF
Ooad q.papers
DOC
Data structures question paper anna university
PDF
212101 Object Oriented Analysis Design Through Uml
PDF
Embedded Systems Jntu Model Paper{Www.Studentyogi.Com}
PDF
Embedded Systems Jntu Model Paper{Www.Studentyogi.Com}
PDF
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
PDF
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Www
PDF
Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}
PDF
C O M P U T E R G R A P H I C S J N T U M O D E L P A P E R{Www
PDF
Computer Organization Jntu Model Paper{Www.Studentyogi.Com}
PDF
PPTX
Presentation1 of the question banlk of CCC
PDF
C O M P U T E R N E T W O R K S J N T U M O D E L P A P E R{Www
R05010106 C P R O G R A M M I N G A N D D A T A S T R U C T U R E S
Computer Programming Jntu Model Paper{Www.Studentyogi.Com}
0502 Object Oriented Programming Through Java Set1
0502 Object Oriented Programming Through Java Set1
05211201 Advanced Data Structures And Algorithms
05211201 A D V A N C E D D A T A S T R U C T U R E S A N D A L G O R I...
C g.2010 supply
Ooad q.papers
Data structures question paper anna university
212101 Object Oriented Analysis Design Through Uml
Embedded Systems Jntu Model Paper{Www.Studentyogi.Com}
Embedded Systems Jntu Model Paper{Www.Studentyogi.Com}
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Www
Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}
C O M P U T E R G R A P H I C S J N T U M O D E L P A P E R{Www
Computer Organization Jntu Model Paper{Www.Studentyogi.Com}
Presentation1 of the question banlk of CCC
C O M P U T E R N E T W O R K S J N T U M O D E L P A P E R{Www

More from guestac67362 (18)

PDF
5 I N T R O D U C T I O N T O A E R O S P A C E T R A N S P O R T A T I O...
PDF
4 G Paper Presentation
PDF
Ce052391 Environmental Studies Set1
PDF
Bluetooth Paper Presentation
PDF
Bio Metrics Paper Presentation
PDF
Bio Medical Instrumentation
PDF
Bluetooth Abstract Paper Presentation
PDF
Basic electronic devices and circuits
PDF
PDF
Automatic Speed Control System Paper Presentation
PDF
Auto Configuring Artificial Neural Paper Presentation
PDF
Applied Physics Jntu Btech 2008
PDF
Application Of Shuntactive Power Filter Paper Presentation
PDF
An Expert System For Power Plants Paper Presentation
PDF
Antennas And Wave Propagation
PDF
Agent Technology Paper Presentation
PDF
Analog Communications
PDF
Aerospace Engineering 2008 Syllabus
5 I N T R O D U C T I O N T O A E R O S P A C E T R A N S P O R T A T I O...
4 G Paper Presentation
Ce052391 Environmental Studies Set1
Bluetooth Paper Presentation
Bio Metrics Paper Presentation
Bio Medical Instrumentation
Bluetooth Abstract Paper Presentation
Basic electronic devices and circuits
Automatic Speed Control System Paper Presentation
Auto Configuring Artificial Neural Paper Presentation
Applied Physics Jntu Btech 2008
Application Of Shuntactive Power Filter Paper Presentation
An Expert System For Power Plants Paper Presentation
Antennas And Wave Propagation
Agent Technology Paper Presentation
Analog Communications
Aerospace Engineering 2008 Syllabus

07 A1 Ec01 C Programming And Data Structures

  • 1. www.studentyogi.com www.studentyogi.com Code No: 07A1EC01 Set No. 1 I B.Tech Supplimentary Examinations, Aug/Sep 2008 C PROGRAMMING AND DATA STRUCTURES ( Common to Civil Engineering, Electrical & Electronic Engineering, Electronics & Communication Engineering, Computer Science & Engineering, Chemical Engineering, Electronics & Instrumentation Engineering, Bio-Medical Engineering, Information Technology, Electronics & Control Engineering, Computer Science & Systems Engineering, Electronics & Telematics, Electronics & Computer Engineering, Aeronautical Engineering, Instrumentation & Control Engineering and Bio-Technology) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks om 1. (a) Write a ‘C’ program to nd the squares of N numbers using do - while. (b) Write a ‘C’ program to convert Decimal Number to Octal Number. [8+8] 2. Write a program using function with argument and with return value to nd sum of odd & even series. [16] i.c 3. De ne an array. What are the di erent types of arrays? Explain. [16] 4. De ne Structure and write the general format for declaring and accessing members. g 5. Explain the following operations [16] omyo (a) fseek() (b) ftell t (c) rewind() i.cen (d) ferror() [16] 6. What are the advantages of external sorting? Write a program to perform merge sort with following elements otgud Set A { 11 , 16,22,25 } Set B { 15,19,2,23 } [16] 7. De ne stack. What are the di erent methods used to implement stack, and explain di erent operations performed on it. [16] 8. (a) What are the di erences between a tree and binary tree? nty.s (b) Give the representation of binary trees and explain. [8+8] de w w 1 of 1 stuw www.studentyogi.com www.studentyogi.com w. ww
  • 2. www.studentyogi.com www.studentyogi.com Code No: 07A1EC01 Set No. 2 I B.Tech Supplimentary Examinations, Aug/Sep 2008 C PROGRAMMING AND DATA STRUCTURES ( Common to Civil Engineering, Electrical & Electronic Engineering, Electronics & Communication Engineering, Computer Science & Engineering, Chemical Engineering, Electronics & Instrumentation Engineering, Bio-Medical Engineering, Information Technology, Electronics & Control Engineering, Computer Science & Systems Engineering, Electronics & Telematics, Electronics & Computer Engineering, Aeronautical Engineering, Instrumentation & Control Engineering and Bio-Technology) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks om 1. (a) De ne Algorithm. (b) What is the use of owchart? (c) What are the di erent steps followed in the program development? [3+3+10] i.c 2. (a) Explain about call by value with an example. (b) Write a program to generate Fibonacci series using with argument and return type. [8+8] and print the array elements. og 3. Write the syntax for declaring two - dimensional array write a program to access 4. How to copy one structure to another structure of a same data type, give an ex- [16] ample? [16] nty 5. (a) Write the syntax for opening a le with various modes and closing a le. (b) Explain about le handling functions. [8+8] 6. Write a program to sort the elements whose worst and average case are O(n log n). de [16] 7. What is a singly linked list? Write a program to delete a node in front, rear and in a particular position and print the list. [16] u 8. Write a ‘C’ program to implement recursive algorithm for a Binary Search Tree. [16] w .st ww 1 of 1 www.studentyogi.com www.studentyogi.com
  • 3. www.studentyogi.com www.studentyogi.com Code No: 07A1EC01 Set No. 3 I B.Tech Supplimentary Examinations, Aug/Sep 2008 C PROGRAMMING AND DATA STRUCTURES ( Common to Civil Engineering, Electrical & Electronic Engineering, Electronics & Communication Engineering, Computer Science & Engineering, Chemical Engineering, Electronics & Instrumentation Engineering, Bio-Medical Engineering, Information Technology, Electronics & Control Engineering, Computer Science & Systems Engineering, Electronics & Telematics, Electronics & Computer Engineering, Aeronautical Engineering, Instrumentation & Control Engineering and Bio-Technology) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks om 1. How algorithm is di erent from owchart? Write an algorithm and draw owchart for nding greatest among three given numbers. [8+8] 2. What is a function? What are the di erent types of functions? Explain function with no argument and no return type with an example. [16] i.c 3. De ne an array. What are the di erent types of arrays? Explain. [16] 4. Compare arrays, structures and unions. [16] (b) Explain about le handling functions. og 5. (a) Write the syntax for opening a le with various modes and closing a le. [8+8] 6. What is the advantage of binary search? Write a program to search an element 30 nty in the given set of inputs { 12,15,18,30 } [16] 7. (a) Compare the advantages and disadvantages of doubly linked list over singly linked list. (b) Implement a queue using linked list and write a ‘C’ routine to add elements de from a queue. [8+8] 8. Explain about connected and non-connected graph and list the di erence between them? [16] u w .st ww 1 of 1 www.studentyogi.com www.studentyogi.com
  • 4. www.studentyogi.com www.studentyogi.com Code No: 07A1EC01 Set No. 4 I B.Tech Supplimentary Examinations, Aug/Sep 2008 C PROGRAMMING AND DATA STRUCTURES ( Common to Civil Engineering, Electrical & Electronic Engineering, Electronics & Communication Engineering, Computer Science & Engineering, Chemical Engineering, Electronics & Instrumentation Engineering, Bio-Medical Engineering, Information Technology, Electronics & Control Engineering, Computer Science & Systems Engineering, Electronics & Telematics, Electronics & Computer Engineering, Aeronautical Engineering, Instrumentation & Control Engineering and Bio-Technology) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks om 1. (a) Write a ‘C’ program to convert Decimal to Hexa Decimal number. (b) Write a ‘C’ program to nd area of circle. [10+6] 2. What are the di erent standard library functions available in ‘C’? Explain with a sample program. [16] i.c 3. (a) Write a program to perform addition of two matrices. (b) Write the program to nd the sum of even numbers using arrays. [10+6] og 4. (a) How is structure di erent from an array? Explain. (b) How an array be included as a member of a structure? [8+8] 5. (a) Write the syntax for opening a le with various modes and closing a le. nty (b) Explain about le handling functions. [8+8] 6. Explain the sorting mechanism which uses the concept of pivot element selection with a program. [16] de 7. Write an ‘C’ program to implement linked stacks. [16] 8. (a) What is a network? (b) What is a spanning tree? u (c) De ne minimal spanning tree. (d) What are the various traversals in a tree? [16] w .st ww 1 of 1 www.studentyogi.com www.studentyogi.com