Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CSD 101 ENDSEMS 2015, Exercises of Programming Languages

CSD 101 ENDSEMS 2015, High chance of question getting repeated or getting the similar type of questions, C language.

Typology: Exercises

2014/2015

Available from 08/10/2021

meetendra-singh
meetendra-singh 🇮🇳

17 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5

Partial preview of the text

Download CSD 101 ENDSEMS 2015 and more Exercises Programming Languages in PDF only on Docsity!

WEE ees Smiv Nagar UNIVERSITY Programme: B.Tech Discipline: Computer Science and Engineering Exam: End Semester Year: 201 il a " ott ing & Programming Course Code: CSD 101 Course Tite: Introduction to Computing nm er Time: . 9.30 AM - 12.30 PM Max. Marks: 100 Date: December 05, 2015 Ques. For the following program, state the scope (either function scope, program scope, 7; . P ti 1 block scope er function prototype scope) of each of the below mentioned elements. (1*5=5 Marks) #inctude int cubedian: | ; | intas 10; (a) The variable ‘x’ in main void maint) (b) The variable ‘y’ in cube i init X: (c) The function cube forty = Tix <= 10. x44) (d) The function main - (ce) The variable ‘a’ printf(“®od\n%d", cube(x),a); 1 5 int cube(int v) 4 return vy * y * y: Ques.2 Fill in the following blanks : (1*12 = 12 Marks) In a do_while loop, if the body of the loop is executed ‘n’ times, the test condition is I, evaluated _ __ times. 2. A pointer toa pointer stores ne of another __ variable, 3. The and statements are used to skip statements in a loop. 4. Fora 64-bit GCC C compiler, what will be the size of a character pointer? Sdn ; _loop, the entry is automatic and there is only | a choice to- continue it further or not, 6 Statement (keyword) violates the rules of — structured programming. 7. By default, the return type ofa function is . : 8. The only integer that can be assigned to a pointeris 9. A recursive function typically has 2 components: one that provides a means for the recursion to terminate by testing for a(n) case, and one that expresses the problem as a recursive call for a a slightly s simpler problem than the original call, 10. An array’s elements are related by the fact that they have the same and TS iI. The 3 values that can be used to initialize a pointer are or we 12, The function malloc() ret returns