Uttarakhand Tech. University
B.tech (firs year)
odd sem Examination, 2012
sub:- Fundamental of Computer and
Programming
time:-3hr}
Note : attempt all questions, 20 marks each.
Note : attempt all questions, 20 marks each.
Q1:- Attempt any four parts of the following :
- Define the term computer. What are the different types of computer ?
- Explain any two character representation codes.
- How 72.45 will be stored in IEEE 754 standard ?
- How the different elements of CPU help in execution of a program ?
- Compare and contrast Unix and windows operating system ?
- Write and explain any five commands of Unix and Dos separately ?
Q2:- Attempt any four parts of the following :
- What is flow chart ? draw flow chart to fine out maximum of three numbers.
- Define alogorithum. Write an algorithum to find out the minimum of number from list of integers.
- What are the features of high level language ?
- Explain the different types of programming language.
- Discuss the salient features of vi editor.
- What is compiler ? Differentiate between compiler and interpreter.
Q3:- Attempt any two parts of the following :
- Explain the different storage classes used in C. Write a small program to show the usage of each one of them.
- (a) write a program in C to find out whether the given number is prime or not.
(b) What are the difference between while and do while loop ? - Write a function in C to swap two characters using call by value and call by reference.
Q4:- Attempt any two parts of the following :
- What is an array ? How the address of any element is calculated in 2D array ? Write a function in C to multiply two matrices.
- How string is stored in C ? Write a program in C to input a paragraph and find out the number of character words and lines used in that paragraph.
- Explain structure. Write a program in C to create a structure called "stud" having roll no. name and percentage as fields. Input at least 10 data and print the names of student. having percentage more than 70% and roll no. even.
Q5:- Attempt any four parts of the following :
- (a) Write a program in C that copies content of one file into another.
(b) What is pointer to function ? Explain - What are merits and demerits of dynamic memory allocation technique ? Write a program in support of your answer.
- Write short notes on :
(a) Calloe
(b) Pointer arithmetic
(c) Multiple in direction.
---XXX---
Practice it and wish you all the best in your life....:)
No comments:
Post a Comment