Roll No……….
Total No. of Questions: 13
J-3405 [S-1261]
[2037]
MCA
(Sem.-1st)
PROGRAMMING IN C (MCA-102)
Time: 3 Hrs. Max.
Marks: 75
Instruction to Candidates:
1. Section-A is Compulsory.
2. Attempt any Nine questions from Section-B.
SECTION-A
Q1. (a) What are the
advantages of data type int over data type double? What are the advantages of
type double over type int?
(b) List any explain three computational errors that may occur in
type double expression.
(c) What is the difference in meaning between x3 and x[3]?
(d) Identify the error in the following C statement
Int
x[8], i;
For
(I = 0; i<8; ++i)
X[i]=I;
Will the error be defected? If so when?
(e) What are the two common ways of selecting array elements for
processing?
(f) Differentiate between dynamic and non-dynamic data structures?
(g) Input a date using C program and check if it is valid? Print
messages accordingly.
(h) What is an array of pointers? Explain with examples.
(i) How would you call a function scan_olympic passing competition as
an output argument?
(j) Determine how may bytes are needed to store a structure of type
hair into_t, assuming two bytes for an integer and one byte for a character.
(k) Indicate how the pointers are used to establish a link between
nodes.
(l) Write the algorithmic steps for searching a binary search tree.
(m) Explain opening and closing of files with examples.
(n) What is dynamic memory allocation Explain in brief?
(o) How bubble sort is different for selection sort.
SECTION-B
Q2. Write a for loop that
would print the alphabet in lowercase letters, assuming the letters have
consecutive codes.
Q3. Write a program in C to
print automorphic numbers. The automorphic number is a number in which the
square of the number contains the number in the end.
Eg. (a) 525 (b) 636
Q4. Write a program to
compute the mean and standard deviation of an array of data and displays the
difference between each value.
Q5. Write a program using C to computer transpose
of a matrix.
Q6. What is the primary
difference between a structure and an array? Which would you use to store the
catalog desorption of a course and to store the names of the students in the
course.
Q7. Use pointer concept to
write a program in C to find the length of a given string including blank
spaces, tabs and other special symbols (new line character should be data as a
string terminating character)
Q8. Write a short note on Dynamic Memory
Allocation with suitable examples.
Q9. Write a program in C to
input book code, Title and price. Give always a discount of 10%, find the net
price and print it. Do this for any number of books.
Q10. Write a program in C to
create and display a binary search tree of integer keys.
Q11. Write a program in C to bubble sort the given
10 numbers.
Q12. Write a short note on linear search.
Q13. Design an algorithm and
draw its flow chart to convert a decimal number to its hexadecimal equivalent.
0 comments:
Post a Comment
North India Campus