1/14/2012

DCA Exam Questions


C- Dit Examination 2009


Programming in C


Maximum Marks: 100



I. Fill in the blanks. Answer all questions.

1. C programming language was developed by .........

2. Explicit type conversion is known as .........

3. ......... Symbol is used as a statement terminator in C.

4. ......... is a function used to determine the length of a string.

5. ......... library function is used to read a single character from the keyboard.

6. ......... is the keyword used to declare an enumerated data type.

7. ......... mode is used to open the file foe reading only.

8. ......... function is used to compare two string in C.

9. ......... memory allocation allocating memory at compile time before the associated program is executed.

10. ......... is the equality operator used in C.

[10x1=10]



II. State Whether True or False. Answer All Questions.

1. Array is a collection of homogeneous data type.

2. #define is a preprocessor directive.

3. Float is a fundamental data type.

4. main() is an example of user defined function.

5. C is an object oriented programming language.

6. The value of relational expression is either one or zero.

7. ++ is a logical operator

8. printf() is an input function used in C.

9. GCC is the open source C compiler

10. do while loop executes at least once even the condition become false.

[10x1=10]

III. Choose the Correct Answer. Answer all Questions.

[ struct, void, exit(), conio.h, &&, &, \a, break, \b, \n, +=, conio.h, main() ]

1. ......... is a header file in C.

2. ......... Operator is called the address operator

3. ......... Statement takes the execution control out of the loop within a program.

4. ......... Is a fundamental data type.

5. ......... Escape character can be used to beep from speaker in C.

6. The return type must be ......... If no vale is returned.

7. ......... Is an arithmetic assignment operator

8. ......... Function takes the execution control out of the program.

9. ......... Is a logical operator.

10. ......... Function must include in all C program.

[10x1=10]

IV. Explain briefly. Answer any Five Questions.

1. State different operators used in C.

2. What is an array? Explain different arrays used in C with example.

3. How to declare a function in C.

4. Explain recursion functions with suitable example.

5. What is a pointer? Give example?

6. What is the difference between structures and union.

7. Explain enumerated data type with example.

[5x10=50]

V. Answer any One Question. Explain in detail.

1. Explain Branching and looping statements in C.

2. What is a File pointer? Explain file accessing functions in C.

[1x20=20]



Answers:
I.
1. Dennis Ritchie 2. Type Casting 3. ; 4. length() 5. getch()
6. enum 7. input 8. strcmp() 9. malloc 10. ==



II.
1.True 2.True 3.True 4.False 5.False
6.True 7.False 8.False 9.– 10.True



III.
1.conio.h 2.& 3.break 4.int 5.\b
6.void 7.+= 8.exit() 9.&& 10.main()

Subscribe with Your Email Address to get our Daily Free Current Affairs, Model Questions, Previous Questions and Answers straight in your E-mail.

Confused Icon Confused? Feel free to Ask

Your feedback is always appreciated. We will try to reply your queries as soon as possible. Please do not spam , Spam comments will be deleted immediately upon our review.

Regards,
Sameer Shamsudeen

0 comments :

Followers

Notice Board