Download AKTU B-Tech 1st Sem 2015-2016 CS 101 Computer Programming 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) 2015-2016 CS 101 Computer Programming Question Paper

Printed Pages:3 1029 cs101
(F olloWing Paper ID and Roll No. to be ?lled in your
Answer Book)
Roll No.
B.TECH.
(SEM. I) TH EORY EXAMINATION, 2015-16
COMPUTER PROGRAMMING
[Time:3 hours] [Total Marks:100]
mm)
SECTION-A
Attempt all parts .All parts carry equal marks. Write
answer of each part in short . (2X10=20)
(a)
(b)
(C)
(d)
(e)
(0
(3)
What do you mean by recursion?
List various functions of an operating system.
Differentiate between compiler and linker.
Why ?C? programming is called structured
programming?
Explain struct with suitable example.
Write a function in C to exchange the content of
two integer variables without using a third variable.
What is an algorithm? Discuss basic characteristics
of an algorithm.
(1) ~ P.T.O.

(h) Differentiate between machine language & high
level language. ?
(i) What do you understand by mixed operands?
Explain. v
(i) What is the meaning of the prototype of a function?
' ? SECTION-B
Attempt any ?ve questions from this section.
(1 0x5=50)
Simulate calculator using switch statement.
Write a program in C to print the following
A
BA
ABA
BABA
ABABA
Explain the following with example:
(i) Relational operators.
(ii) Top-down program development
Differentiate between while and do-while loop. Write a
program in ?C? and draw ?ow chart to ?nd dwhether a
given number is prime or not.
(2) cs101
How macros are de?ned & called inc? Explain.
What do you mean by sorting? Write a programm to sort
the given n positive integers. '
Writcf short notes on
, (i) Linuxandwindows
Attempt any two questions from this section.
10.
1800
(ii) Pointer arithmetic
Explain with example, the syntax and usage of the
following in C program.
(i) Operator precedence
(ii) Array of structures
SECTION-C
? (1 Sx2=30)
(a) . Explain logical and bitwise operators with the help
of suitable example.
(b) Write a C program to multiply two matrices. Take
the size and elements of matrices from the
keyboard. ?
(c) What are the types of function? Write a C program
to ?nd the factorial of a given number using
recursion .
(3) P.T.O.

11.
12?
(b)
(a)
_ (b)
I 800
(C)
De?ne data types in C. Discuss primitive data types
in terms of memory size, format speci?er and
range. '
Discuss the major components of a digital
computer with suitable block diagram. Also discuss
the functions of these components.
Differentiate call by value and call by reference
with suitable example.
erite a program in C to copy the text of one ?le
to another.
Writed a programd in C for printing Fibonacci
series upto a term given by user using recursion.
(4) cs101

This post was last modified on 29 January 2020