Download AKTU B-Tech 1st Sem 2016-2017 RCS 101 Computer System Programming In C Question Paper

Download AKTU (Dr. A.P.J. Abdul Kalam Technical University (AKTU), formerly Uttar Pradesh Technical University (UPTU)) B-Tech 1st Semester (First Semester) 2016-2017 RCS 101 Computer System Programming In C Question Paper

Printed Pages: 4 RC8 - 101
(F ollowmg Paper ID and Roll No. to be ?lled m your
Answer Books)
Paper ll) : 2012297 Roll No.
B.TECH.
Regular Theory Examination (Odd Semester - 1), 2016?17
COMPUTER SYSTEM & PROGRAMMING
IN ?C ?
T ime : 3 Hours Max. Marks : 100
Section - A
1. Attempt all parts. All parts carry equal marks. Write
answer of each part in short. (10X2=20)
a) Explain the basic structure ofa C program.
b) What do you mean by Algorithm? Explain the
characteristics of algorithm.
c) What are functions? What is the advantage ofusing
multiple functions in a program?
d) Distinguish between - int main ( ) and void
main()?
e) What is the difference between pseudo code and
flow chart?
0 Draw the memory hierarchical structure of a
computer system.
101/12/2016/23760 (1) [P.T.O.

RCS - 101
g) What will be the output of following code?
Void main ( )
{
int a = 5, b = 6;
printf(?%d\t?, a = b);
printf(?%d\t?,a = = b);
printf(?%d\t%d?, a, b);
}
h) Write short notes on High level and low level
languages.
i) Write short notes on Union and enumerated data
type-
j) Write the ?ve commands of LINUX with its
architecture ?
Section - B
2. Attempt any five questions from this section.
(5 X 1 0:50)
a) i) What is the role of SWITCH statement in C
programming language. Explain with example.
ii) What is recursion? Write a program in C to
generate the Fibonacci series.
b) i) Differentiate between -
1) actual and formal arguments.
2) global and extem variables.
ii) Describe about the basic components of a
computer with a neat block diagram.
101/12/2016/23760 (2)
d)
g)
RCS - 101
i) What do you mean by dynamic memory
allocation? Explain the malloc() and calloc()
function in detail.
ii) Write a program'to multiply two matrices of
dimension 3 *3 and store the result in another
matrix.
Convert the following number into :
i) (10101011101011)2 = (?)16
11) (916.125)m =(?)4
iii) (123)]0 =(?)2
iv) (574.32)8 = (?2)2
v) (1011.10)2 =(?)lo
i) Write a program to print all prime numbers
from 1 to 300.
ii) Any year is input through the keyboard. Write
a program to determine whether the year is a
leap year or not.
What do you mean by parameter passing? Discuss
various types of parameter passing mechanism in C
with examples.
i) De?ne data types in C. Discuss primitive data
types in terms of memory occupied, format
speci?er and range.
ii) Write a program to print the following pattern:
A
AB
ABC
ABCD
ABCDE
ABCDEF
101/12/2016/23760 (3) [P.T.O.

11)
RCS - 101
List out various ?le operations and modes in C.
Write a program to copy the content from one ?le
to another ?le.
Section - C
Attempt any two questions from this section.
3. a)
b)
4 a)
b)
5 a)
b)
(2x15=30)
What do you mean by sorting. Write a program in C
to sort the given 11 positive integers. Also give the
?ow chart for the same.
Write a program to check whether a given number
is Armstrong or not. Like 153 = 13 + 53 + 33.
De?ne a structure? Write a program in C to create
a data base of ?fty students to store personal details
such as roll no., name and marks. Print all the details
of students whose name is entered by the user.
What do you mean by macro? Explain types of
macro with its example.
What do you mean by pointers? How pointer
variables are initialized? Write a program to sort a
given numbers using pointers.
A ?ve digit positive integer is entered through the
keyboard. Write a C function to calculate sum of
digits of the 5-digit number :
i) Without using recursion.
ii) Usingrecursion.
++++
101/12/2016/23760 (4)

This post was last modified on 29 January 2020