You are on page 1of 4

SHREE H. N. SHUKLA COLLEGE OF I.T. & MGMT.

(AFFILIATED TO SAURASHTRA UNIVERSITY)

Diwanpara Main Road Nr. Shaligram App. Opp. Diwanpara Police Station Rajkot 360001 Ph. No(0281)2224362,2235030

2 Vaishalinagar Nr. Amrapali Railway Fatak Raiya Road Rajkot - 360001 Ph.No(0281)2440478,2472590

PRELIMS- EXAM (AUGUST-2010)


STREAM: pgdca SUB: C Language TIME :2:30 HOURS MARKS:70

1. Attempt any three: 1) Explain various operators available in C language. 2) Explain pointer with example. 3) Give the difference between & operator and * operator. 4) Explain shorthand and ternary operator. OR 1) Explain C character set and constant. 2) Explain use of command line arguments. 3) Explain call by value and call by reference with example. 4) Explain sorting of one dimensional array.

[15]

2. Attempt any four:[20] 1) Explain general structure of C Program. 2) What is UDF? List types of UDF and explain any one in detail with example. 3) List the types of loop structures and explain differentiate between while and dowhile loop. 4) What is union ? Explain difference between structure and union. 5) List the types of storage class and explain global storage class in detail. OR 1) Explain break and continue statement with example. 2) Explain goto statement in detail. 3) Explain the term array with suitable example. Shree H.N.Shukla College of I.T & Management Sky is the Limit

SHREE H. N. SHUKLA COLLEGE OF I.T. & MGMT.


(AFFILIATED TO SAURASHTRA UNIVERSITY)

Diwanpara Main Road Nr. Shaligram App. Opp. Diwanpara Police Station Rajkot 360001 Ph. No(0281)2224362,2235030

2 Vaishalinagar Nr. Amrapali Railway Fatak Raiya Road Rajkot - 360001 Ph.No(0281)2440478,2472590

4) Explain following functions:a) Strcmp() b) Strcat() c) fopen() d) feof() e) fseek() 5) Explain array of pointers.

3. Attempt any three. [15] 1) Write a program to read any file and count no. of alphabets and digits in file. 2) Write a program to do matrix multiplication for 3*3 matrices. 3) Write a program read the string as a command line arguments and count and display vowels in the input string. 4) Write a program to print the following pattern:1 21 321 4321 54321 OR

Shree H.N.Shukla College of I.T & Management

Sky is the Limit

SHREE H. N. SHUKLA COLLEGE OF I.T. & MGMT.


(AFFILIATED TO SAURASHTRA UNIVERSITY)

Diwanpara Main Road Nr. Shaligram App. Opp. Diwanpara Police Station Rajkot 360001 Ph. No(0281)2224362,2235030

2 Vaishalinagar Nr. Amrapali Railway Fatak Raiya Road Rajkot - 360001 Ph.No(0281)2440478,2472590

1) 2) 3) 4)

Write a program to read the string and print the character individually. Write a program to read the string and reverse the string Write a program to print Fibonacci series Write a program to print the following pattern:54321 4321 321 21 1

Shree H.N.Shukla College of I.T & Management

Sky is the Limit

SHREE H. N. SHUKLA COLLEGE OF I.T. & MGMT.


(AFFILIATED TO SAURASHTRA UNIVERSITY)

Diwanpara Main Road Nr. Shaligram App. Opp. Diwanpara Police Station Rajkot 360001 Ph. No(0281)2224362,2235030

2 Vaishalinagar Nr. Amrapali Railway Fatak Raiya Road Rajkot - 360001 Ph.No(0281)2440478,2472590

BEST OF LUCK

Shree H.N.Shukla College of I.T & Management

Sky is the Limit

You might also like