Home / ModelQuestions / KTU B.Tech S2 model Questions for Computer programming

KTU B.Tech S2 model Questions for Computer programming

KTU B.Tech S2 model Questions for Computer programming


KTU B.Tech S2 model Questions for Computer programming
 

MODEL QUESTION PAPER Prepared by ktubtechquestions.com

SECOND SEMESTER B.TECH  DEGREE EXAMINATION 

 May/June 2017

CS100 Computer Programming

Time: 3 Hrs                                                                                            Marks: 100

PART A

( Answer any two )

  1. a) Discuss with examples, the Control Statements in C(5 Marks)

    b) Write a short note on basic data types(5 Marks)

    c) Explain the types of operators(5 Marks)

  2. a) Explain with examples, how multidimensional arrays are handles in C(5 Marks)

    b) Write a program to multiply two matrices A and B(10 Marks)

 

     3. a) Draw a flowchart to solve a quadratic equation. (5 Marks)

         b) Write a program to read a line of text and output the number of words and characters in it (10Marks)

 PART B

(Answer any two)

  1. a) What are recursive functions? Develop a program to generate a Fibonacci series. (7 Marks)

    b) Develop a program to input the data of ‘n’ students such as name, register number and three marks and then obtain the total mark of each student. Also apply the concept of initialization of structure. (8 Marks)

  2. a) Explain about pointers. Construct a C++ program to exchange two values using pointers. (7 Marks)

    b) Explain array of structures with examples(8 Marks)

  3. a) Write a recursive function that returns the sum of digits of a number passed to it. (8 Marks)

          b)Explain Function call by value and call by reference. (7 Marks)

PART C

( Answer any two )

  1. a) Implement insertion sort algorithm for sorting an array of n elements entered by user. (10 Marks)

    b)Write a program to read n numbers and sort it using binary sort algorithm (10 Marks)

  2.  a) Implement linear search and binary search(20Marks)

  3.   a)  Write a program to read a line of text and output the number of words and characters in it. (10 Marks)

    b) Write a program to Copy Text from One File to Other File (10 marks)

©® ktubtechquestions.com

KTU B.Tech S2 model Questions for Computer programming

Click Here to DOWNLOAD

 

x

Check Also

KTU B.Tech S4 Previous Questions Mechanical Engineering

KTU B.Tech S4 Previous Questions Mechanical Engineering   MA204- Probability, Random Processes and ...

KTU B.Tech S4 University Previous Questions for all branches

KTU B.Tech S4 University Previous Questions for all branches  Aeronautical Engineering  Applied ...