K L University 2007 B.Tech C language - Question Paper
Sunday, 03 February 2013 05:15Web
all units carry equal marks
Unit 1
1) a) define the 4 basic data kinds. how could we extend the range of values they represent?
b) discuss the subsequent
1) software 2. operating system 3. compiler 4. hardware
[or]
2) a. provide the block diagram of a computer and discuss its working
b. discuss various kinds of constants in C
unit 2
3) discuss various operators in C with examples
(or)
4) a. discuss various kinds of input and output formats with examples
b. provide the syntax and discuss the functions getchar( ), putchar ( ), gets ( ), and puts ()
unit 3
5) a. Write a program to print the elements of Fibonacci sequence up to 10 items
b) write a program to obtain the value of cos(x) using its series expansion to a precession of 0.001
(or)
6) a. write short notes on every of switch, do while and while statements
b) a number is stated to be a strong number if sum of the factorials of digits is equal to that number. Write a program to check if a provided number is strong or not
unit 4
7) a. Write a program to obtain the product of 2 matrices A(mxp) and b(pxn)
b. write a program to merge 2 sorted lists which are in ascending order.
(or)
8) a. A data consists of 500 positive integers in the range one to 25. write a program that prints the number of times every of the integers occurs in the data
b. Write a program to check if a provided matrix is symmetric or not
unit 5
9) Write a program to reverse a string of 20 characters and to display it
write a function to obtain greatest common divisor of 2 numbers
(or)
10) a. Write a program to count the number of words , number of lines, number of white space in a provided sentence of not more than 200 characters including blanks
b. Write a function to obtain the smallest of a numbers. Use this function to organize a list of numbers in ascending order
Earning: Approval pending. |