Wednesday 27 March 2013

OCT /NOV-2011 (C-05)



C-05-CM-304
237
BOARD DIPLOMA EXAMINATION, (C-05)
OCT /NOV-2011
DCME.-III SEMESTER EXAMINATION
UNIX & C

TIME: 3 Hours]                                                                     [Total Marks :40]
PART   - A
INSTRUCTION:  (1) ANSWER ALL QUESTION AND EACH QUESTION
                                           CARRIES FOUR MARKS
                    (2)  ANSWER SHOULD BE BRIEF AND   STRAIGHT      TO  THE POINT AND SHALL NOT EXEED FIVE SIMPLE SENTENCES

1.     List any two features of multi user operating system and give two examples.
2.     Write the use of head, tail commands.
3.     Explain grep command with example.
4.     State the importance of stdin, stdout, stderrr.
5.     What is conditional operator?
6.     What is a static variable
7.     List any four symbols used in flow chart.
8.     Define self referential structure.
9.     Define MACRO with example.
10.  List bitwise logical operators with examples.

Instructions :    (1) Answer any five questions and each question carries ten marks.
                  (2) The answers should be comprehensive and the criteria for valuation   is the content but not the length of the answer.

11.   (a) explain about unix file system. (b) explain working of the following directory commands each with an example. (i) cd, (ii) mv, (iii) cp, (iv) rm
12.   (a) write a shell script to generate Fibonacci series. (b) write a shell script to find the sum of 10 numbers using for loop
13.   (a) differentiate between algorithm and flowchart. (b) write a c program to find the length of the given integer.
14.   (a) explain conditional operator in c languge. (b) explain increment and decrement operator in c language. (c) list various comparision operators in c language with examples
15.   (a) explain switch statement. (b) write a c program to print multiplication table from 1 to 10
16.   (a) explain recursion technique with an example program (b) write the syntax of while and do-while loops and explain essential difference between them.
17.   Write a c program for two matrix multiplication using arrays.
18.   Explain the following preprocessing features. (i) include, (ii) define, (iii) ifdef, (iv) ifndef




No comments:

Post a Comment