You are on page 1of 2
= nase | 2017 SRI KRISHNA ARTS AND SCIENCE COLLEGE QP CODE An Autonomous college affiliated to Bharathiar University 16UM189 Kuniamuthur; Coimbatore ~ 641 008 End Semester Examinations: November 2017 Programme(s) Course Code(s) Title ___BSe. (ECS) 14IDUI6 C Programming = Time: 3 Hrs Max. Marks : 55 No. of Pages : 02 Section A Answer all questions (10 x 1 = 10) 1 Every line ina C program should end with a A; (Semi Colon) C (Period) B (comma) D_ (question mark) 2. Symbolic constant’s are usually written in A. Lowercase Special Character B Uppercase D_ Number 3A program stop’s its execution when a____statement is encountered. A End © Stop B Exit D Break 4 Scanf statement is preceeded by symbol. A. Asterik Square Bracket B Ampersand D_ Single quotes 5 isa function that concatenates two strings. A’ Stremp() C Streat() B_ Strepy() D Strlen() 6 External variable is also called as variable. A. Local © Global B Dummy D Static 7 The link between @ member and a variable is established using the member which is used in a structure A Ghee Boe? mi 8 The operator & immediately returns of the variable. A. Address © Location B Value D Size 9 ____function gives current position of the file. A. rewind) C getw0 B_ putw() D fell) Ba sxasc | 2017 10 is the mode needed for appending the file. Ar Coal Bow Dow Section B Answer All questions (5x3 = 15) 11 A_ Explain briefly the various data types available in aC Program. OR B Explain briefly the concept of symbolic constants with example. 12 A Write a program using if to find the biggest among three numbers. OR B_ Write a program in C to illustrate the usage of conditional operator. 13 A__ Explain briefly the concept of recursion with example. OR B What do you mean by function prototype? Illustrate with example. 14 A_ Define structure. Illustrate the concept of structure within the structure along with their syntax. OR B Explain briefly how we can access the variable using pointers. 15. A__ Explain how we can perform Input/ Output operations on files. OR B _ Illustrate the steps needed for error handling in files during I/O operations. Section C Answer All questions (5 x 6 = 30) 16 A_ Explain briefly the different types of operators available in a basic C program. B_ Explain how constants and variables are cae ina basic C program | 17 A _ Explain briefly the different types of looping operation with simple example. B Define arrays. Mlustrate two ietaasceey with simple example. 18 A Explain briefly the concepts of string handling function with suitable example. OR Explain briefly the concept of user defined function, o 19 > Mlustrate array of structures with suitable example. OR B Explain how we can pass pointers through functions with suitable example. 20 A. Explain the concept of random access to files in a brief manner. OR B_ Whatis a command Line argument? Illustrate briefly with example. //END/// RR 00 ror

You might also like