The questions are as follows: 1. Write a 'c' program to read the age of 100 persons and count the number of persons in the age group 50 to 60.use for loop and continue statements.(10 marks)2. Write a program to read a positive integer and print its binary equivalent.(10 marks)3. Given two one dimensional arrays a and b which are sorted in ascending order. write a program to merge them into a single sorted array ,c that contains every item from arrays a and b, in ascending order.(10 marks)4. Write a function in c that would traverse a linear singly linked list in reverse and write out the contents in reverse order.(10 marks)5. Write a program to read a set of integers and to separate all odd and even numbers. write all even numbers in ascending order.(10 marks)6. Write a program to read a real number x and find the even number nearest to x.(10 marks)7. Write a program to multiply two matrices of order m*n and n*p respectively.(10 marks)8. Write a program in'c' to implement k-map simplification technique.(10 marks)
-
Interview Candidate
- Feb 8th, 2006
- 12
- 12127
Showing Answers 1 - 12 of 12 Answers
The questions are as follows: 1. Write a 'c' program to read the age of 100 persons and count the number of persons in the age group 50 to 60.use for loop and continue statements.(10 marks)2. Write a program to read a positive integer and print its binary equivalent.(10 marks)3. Given two one dimensional arrays a and b which are sorted in ascending order. write a program to merge them into a single sorted array ,c that contains every item from arrays a and b, in ascending order.(10 marks)4. Write a function in c that would traverse a linear singly linked list in reverse and write out the contents in reverse order.(10 marks)5. Write a program to read a set of integers and to separate all odd and even numbers. write all even numbers in ascending order.(10 marks)6. Write a program to read a real number x and find the even number nearest to x.(10 marks)7. Write a program to multiply two matrices of order m*n and n*p respectively.(10 marks)8. Write a program in'c' to implement k-map simplification technique.(10 marks)