PGDCA Previous Year Questions (C)

IT & Software

| 324 views

1.Β  Draw flow chart and write algorithm to print Fibonacci series upto the number of terms entered by the user.

Β 2. Write recursive and iterative program in C, to find factorial of a number entered by the user.

3. Explain the concept of call by reference, with suitable code in C. Compare it with call by value mechanism.

4. Compare the terms Typedef and Typecast in C. Give suitable code for each. Also discuss utility of both.

5. Discuss the relation between arrays and pointers. Give suitable example in support of your discussion.

6. Compare Global variables with Local variables. Give suitable example for each.

7.Β  What are iterators ? How do iterators differ from iterables ? Give example for each.

8. Compare Buffered I/O with Unbuffered I/O in C.

9. Write a program in C to generate the following pattern :

10. In C, how && operator differs from & operator ? Support your comparison with suitable code in C.

11. Write short notes on the following (give utility of each) :

(i) Storage classes in C

(ii) Decorators in Python

(iii) Cursor objects

(iv) Functions and its types

12.Differentiate between the structure and union construct in C. Write suitable code for each.

13. Write a program in C to verify that the string entered by the user is palindrome or not. Support your program with suitable comments.

14. Write an algorithm to find the slope of a line segment whose end point coordinates are (x1, y1) and (x2, y2 ). The algorithm gives output whether the slope is positive, negative or zero. Transform your algorithm into C program. Note : Slope of line segment = (y 2– y1)/ (x2 – x1).

15. Write short notes on the following : (i) 10 Looping constructs and its types in C (ii) Functions and its types in C Give suitable example for each.

16. Write a program in C to calculate the product of two matrices. Support your code with suitable comments.

17. Briefly discuss the concept of β€œCall by value” and β€œCall by reference”. Give example code in C for each. Support your code with suitable comments.

18. Compare flowchart and algorithm. Draw a flowchart to find the factorial of a number entered by a user.

19. Write a program in C to print all ASCII codes. Support your program with comments for better readability.

20. Write steps to create a package. Apply these steps to create a package named volume and create 3 modules in it named cube, cuboid and sphere, having function to calculate volume of the cube, cuboid and sphere respectively. Import the modules defined in the package and use the defined functions for calculation of volume respectively.

21. Compare Sequential and Random access of files in C. Briefly discuss the syntax and role of fseek( ) and rewind( ) function, while accessing a file randomly.

22. Write an algorithm to find the HCF (Highest Common Factor) of the two numbers entered by a user. Transform your algorithm into a C program, support your program with suitable comments.




Share this Post
About the Author

✍️ Satyendra Singh is a dedicated software educator and creator behind Quizer.in. With a passion for coding, learning, and teaching, he simplifies complex programming topics and builds engaging tools that make learning fun for everyone.

Comments

CEvhVklvwH 28 Aug, 2025

EdEjjkFVQo 28 Aug, 2025

ZnpiXjlgjNjvMto 28 Aug, 2025

GDQnkFqsNIHqZHd 29 Aug, 2025

BhcEdeNEzuCC 29 Aug, 2025

TkybXfTxqOQSfp 29 Aug, 2025

OVYnUjNdjxsNY 30 Aug, 2025

ZPZNICgzuaEM 30 Aug, 2025

NUvdkGFv 30 Aug, 2025

OYpmxBsOVZMY 30 Aug, 2025

XbOdMoDoXuL 30 Aug, 2025

YvSAncbyTOSYDx 30 Aug, 2025

AUWxbJHeHhnRr 30 Aug, 2025

DqNTNEqvpCaPdw 30 Aug, 2025

CHDIqgqlwO 31 Aug, 2025

IlwerNgnwgrzCWi 31 Aug, 2025

TwvinvCzU 31 Aug, 2025

QSVgwQvlyGqP 31 Aug, 2025

ZIKTgIylCuNl 1 Sep, 2025

SwtFwHrC 1 Sep, 2025

EDFtTqQo 1 Sep, 2025

BRJOJkXsvMy 1 Sep, 2025

THOXpChPLKJnUla 2 Sep, 2025

XWPdZvxsNx 2 Sep, 2025

DsZddmKwV 2 Sep, 2025

UPpLrEqyCoysP 2 Sep, 2025

SvmqPRmAxDVif 2 Sep, 2025

DSfdNupLV 3 Sep, 2025

PbfoZlFQxphRJE 3 Sep, 2025

SuNuyJLc 4 Sep, 2025

JKqEPWZMxtkR 4 Sep, 2025

FpKZUJthPegBsj 4 Sep, 2025

NMzvWBOwt 4 Sep, 2025

UAKmtYQBD 4 Sep, 2025

DVBxjApKOMEu 4 Sep, 2025

YqqFCjWaEZeMFpa 5 Sep, 2025

KBkNxoJkXsbXMD 5 Sep, 2025

CKfVaFlcNDWYG 5 Sep, 2025

THsnISSxXJPhp 6 Sep, 2025

NQJWXZGcljmFTs 6 Sep, 2025

GJFjHpbhjcgK 7 Sep, 2025

UeQECKOzMlJhrPa 7 Sep, 2025

OLNokxVRWFbQnQW 7 Sep, 2025

NtZkofYIh 8 Sep, 2025

LYGLssIUHxpDEky 8 Sep, 2025

BJrVGmhFciRnqJ 10 Sep, 2025

AKNdQvxOwVBRKt 10 Sep, 2025

JoyAVyCVidamYH 11 Sep, 2025

ZTMwFmcjIiDuS 12 Sep, 2025

IOdajVsKvtRvIs 12 Sep, 2025

VsGUUZCTer 12 Sep, 2025

JgKIsatjrbKLn 12 Sep, 2025

FQWpshWwqoJlpHp 13 Sep, 2025

YRURlNGmO 13 Sep, 2025

DbxfnQDaX 13 Sep, 2025

IlvyFgLYbI 15 Sep, 2025

JOXRCzQw 15 Sep, 2025

FwohPHmvuoMT 15 Sep, 2025

IceYWLrsljdyq 16 Sep, 2025

EAvSjJkzGkI 16 Sep, 2025

UqFyyyQm 16 Sep, 2025

NwmuRBlHOx 17 Sep, 2025

NOTNSzGMxTdydF 18 Sep, 2025

RwSHdwYXMJMKC 20 Sep, 2025

ESLlhZwMua 21 Sep, 2025

VCkLkmkZoFDU 22 Sep, 2025

VjREiyMuAbR 23 Sep, 2025

ATEgZTkTTYTmeE 23 Sep, 2025

Leave a Comment

Your email address will not be published. Required fields are marked *

Popular Competitive Exam Quizzes