0% found this document useful (0 votes)
0 views

cs218

Uploaded by

keshavasa6
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

cs218

Uploaded by

keshavasa6
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

$-t

ilfiiltfltllllllililililrililil] 11228

B.Sc II Semester Degree Examination, May - 2018


COMPUTER SCIENCE
Programming in 'Co
Paper - 204 C.S.'
(New)

Time : 3 Hours Maximum Marks : 80


Instructions to Candidates :

All the sections a.re compulsory.

Section - A
t AnsweranyTENofthg following: (10x2-20)
l. What is algorithm?

2. What are the Features of 'C' language ?


3. Write the syntax of printf ( ) and scanf ( ) statements?

4. "
What is loop? Listthetypes ofloop?

g 1- Dimensional u.rray?

6. Define the term Recussion

.
7 What is the significance ofNULL character?
8. What is structure? Give an example.

9. Write the syntax to declare a variable in C?

10. Whatispointer?Giveanexample

12. What is union? Give an example.

P.T.O
rrililffilriltil]tliltililil]
(2\ 11228

Section - B

IL AnsweranySlXofthefollowing: (6x5:30)
13. Explain the differenttypes ofprogramming languages?

14. What are the r'.rles to be fcllorved while declaring a variable?

" 15. Differentiate between while and Do


I 6. Write a C program to find transpose of a given matrix.

17 . Explain on switch statemeni with its syntax.

8. Write a C program to count vowels and consonants in a given string.


1

19. Write aC program to find sum of digits of a given number.

20. Explain on declaring a sffucture with exampie.

Section - C

m. Answer any T[trItEE ofthe following (3x10=30)

21. Ctassify the operators in 'C' explain terrrary operaior witir an exarnpie.

22. Explain on conditional control statements with their syntax and example.

23. Write aC program to find factorial of a given positive number using function.

24. Explain on string handling functions with their syntax and exampie.

25. What is structure? How do we declare a structure? Give its syntax with an example.

You might also like