VTU First Year Engineering (C Cycle) (Semester 1)
Programming in C and Data Structures
May 2016
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1(a) What is psecudo-code? Compare it with an algorithm.
5 M
1(a) Find the Laplace transform of te3t sin 4t.
5 M
1(b) Convert the following into ' C ' expression ; i)xyz  ii)e|x|  iii)abcd  iv)s(sa)(sb)(sc).
4 M
1(b) Find half-range cosine series for f(x)=ex,
0
5 M
1(c) Write a C program to find largest among three integers using ternary operators.
6 M
1(c) Is f(z)=zz/ analytic?
5 M
1(d) Explain formatted input and output statement with examples.
5 M
1(d) Prove that x(a¯xlogr)=2(a¯.r¯)r¯r4/, where \bar{a} is a constant vector.
5 M

2(a) Write structure of C program. List primitive data types with size and range.
10 M
2(a) Find the Z- transform of 1(z5)3/ if |z|<5.
6 M
2(b) Define type casting. Explain with an example.
4 M
2(b) If V=3x2y+6xy-y3, show that V is harmonic & find the corresponding analytic function.
6 M
2(c) Evaluate following (where i = 2, j = 3, k = 4 and a = 5) :
i) a = i*( j/=k/i)
ii) a>>i%j
iii) * = a / i % i.
6 M
2(c) Obtain Fourier series for the function f(x)={1+2xπ,πx012xπ,0xπ/ hence deduce that π28=112+132+152+........./
8 M

3(a) Write a C program to grade student result based on following conditions ;
i) Marks <35 grade "Fail"
ii) 35≥ Marks <60 grade "Second class"
iii)60≥ marks <70 grade "First class"
iv) 70≥ marks ≤ 100 grade "First class with distinction".
8 M
3(a) Find L1[(s+2)2(s2+4s+8)2]/ using convolution theorem.
6 M
3(b) Explain switch statement with an example.
7 M
3(b) Show that the set of functions 1,sin(πxL),cos(πxL),sin(2πxL),cos(2πxL),........../ Form an orthogonal set in (-L,
L) and construct an orthonormal set.
6 M
3(c) Write a note on goto statement.
5 M
3(c) Verify Green's theorem for (e2xxy2)dx+(yex+y2)dy/ Where C is the closed curve bounded by y2=x&x2=y.
8 M

4((c) What is dangling else problem? Explain how to handle this in C programming.
4 M
4(a) Explain cascade if-else and nested if-else satements.
6 M
4(a) Find Laplace transform of \( f(t)=K\frac{t}{T}for 0/
6 M
4(b) Write a C program to implement simple calculator using operators +, - , * and /. Also handle divide by zero error. Use switch statement .
10 M
4(b) Show that the vector, F¯=(x2yz)i+(y2zx)j+(z2xy)k/ is irrotational and hence, find φ such that \bar{F}=∇φ
6 M
4(c) Find Found series for f(x) in (0,
2π), f(x){x,0xπ2πx,πx2π/ hence deduce that π496=114+134+154+........../
8 M

5(a) Define array? How two dimension arrays are declared and initialized ?
6 M
5(a) Use Gauss's Divergence theorem to evaluate sN¯.F¯ds/ whereF¯=2xi+xyj+zk over the region bounded by the cylinder x2<\sup>+y2=4,
z=0,
z=6.
6 M
5(b) Write C program to genrate Fibonacci numbers using arrays.
6 M
5(b) Find inverse Z- transform of f(x)=z(z1)(z2),|z|>2/
6 M
5(c) Explain following string function:
i) strlen
ii) strcpy
iii) strcmp
iv) strcat.
8 M
5(c) i) Find L1[log(s+1s1)]/
ii) L1[s+2s24s+13]/
8 M

6(a) Explain various ways of passing parameters to the functions.
6 M
6(a) Solve (D2+3D+2)y=2(t2+t+1) with y(0)=2 & y'(0)=0.
6 M
6(b) Write a C program to find factorial of an integer using recursive function.
8 M
6(b) Find the bilinear transformation which maps the points 0,
i,
-2i of z-plane onto the points -4i,
∞,
0 respectively of W-plane. Also obtain fixed points oft he transformation.
6 M
6(c) Write a C program to find length of string without using strlcn ( ) recursive function.
6 M
6(c) Find Fourier sine integral of \(\left\{\begin{matrix} x, &02 \end{matrix}\right. \)/
8 M

7(a) Compare arrays with structures.
6 M
7(b) Define structure. Explain it with an example.
5 M
7(c) Explain the following :
i) typedef to define structure
ii) Accessing structure members
iii) Initialization of structure.
9 M

8(a) Explain following file handling functions:
i) fopen ( )
ii) fclose ( )
iii) fscanf ( ) iv) fprinff ( )
v) fseek ( )
10 M
8(b) Write a C program to create a integer data file and then segregate odd and even integers into two different files.
10 M

9(a) What is pointer ? Explain with program.
6 M
9(b) Explain the following :
i) #define
ii) #include
iii) nesting of macro
iv) argumented macro.
10 M
9(c) Explain malloc and calloc functions.
4 M

10(a) What is sack? Explain Write its applications.
8 M
10(b) Explain queue and write its applications.
8 M
10(c) Write a note on trees.
4 M



More question papers from Programming in C and Data Structures
SPONSORED ADVERTISEMENTS