cs -
rlilfir|ilfflllffitfiffilliiilil
&Y
I Semester B.A"tB.Sc. Examinationo March 2023
1e6
Eecs) (Repeaters)
(2014-15 and Onwards)
COMPUTER SCIENCE - !
Programming Concepts
Time : 3 Hours Max. Marks : 70
lnstructian : Answer att the Secfrbns.
SECTION _
Answer any ten questions. Each question carries two marks. (10x2=20)
1. What is an Algorithm ?Give one of its advantaEe.
2. What is software ? Mention the classification of software.
3. Explain ternary operator"
4. What are local and global variables ?
5. Mention the different data types supported in 'C' language.
6. Explain break and continue statements.
7. Define array. How can an array be initialized ?
L Define pointer with an exarnple.
9. Distinguish between calloc$ and malloc0.
10. Give the differente betvveen structure and union.
11. Write any four file functions.
12. What are actual and formal parameters ?
SECTION _ B
Answer any five questions. Each question carries ten marks. (5x10=50)
13. a) Explain the structure of 'C' program with an example. 5
b) What is a flowchart ? Write its symbols. 5
P.T.O.
1
cs - 196 iffitililtfilllllllllllililfiiilr
14. a) Expiain arithmetic and relational operators with an example. 5
b) Describe in detail the syntax errors, logical errors and runtime errors. 5
15. a) Explain formated input.output functions in 'C' language. 5
b) Explain any three loopinE statements with an example. 5
16. a) Explain the function definition and function prototyping. 5
h) Explain the difference between call by value and call by reference. 5
17. a) Write a 'C' program to find factorial of a number. 5
b) Explain switch care statement with an examptre. 5
18. a) Write a 'C' program to display fibonacci series using recursive functions. 5
b) Explain different storage classes in 'C' language. 5
19. a) What is a file ? Explain three modes of files. 5
b) What are pre-processor directive ? 5
example.
20. a) Explain string operations with an 5
b) Explain static and dynamic memory allocation. 5