How To Exam?

a knowledge trading engine...


Madurai Kamraj University (MKU) 2006 B.Sc Computer Science Programming in C - Question Paper

Thursday, 04 April 2013 02:30Web

1729/MAC November 2006

PROGRAMMING IN C

(for those who joined in JULy 2006)

TIME:THREE HOURS MAXIMUM: 100 MARKS

PART A-(10*1=10 marks)

select the accurate answer:

1. The range of character data kind is

(a) -128 to 127 (b) 0 to 255
(c) 0 to 32767 (d) none of the above


2. What is the value of !0?

(a)1 (b)0
(c)-1 (d) none of the above


3. What is the value of 8% 10?

(a) 8 (b) 2
(C) 1 (d) 0


4. Which function is improper for accepting a string?

(a) getch () (b)gets ()
(c) getche () (d) scanf ()


5. ________ statement does not require any condition

(a) goto (b) if
(c) switch (d) while


6. The ______ function provides the size of datatype in bytes

(a) scanf () (b) size ()
(c) sizeof () (d) measure ()


7. ________ array can be thought as a rectangular display of
elements with rows and columns

(a) two-dimensional (b) one-dimensional
(c) virtual (d) static


8. The meaning of keyword VOID before the function name means

(a) function should not return any value
(b) function should return any value
(c) no arguments are passed
(d) none of the above

9. In C,it is possible to access and display the address of the memory
location of variable using ______ operator with variable name

(a) * (b) &
(c) ^ (d) ->

10. The EOF is equivalent to

(a) -1 (b) 0
(c) 1 (d) none of the above


PART B-(5*6=30marks)

ans ALL ques.

11.(a) discuss about various operators and expressions in C with
suitable examples.

or

(b) Describe the general syntax of if and if-else statements
with examples.


12.(a) Distinguish ranging from while and do-while statements with examples.

or

(b) Write a C program to print the provided number in the reverse order.


13.(a) Write a C program to find transpose of a matrix.

or

(b) Write a C program to count the number of words in a provided sentence.


14.(a) Explain about function definition and declaration in C with example.

or

(b) Write a C program to interchange the values provided in 2 variables by
a user-defined function.

15.(a) Write a C program to search a string in a set of strings using pointer.

or

(b) Write a C program to store the data entered from the keyboard in a file
named test.dat.


PART C-(5*12=60marks)

ans ALL ques..


16.(a) (i) discuss about any 6 mathematical functions in C with examples.
(ii) define the general syntax of switch () statement with example.

or

(b) Write a Cprogram to obtain the value of S with 4 decimal places of accuracy.

one 1
S = one + ____ + ____ +.....
two two
three five

17.(a) Write a C program to print multiplication tables one to 10.

or

(b) Write a C program to compute and print the conversion of Celsius to
Fahrenheit in a table ranging from 0 degree to 100 degree centigrade
with step 10.


18.(a) Write a C program to search a provided value in an array and obtain its
frequency of occurrence.

or

(b) (i) Write a C program to verify whether a string is a palindrome or not.
(ii) explain about any 4 string functions in C with suitable examples.


19.(a) Write a recursive function to evaluate n! and write a C program to evaluate

n n!
C = __________
r (n-r)!r!

or

(b) Write a C program to learn and write the details of 10 employees using an array
of structure.

Field Name Data kind

emp-name string

emp_no integer

address string

pay float


20.(a) Write a C program to concatenate 2 strings using pointers.


or

(b) Write a C program to learn any file from command prompt.use command line arguments.


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Madurai Kamraj University (MKU) 2006 B.Sc Computer Science Programming in C - Question Paper