Friday, November 6, 2015

M.C.A. (Part – I) (Semester – I),Solapur University Question Paper,COMMERCE (Old),2014 Question Paper

Solapur University Question Paper
M.C.A. (Part – I) (Semester – I) Examination, 2014
COMMERCE (Old)
C Programming
Day and Date : Tuesday, 6-5-2014 Total Marks : 70
Time : 11.00 a.m. to 2.00 p.m.
Instructions : 1) Q. 1 and Q. 7 are compulsory.
2) Attempt any two questions from Q. 2 to Q. 4.
3) Attempt any one question from Q. 5 to Q. 6.
4) Figures to the right indicate full marks.
1. a) Choose correct alternative : 7
1) In C ________ function is used to allocate memory dynamically.
a) new b) malloc c) free d) allocate
2) ________ statement is used to terminate the loop.
a) goto b) break
c) return d) none of the above
3) Which of the following type of variable is having scope throughout the
program ?
a) auto b) global
c) register d) none of the above
4) A string is nothing but array of characters terminated by
a) \0 b) /0
c) Null d) None of the above
5) In C ________ operator is used to get the address of variable.
a) * b) % c) & d) &&
6) ________ loop executes at least once.
a) for b) while c) do-while d) all of these
7) If P1 & P2 are two pointers then which of following is true ?
a) p1 + p2 b) p1 – p2 c) p1
* p2 d) p1/p2
P.T.O.
Seat
No.
SLR-GL – 2
b) State true or false : 7
1) All the members of a union can be initialized.
2) Function fseek may be used to seek from the beginning of the file.
3) It is possible to pass a structure variable to a function by either value or
by address.
4) A function can return more than one value.
5) In C, value zero is treated as false.
6) Parameters in function call statement are called as formal parameters.
7) Size of any type of pointer is 2 byte.
2. a) Write a C program to find given string is palindrome or not. 7
b) Explain all storage classes in C. 7
3. a) Explain concept of Recursion with the help of example. 7
b) Define a structure ‘Student’ with members.
Roll–No., Name, Subject1, subject2, subject3, subject4, subject5, total,
percentage. Write a program to accept data for 5 students and calculate total
and percentage of marks obtained by each student and display it. 7
4. a) Define function. Write a program to print the factorial of a entered no using
recursion. 7
b) Write a program to search a given element in an array by using the pointer. 7
5. Write a C program to copy the contents of a one file into another file using
command line arguments. List all the steps required to execute a program. 14
6. Define pointer. How it is declared and initialized ? Explain in detail arithmetic
operations that we can perform on pointers with suitable example. 14
7. a) Write a C program to find number is even or odd using bitwise operator. 7
b) Write a graphics program to display circle, rectangle and line. Fill circle with
red color, rectangle with blue and draw line with yellow color. 7
_______________
Share This
Previous Post
Next Post

B.E Civil Engineer Graduated from Government College of Engineering Tirunelveli in the year 2016. She has developed this website for the welfare of students community not only for students under Anna University Chennai, but for all universities located in India. That's why her website is named as www.IndianUniversityQuestionPapers.com . If you don't find any study materials that you are looking for, you may intimate her through contact page of this website to know her so that it will be useful for providing them as early as possible. You can also share your own study materials and it can be published in this website after verification and reviewing. Thank you!

0 comments:

Pen down your valuable important comments below

Search Everything Here