Veer Narmad South Gujarat University 2011-1st Year B.Sc Computer Science SB-0609 - 2 - Question Paper
Saturday, 27 April 2013 07:55Web
Page 1 of 2
SB-0609
First Year B. Sc. Examination March / April - 2011 Computer Science : Paper - II
(Programming Language "C")
Time : 3 Hours]
Instructions :
(1)
M CnsLLnlcj.L{l [qoicu u? snqw <h>h41.
Fillup strictly the details of signs on your answer book.
Name of the Examination :
F. Y. B. Sc.
Name of the Subject:
Computer Science - 2
-Subject Code No.:
Identify the syntax error in the following program and correct it :
a. mainO b. mainO
{float X; {float X;
X = 25; X = 25;
Y = Exp(x); Y=++x-X++;
/**printing section**/ break;
Print(x,y) Print(x,y)
} }
Explain syntax of switch with example. 6+4+4
3 (1) (2)
(3)
3 (1) (2) (3)
4 (1)
(2)
(3)
4 (1) (2)
5 (1) (2)
5 (1)
(2)
(3)
Explain how to declare and initialize a one dimensional and two dimensional array.
Define a structure. What is the difference between array and structure?
OR
Explain different types of 'if with example. 6+2+6
What do you mean by self referential structure?
Write the functions of the following :
(a) strcmpO (b) StrcatQ (c) sizeofQ (d) amaalocQ.
What are the advantages of using pointers in 6+4+4 C program? What do you mean by array of pointers and pointer to array?
Write a program to accept a string and check whether it is palindrome or not.
What are the bitwise operators? Explain.
OR
Discuss the following : 9+5
(a) typedef (b) enumerated data type (c) macro.
Write a program to sort a matrix of order MxN . Use dynamic memory allocation for Array.
What are the file opening modes ? 4+10
Write a program to read a text file, convert all uppercase to lowercase and write to another file. Accept the filenames as command line arguments.
OR
Explain the following functions 4+2+8
(a) feofO (b) fseekO
What do you mean by structured programming.
Explain different types of for loops.
SB-0609] 2 [ 500 ]
Add comment
Earning: Approval pending. |
|
|