0% found this document useful (0 votes)
24 views3 pages

CMCS11 CMSE11 Programming in C 1

Mku

Uploaded by

Pon Karan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
24 views3 pages

CMCS11 CMSE11 Programming in C 1

Mku

Uploaded by

Pon Karan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
pages) Reg. No. Code No.1 10460E Sub, Cod B.Sc. (CBCS) DEGREE EXAMINATION, APRIL. 2023. First Semester Computer Science! Software Engineering PROGRAMMING IN C or those who joined in July 2021 onwards) ‘Time : Three hours ‘Maximum :75 marks PART A— (10x 1= 10 marks) Answer ALL questions (Choose the correct answer 1. Which of the following denotes. the emallest individual units ofa C program? (2) Expressions) ‘Tokens © Arrays @ Structures Which of the following is an unary operator? @ + w+ © & @? Which of the following is equivalent tu WeRay Hh) () reasy te FW) tek hy tite yee ld) tetity tte What does goto require in order to identify the place where the branch i to be made? @) expression value (0 variable (@ label Which of the fllowing ia a fixed size sequenced collection of elements of the same datatype? (@) union © structure (© amy @ pointer Which ofthe following terminates its input on the first white space it finds? (@) scanft%e", 8); () seanf%("oI (0 gets, @ gotehiy Which of the following is not part of function declaration? (@) function name (©) function type (© return statement (@ terminating semicolon Page 2 Code No. 10460 E © scanned with OKEN Scanner S iwhich a variable #2 a) Scope ie h ofthe following aon aets the position to r . the beginning of the file 6) movie nat (© rewind (@ semte 10. What isthe value of *P++ in the fllowing code? int x=10, pa as @ 10 ou oe (@) address of x+1 PART B—(6x5=25 marks) “Answer ALL questions, choosing either (a) or (). Bach answer should not exceed 250 words. (@) What are the different storage classes nL available in C? Or () Write notes on getchar() and putchar(). Page 3 Code No. : 10460 E 4 re explain ifelse statement with an a) Briefly example or (b) Compare While and Do statement declared and (a) How is one-dimensional are initialized? or (b) How are strings declared and initialized? (a) What are the different categories of functions? Or (@) Compare structure and union. (@) Write «© program to interchange two numbers using pointers. Or () Write @ note on inputloutput operations in files. Page 4 Code No. : 10460 E PTO] © scanned with OKEN Scanner Parr o—6« 10 marks) Answer ALL questions, choosing ether (a) oF ®) neh answer should not exceed 600 words 16. (@) What aro the different operators avaiable 18 ©? Give their precedence. or (©) Briefly explain formatted input statement. 17. (@) Explain switch statement with an example or () Explain FOR statement with an example 18, (a) Write a C program to sort the given numbers in ascending order. or (©) Explain any four st ing handling functions. 19, (@) What is recursion? Explain with an example. Or (©) Explain the seope, visibility and lifetime of a variable Page 5 Code No. : 10460 E 2, (9) Briefy explain how pointer variables are declared, accessed and used in expressions? or (©) Explain Error handling during VO operations Page 6 Code No. : 10460 F, © scanned with OKEN Scanner

You might also like