Download AKTU B-Tech 2nd Sem 2015-16 CS 201 Computer Programming Question Paper

Download AKTU (Dr. A.P.J. Abdul Kalam Technical University (AKTU), formerly Uttar Pradesh Technical University (UPTU)) B-Tech 2nd Semester (Second Semester) 2015-16 CS 201 Computer Programming Question Paper

Printed Pages: 4 CS-201
(F allowing Paper ID and Roll No. to be ?lled in your
Answer Books)
PaperIDzl99239 RollN0.| I I I I I | | | |
B. TECH.
Theory Examination (Semester?II) 2015-16
COMPUTER PROGRAMMING
T ime : 3 Hours Max. Marks : 100
Note: Attempt all sections.
Section-A
1. Attempt all parts. Each part carries 2 marks. (2X10=20)
(a) What is pointer and how is it initialised?
(b) Write is the role ofALU? Explain.
(c) What is the difference between following directives?
#include and #include "stdi0.h"
((1) Describe the ?inctions of Operating System.
(e) What are the escape sequences characters?
1 (1) P.T.O.

(f) What is enumerated data type?
(g) What is the output of this C code?
intmain()
{
intx=4;
X = X << 1;
printK"%d\n", X);
(h) What happens if you create loop that is never ended?
(i) Why C programming is called structured programming?
G) What is the value of x for X: -17%-2,
Section-B
Attempt any ?ve questions. Each part carries 10 marks.
(10X5=50)
(21) Write a program in 'C' to reverse a string through pointer.
(b) Write about the formatted and unformatted Input / Output
?mctions in C.
(0) Write a program in 'C' print Fibonacci series using
recursive function.
(2) P.T.O.

(d)
(f)
Q9
(11)
Draw a ?ow chart and write an algorithm to ?nd sum
and average of 3 numbers.
Explain with the help of an example, static and extern
variable.
Compare the switch? case and nested if statement in C
language with suitable example.
Write a program in 'C' to ?nd that the given number is
prime or not.
Differentiate between structure and union in 'C'. Write a
'C' program to store the employee details using
structure.
Section-C
Attempt any two questions. Each question carries 15 marks.
(i1)
(15x2=30)
Differentiate between break and continue With suitable
example.
Write the difference between type conversion and type
casting.
G) RIKl

(i)
(ii)
List out various ?le operations in C. Write a C program
to count the number of characters in a ?le
What are the different types of Operator in C language
and also write down the difference between the
associativety and precedence of operators.
Write a program in 'C' to multiply the two matrices of
size M X N.
Explain the following:
(a) Preprocessor
(b) Double precision
(0) Array of Structures
(4) P.T.O.

This post was last modified on 29 January 2020