You are on page 1of 1

USN 14PHDMA008

Ph.D./M.Sc. (Engg.) by Research Degree Examination, September 2015


Computer Fundamentals and Programming in C
Time: 3 hrs. Max. Marks:100
Note: Answer any FIVE full questions.
1 a. Explain the different types of Languages encountered in programming process. list
advantages and disadvantages of Languages. (06 Marks)
b. Explain the classification of operating systems with examples. (08 Marks)
c. Define and distinguish between assembles, compilers and interpreters. (06 Marks)

2 a. What is meant by a pseudocode? Explain the pseudocode solution to a problem. (06 Marks)
b. Write the structure of a C- program. (06 Marks)
c. What are keywords and Identifiers? Mention the rules to form an identifier with four
illustrations. (08 Marks)

3 a. Describe the four basic data types. Mention the ranges of values an 16 – bit machines.
(08 Marks)
b. What are escape sequences? Mention the constants used and their meaning. (06 Marks)
c. Explain the difference between post increment and pre increment by taking an example.
(06 Marks)

4 a. Write the general format of scanf ( ) and printf ( ) statements with an illustration for each.
(06 Marks)
b. Write the format specifiers used in scanf ( ). (06 Marks)
c. Write an algorithm and flowchart to find the area of a tringle. (08 Marks)

5 a. What are assignment operators? Explain the operations with examples. (06 Marks)
b. What is conditional operator? Write a program to find the larger of two numbers using
conditional operator. (06 Marks)
c. Explain the for loop with syntax and draw flow chart. Write a program segment to print N –
numbers using for loop. (08 Marks)

6 a. What is the difference while and do – while loop? Write their syntax and draw flow charts.
(08 Marks)
b. Write a program to find the reverse of a number and sum of its digits using while loop.
(06 Marks)
c. What is difference between break and continue statements? (06 Marks)

7 a. What are static variables? How do they differ from automatic variables? (08 Marks)
b. Write a program to add two matrices. (06 Marks)
c. What are pointer variable? Write a program to display the memory address of a variable
using pointer. (06 Marks)

8 a. What is objet oriented paradigm? Explain the features of OO paradigm. (06 Marks)
b. Write the structure of C++ program. Explain the sections of C++ program. (06 Marks)
c. Explain the following terms.
i) Class ii) Data abstractions and encapsulation iii) Inheritance iv) Polymorphism.
(08 Marks)

*****

You might also like