Rajiv Gandhi Proudyogiki Vishwavidyalaya 2008 Diploma Information Technology Mid Term - Question Paper
Monday, 28 January 2013 09:30Web
I. Objective kind questions: 5
1. Full form of ‘C’ is
a. Console b. Compiler c. Computer d. None of the above
2. Which 1 is used in expressing the arithmetic statement in ‘C’
a. Brackets [] b. Braces {} c. Parenthesis () d. All of the above
3. When did ‘C’ developed
a. 1972 b. 1970 c. 1960 d. 1969
4. Which header file used for typecasting
a. stdio.h b. stdlib.h c. ctype.h d. process.h
5. Which operator is used to terminate the ‘C’ statement
a. Colon b. Comma c. Semi-colon d. Fullstop
II. (a) Draw the flow chart for greatest of two numbers . 5
(b) Write algorithm for factorial number. 5
III. Write a Program to obtain prime number 5
OR
Write a program to print ASCII number and its Character.
IV. (a) discuss Preprocessor directive. 5
(b) change the subsequent into ‘C’ statement 5
1. c = p(1+__r__ )n
100
2. a = vs(s-a)(s-b)(s-c)
3. s = va2 + b2 – 2abcosT
4. x = -b + vb2 – 4ac
2a
5. t = 1____
2?vlc
V. (a) List all the kinds of Operators, discuss 1 of them. 5
(b) describe the functions with its header file, syntax & example (any 5) 5
Ceil(), fmod(), getchar(), toascii(), rand(), srand(), log(), exp(), floor()
VI. (a) Difference ranging from for loop, while loop, do…while loop. 5
(b) What is Function? discuss kinds of functions. 5
VII. (a) What is Recursion? Write its advantages and disadvantages. 5
(b) Write a program for matrix multiplication 10
VIII. Write short note: (any two) 10
(a) Characteristics of a good program
(b) Steps of Program Development
(c) Difference ranging from structure and union
(d) Keywords and identifiers
(e) Data kinds
Earning: Approval pending. |