UTU B.Tech Previous year exam paper of 1st SEM FUNDAMENTALS OF COMPUTER PROGRAMMING 2012,
UTTARAKHAND TECHNICAL UNIVERSITY
EVEN SEM EXAMINATION,
2012
FUNDAMENTALS OF COMPUTER
PROGRAMMING
time:- 3hrs}
total marks :- 100]
Q1:- Attempt any four of the following:
- Explain IEEE standard for representation of a floating point number. Also discuss the concept of biasing and normalization.
- Draw the block diagram of a digital computer. Explain its various components. Discuss any five peripheral devices.
- Discuss the architecture of UNIX operation system by drawing suitable diagram. Explain the following UNIX commands :
chmod, su, kill, Is, Cat. - Write the functions of an Operating System. Differentiate between internal and external Dos commands.
- Compare and contrast mini, mainframe and micro system.
- Perform the following conversions :(156.45)10 = (?)2(AC2F)16 = (?)2(10110101010.1101)2 = (?)2
Q2:- Attempt any four of the following :
- What do you understand by the term algorithm? Explain by giving example. List the properties of algorithm.
- What is the significance of using a flow chart? Draw the flow chart for finding whether the given number is prime or not.
- Explain the different modes in vi editor.
- Write an algorithm for finding the GCD of two integers. Check the correctness of your algorithm on following data : 64, 160.
- Discuss the different phases of a compiler. How a compiler is different from an interpreter?
- "C is often called as middle level language"--comment.
Q3:- Attempt any two of the following :
- What is storage class in C? Explain its importance. Show the usage of each storage class by making a suitable program in C.
- Differentiate between call by value and call by reference mechanism. Make a program in C to reverse digits of a number.
- (a) What is recursion? Write a recursive function for finding the factorial of a given number.
(b) What is command line argument ? Make a program to show its usage.
Q4:- Attempt any two of the following :
- What is an array ? How two dimensional array is stored in one dimensional computer memory ? Write a program in C to find the inverse of a given matrix.
- Devise a program in C which take list of words as input and gives output the number of palindromes in the given list.
- What is the difference between structure and union ? Declare a structure "empl" having employee name, age and salary as data member. How using this structure write a program in C to input data of 5 employees and find out the average age of employees whose salary is below ten thousand.
Q5:- Attempt any two of the following :
- (a) How pointer variable is different from other variable ? Discuss pointer arithmetic.
(b) Explain the merits and demerits of static and dynamic memory allocation techniques. - (a) Write a program in C to the use of pointer to function.
(b) Discuss the usage of calloc and malloc function taking suitable example. - What is the process of declaring a file ? What are the different modes in which a file can be opened ? Write a program in C to copy the content of one file into the another file.
0 comments:
Post a Comment