Thursday, October 2, 2014

2013-14 (ODD SEM)

b.Tech.

(Semester –I) odd semester Theory Examination, 2013-14

COMPUTER PROGRAMMING

Section – A

1.      Attempt all parts of this section.                                                        (2 X 10 = 20)
(a)    Write in brief about the components of Central Processing Unit of a Computer.
(b)   Make the hierarchy of different memories available in a computer.                   
(c)    Write the difference between while and do-while loop.
(d)   Write output of the following:
printf(“%d”, strcmp(“Quiet”, “Quilt”));

(e)    Declare and initialize three dimensional array.
(f)    What do you mean by Operator Precedence?
(g)   Define double pointer with example.
(h)   Write difference between implicit and explicit type casting.
(i)     Define operating system with its different functions.
(j)     Write difference between compiler and interpreter.

SECTION – B

2.      Attempt any three parts of this section. Each part carries 10 marks.     (10 X 3 = 30)

a)      Convert the following:
a.       (FA1.2C)16 = (?)8
b.      (756)10 = (?)4
c.       (11011.011)2 = (?)16
d.      (574.32)8 = (?)2

b)      Write the difference between structure and array. Write a program in ‘C’ to find the largest element of a 3X3 matrix.
c)      What are the different types of functions? Write a program in C to sort list of names of students in an ascending order.
d)     Define Union. Write a program in C to find the record of a student having maximum marks from the list of 10 records. Each record has roll no, name, class and marks fields.
e)      Describe various storage classes supported in C, with suitable example.

Section – C
Q3. Attempt any two parts:                                                                            (5 X 2 = 10)
(a)    Define algorithm and make a flow chart to find prime numbers between 101 and 999.
(b)   Write a short note on top-down program development approach.
(c)    Write a program in ‘C’ to print the following pattern”
1
2          3
4          5          6
7          8          9          10
 
Q4. Attempt any two parts:                                                                            (5 X 2 = 10)
(a)    Write a program in C to copy content from one file to another file.
(b)   Write a program in C to reverse a string through pointer.
(c)    Define recursive function. Write a program in C to generate Fibonacci series (0  1  1  2  3  5  8….) using recursive function.

Q5. Attempt any two parts:                                                                            (5 X 2 = 10)
(a)    What is the architecture of Linux Operating System? Discuss.         
(b)   Write a program in C to find the sum of individual digits in a five digit number.
(c)    Explain the following:
a.       Preprocessor
b.      Conditional operators

Q6. Attempt any two parts:                                                                            (5 X 2 = 10)
(a)    Write difference between call by value and call by reference with suitable example.
(b)   Write a program in ‘C’ to find the greatest no. among three numbers using conditional operator.
(c)    Write a short note on macros with suitable example.

Q7. Attempt any two parts:                                                                            (5 X 2 = 10)
(a)    Differentiate between nested if and switch statements in ‘C’ with example.    
(b)   Write a program in ‘C’ to sort list of 10 integers in an ascending order.
(c)    Write a program in ‘C’ to multiply the two matrices of M X N.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.