0% found this document useful (0 votes)
27 views1 page

Gujarat Technological University

The document is a past exam paper for a Fundamentals of Programming subject. It contains 5 questions covering topics like data types, arrays, structures, control statements, functions, pointers and file handling. The questions test the students' understanding of basic C programming concepts.

Uploaded by

xbsngb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Gujarat Technological University

The document is a past exam paper for a Fundamentals of Programming subject. It contains 5 questions covering topics like data types, arrays, structures, control statements, functions, pointers and file handling. The questions test the students' understanding of basic C programming concepts.

Uploaded by

xbsngb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Seat No.

: ________

Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


MCA - SEMESTERI EXAMINATION SUMMER 2014

Subject Code: 2610001


Subject Name: Fundamentals of Programming
Time: 10:30 am - 01:00 pm

Date: 12-06-2014
Total Marks: 70

Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

Q.1

Q.2

Q.3

Q.3

Q.4

(a) Define following terms.


(1) Token (2) Constant (3) Linked list (4) Union (5) Identifier
(6) String (7) Variable
(b) What is a structure? How do we declare and access structure variables? Explain
with example program.

07

(a) What is an array? What does an array name signify? Explain 1-D and 2-D
arrays with suitable example program.

07

(b) Write a detailed note on storage classes.


OR
(b) Explain in detail the data types available in C.

07

(a) Explain enum with example.


(b) Differentiate between break and continue.
(c) What are control statements in C? Explain all the looping constructs.

05
02
07

OR
(a) Explain Bitfield with suitable example.
(b) Differentiate between compiler and interpreter.
(c) What is conditional branching statement? Explain if, if-else, if-else-if ladder.

05
02
07

(a) Write an algorithm and draw a flow chart to find the maximum number out of
three given numbers.
(b) Discuss dynamic memory allocation in detail. Differentiate between static
memory allocation and dynamic memory allocation.

07

07

07
07

OR

Q.4

Q.5

Q.5

(a) What is type conversion? Explain implicit and explicit type conversion with
example.
(b) What is a macro? Differentiate between macro and function.
(c) What is preprocessor directive? Explain any two preprocessors with their usage.

07

(a) Explain getch( ), getche( ), getchar( ).


(b) What is command line argument? How it can be passed to a C program?
(c) Write a program to get two file names from command prompt and copy first file
(source file) to second file (destination file).
OR
(a) Explain following functions.
(1) strcmp( ) (2) strlen( ) (3) strrev( ) (4) strcat( ) (5) strcpy( )
(b) Explain various file opening modes.
(c) Define pointer. Explain array of pointers with suitable example.

03
04
07

04
03

05
04
05

*************
1

You might also like