LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE
|
FIRST SEMESTER – NOV 2006
CS 1500 – INTRODUCTION TO C PROGRAMMING
(Also equivalent to CSC 500)
Date & Time : 01-11-2006/1.00-4.00 Dept. No. Max. : 100 Marks
PART A
Answer all questions: 10 X 2 = 20
- What is an array variable?
- Define Algorithm.
- What is an escape sequence? What are its Advantages?
- What are parts of C Character Set?
- Give the arithmetic Operator precedence in C.
- List out any four mathematical functions in C.
- List out the bitwise operators in C.
- State the advantages of using Function in C Program.
- Give the construct of Structure.
- Define union.
PART B
Answer all questions: 5 X 8 = 40
11a) Discuss briefly the efficiency of algorithm
Or
- b) Define flowchart. List out the symbols. Give an example.
12a) Briefly discuss various classification of statements with example.
Or
- b) Explain the following topics with suitable example.
- Constant
- Keywords
- Identifiers
13a) Demonstrate through program any four String functions in C.
Or
- b) Briefly discuss while and for loop with example.
14a) Define function. Explain any two types of user-defined function.
Or
- b) Explain the various storage classes in C language.
15a) What is structure? Give example for passing structure to functions.
Or
- b) Explain creating a data file with example.
PART C
Answer any two questions: 2 X 20 = 40
16a) Discuss in detail about steps involved in computer programming.
- b) Write the different types of operators in C Language. Explain the ternary operator with example.
17a) Write a program to enter some text and display the text in reverse order.
- b) Discuss the following statements
- continue 2. break 3. goto
18a) Write a program to read data from the keyboard and write the content to a file called “input”
- b) write a program to define structure with following fields.
Sno, Regno, Vehicle_Type, Fuel
Develop a program in C to read and display the data of the structure.
Latest Govt Job & Exam Updates: