Download AKTU (Dr. A.P.J. Abdul Kalam Technical University (AKTU), formerly Uttar Pradesh Technical University (UPTU) B-Tech 4th Semester (Fourth Semester) 2014-15 Computer Programming Question Paper
llllllJlllljlllljllllJlllljlllljlllllll C8201
(Following Paper ID and Roll No. to be ?lled in your Answer Book)
PAPER ID : 199239
Roll No.
B. Tech.
(SEM. IV) THEORY EXAMINATION, 2014-15
COMPUTER PROGRAMMING
Time : 3 Hours] [Total Marks : 100
Note : ( 1_) Attempt all questions.
(2) Make suitable assumptions wherever necessary.
SECTION-A
l. Attempt all parts of this question. 2x10=20
(a) Explain the ?lnctions of a linker.
(b) What is the role of curly braces ({}) in C
program.
(0) What will be the output of the following program?
void main()
l
?1
int i=1, j=2, k=3;
clrscrO;
P?nt??%d?,?((i+k)>(i+5) ) );
}
(d) What is sizeof () operator? Explain with suitable
example.
199239] 1 [ Contd...
(e) Differentiate between ??/of?and"%g?.
(i) What are the limitations of switch () case
statement?
(g) Why does element counting of arrays always start
from ?0??
(h) Name the types of storage classes
(1) . What do you mean by system software?
(j) Differentiate between sequential search and binary
search.
SECTION-B
2? Attempt any three of the following. l.0><3=30
(a) (i) What is a ?ow chart? Draw the ?ow chart
for ?nding the greatest element in an array.
(ii) Convert the following;
1) (110010])2 = ()10
2) (AZFhs : 02
3) (23.72)10 = ()2
4) (264)8 = ()2
5) (231)4 = ()2
(b) What are the nested loops in C? Write a program
in C to ?nd the perfect cubes up to given number)
As 18,27,64 are perfect cubes of 1,2,3,4,
respectively.
199239] 2 | Contd...
(C)
(d)
(e)
What is a pointer? Write the advantages and
disadvantages of it. Explain with suitable example
how pointers are declared in C programming.
How are the multidimensional arrays declared in
C programming? Write a program in C to multiply
two m>
by C language? Wn'te a program in C to generate
the following pattern using for loop and while
SECTION-C
3 Attempt any two of the following. 2x5=10
(a)
(b)
(C)
199239]
What is digital computer ? How is it different from
analog computer ? Classify the various digital
computers.
Differentiate between:
(i) SRAM and DRAM
(ii) CD-R and CD-RW
What are the various approaches to problem
solving? Explain any one of them.
3 [ Contd...
4 Attempt any two of the following. 2x5=10
(a) Explain comma and conditional operator in C
language with suitable examples.
(b) Name different categories of constants in C
language.
(0) Write a program in C to check whether a given
string is palindrome or not?
5 Attempt any two of the following. 2x5=10
(a) De?ne the structure and union in C. List the
advantages and disadvantages of each.
(b) Discuss the various parameters passing mechanism
used in ?inction in C language.
(0) What is a string? Write a function in C to ?nd
the length of string without using strlen().
6 Attempt any one of the following. 1x10=10
(a) What types of ?les can be created in C for storing
the data? Write a program in C to create and
then store the ?rst 30 odd integers in it.
(b) What are array of pointers? How they are
declared and initialised? Using pointers write a
program to read and display list of names of
students. '
7 Write short notes on any two of the following. 2x5=10
(a) Operating system
(b) De?ning and calling macros with proper example.
(0) Global variables
199239] 4 [2875]
This post was last modified on 29 January 2020