UNIT BASED ONLINE EXTERNAL EXAMINATION - OCTOBER – 2020 - COMPUTER PROGRAMMING IN C - 7BPH5C2 - SLOT II

Alagappa University, Karaikudi. (AU06)

Unit - Based Online External Examination – NOV 2020

B.Sc. Physics

Fifth Semester – Slot -II

Computer Programming in C

Time: 1 Hour                                                                                    Maximum: 25 Marks

Date : 17-11-2020                                                                        Sub Code :  7BPH5C2

                                                            Part – A                                    (5 x 2 = 10 Marks)

Answer all the questions

 

1.    State the use of do-while loop.

2.    Write the syntax of ‘if’ statement.

3.    Write a note on ‘continue’ statement.

4.    What do you mean by arrays?

5.    How will you declare a two dimensional array?

 

      Part - B                                        (3 x 5 = 15 Marks)

Answer any THREE questions

 

6.    With a suitable example, explain ‘if-else’ statement with a flow chart.

7.    Explain the working of  ‘while’ statement with an example.

8.    Explain the ‘for’ statement with example.

9.    Write a note on ‘switch’ statement.

10. What is the difference between ‘break’ and ‘continue’ statements?