0% found this document useful (0 votes)
15 views2 pages

C Axm

The document outlines a final exam for a Programming in 'C' module, consisting of various question types including fill-in-the-blanks, true/false statements, and comparisons. It also includes programming tasks related to input/output functions, pointers, and swapping numbers. The exam is structured to assess knowledge of C programming concepts and syntax.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

C Axm

The document outlines a final exam for a Programming in 'C' module, consisting of various question types including fill-in-the-blanks, true/false statements, and comparisons. It also includes programming tasks related to input/output functions, pointers, and swapping numbers. The exam is structured to assess knowledge of C programming concepts and syntax.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Module : Programming in ‘C’ (Final)

Marks : 70
Time : 1. 30 min
1Q. Fill in the Blanks: (1 x 10 = 10)

1. Who designed ‘c’ programming language_____________.


2. The maximum width of a variable name in ‘C’ _______
3. The initial value of auto variable is_____________.
4. The scope of a variable in the main function is____________
5. ________Is the compiler of ‘C’ programming Language.
6. If a is an integer variable, a=5/2; will return a value _______
7. The conditional operator is ______ and _________
8. Pointers points__________.
9. ______ Function copies the contents of one string into another.
10. An array is a collection of data belonging from same __________
2Q. State whether the following statement are True or False. (1 x 10 = 10)

a. The array int num[26] has twenty-sex elements.


b. *float ptr; is the correct way of declaring a float point.
c. The expression a =30*1000+2768; evaluates to –32768
d. Each new c Instruction has to be written on a separate line.
e. Blank spaces may be inserted between two words in a ‘C ‘variable name.
f. Prefix is a++ and postfix is ++a in C operators.
g. Do while check first then display.
h. In ‘C’ true means 1.
i. Function calling itself is called recursion function
j. The default storage class is auto storage class.
3Q. Different Between (3 x 5 = 15)

a. While and Do – while


b. Continue and Break
c. Structure and Union
d. Printf() and Scanf()
e. Strcpy() and Strncpy
4Q Find out the output of the following :
(1) B=3/2+5*4/3;
(2) The expression a=7/22*(3.14+2)*3/5;
(3)
main() printf(“This is a Program”);
{ else
int x=3,y,z; printf(“It is not program”);
y=x=10; }
z=x<10;
printf(“\n x=%d y=%d z=%d”,x,y,z);
} (5) Find out value
main()
(4) Find Error {
main() int x=4,y,z;
{ y = --x;
int a,b; z = x--;
scanf(“%d%d”,a,b); printf(“\n %d%d%d”,x,y,z);
if(a>b) }
Answer the following Questions and Programs
Q1. a) What is Input and output function in C programming .
b) Write a programming a Enter the student name basic salary find out da 20% of
basic ,hra is 10% of basic,pf is 5% of basic ,net and grade whose net above 10000 is “A
grade and above 5000 “b” other C grade.

Q2. (a) What is pointer ? How to Declare a Pointer ? Different between pointer and array.
(b) Swapping of two number

You might also like