Thursday, November 5, 2015

P.G.D.C.A. (Semester – II) ,Solapur University Question Paper,PROGRAMMING IN C (Paper – IX),2014 Question Paper

Solapur University Question Paper
P.G.D.C.A. (Semester – II) (Old) Examination, 2014
PROGRAMMING IN C (Paper – IX)
Day and Date : Wednesday, 23-4-2014 Total Marks : 80
Time : 3.00 p.m. to 6.00 p.m.
Instructions : 1) Q. 1 and Q. 7 are compulsory.
2) Attempt any two questions from Q. No. 2, 3 and 4.
3) Attempt any one question from Q. No. 5 and 6.
4) Figures to the right indicate full marks.
1. Choose the single correct alternative : 16
1) Which of the following are format specifiers ?
i) %f ii) %c iii) %q
iv) %z v) %u
a) i), ii), iv) and v) b) ii), iii), iv) and v)
c) i), ii) and v) d) i), ii), iii) and iv)
2) Find invalid rule for an identifier.
a) It can start and end with alphabet
b) It can start and end with digit character
c) It can start and end with underscore
d) All are valid rules
3) Which files contain prototype of standard (library) functions ?
a) .c b) .obj c) .h d) .cpp
4) Which of the following are unary operators ?
i) %(modulus) ii) =(assignment)
iii) –(Subtraction) iv) / (Division)
a) i) and iv) b) only iii) c) i), ii) and iii) d) ii) and iii)
SLR-R – 11 -2-
5) Output of the following code will be
void main( )
{
int x=1,y=2,z=3;
printf(“%d %d %d”, ++x,x+y,z);
}
a) 1 3 3 b) 2 3 3 c) 2 4 3 d) 1 4 3
6) Which operator works like if else ?
a) : : b) ? : c) –> d) >>
7) In for(....) how many semicolons are allowed.
a) <=2 b) exactly 2 c) >=2 d) >=0
8) Output of the following code will be –
void main( )
{
while(4<5)
{
 printf(“hi !”);
}
}
a) hi ! b) hi ! printed infinitely
c) No output d) Error
9) How many times and when memory is allocated to formal parameters ?
a) Only once during compilation time
b) Only once during execution time, at the start of program
c) Only once during execution time, before function call
d) For every call of that function
10) ________________ dimensional array is not possible.
a) 0 b) 2 c) 3 d) 6
-3- SLR-R – 11
11) Which of the following statements are correct regarding arrays :
i) Array is a collection of similar type of elements
ii) Array is a group of same type of variables
iii) Array has sequential storage
a) all are true b) iii) only c) i) and iii) d) ii) and iii)
12) Which storage class is used to increase scope of a variable ?
a) auto b) static c) extern d) register
13) What is the use of fseek( ) function ?
a) Copying data in file
b) Searching a number in file
c) Positioning a file pointer
d) Reading a data at specified location
14) Which of the following can not take file pointer to beginning of file ?
a) rewind( ) b) fseek( ) c) fopen( ) d) fflush( )
15) C language was developed by Deniss Ritchie.
a) True b) False
16) ____________ operator is used to negate the condition.
a) - b) ~ c) ! d) ^
2. a) What is flowchart ? What are the principles of flowcharting ? 6
b) Explain character set, keywords and symbolic constants. 6
c) Write a program to print the largest number among three numbers. 4
3. a) What are the control structures ? Explain bi-directional conditional control
structure with suitable example. 6
b) What is function ? Explain function declaration and function definition with
example. 6
c) What is pointer ? Explain the features of pointer. 4
SLR-R – 11 -4-
4. Write short notes on the following :
a) Pass by reference 4
b) Pointers to structures 4
c) Recursion 4
d) Algorithm. 4
5. a) Discuss on “Operator Precedence and Associativity”. 8
b) Write a program to print the factorial of given number 8
(Use do...while loop).
6. a) What is an array ? Explain it’s types with suitable example. 8
b) Explain structures in brief. 8
7. a) What is file ? Explain different file opening modes. 8
b) Write a program to accept employee details like empno, empname,
joining_date, salary and store in the file EMP.DAT. 8
_____________________
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