Monday, December 27, 2010

MCA FOP Pre-GTU Exam Question Paper

Que. 1(a)State whether true or false. Give the justification for same.
(a) -4 is a valid index for an array?
(b) char *a,*b=”fop”, a=b will copy the string value in to a?
(c) Interpreter translates a c program in to machine language program.
(d) C is a higher level language.
(e) In switch case, at least one default label is compulsory.
(f) when an integer array is declare, C automatically initializes its elements to zero.


(b)
(i) Write an algorithm to check whether the number is palindrome or not.
(ii) Explain Ternary Operator.
(iii) int data[8]={1,2,3,4,5,6,7,8};
      Give the value of following expression
      (1) *(data+3)    (2) *(data + (*data+1))


Que 2(a)
(i) Write a function to calculate sum of digits of a given positive integer.
(ii) Write a C program for multiplication of two matrices.
(b)
(i) What is meant by looping? Explain for loop with syntax and example.
(ii) Differentiate Break and Continue.

OR
(b)
(i) What is the purpose of the switch statements? Explain Switch Statements with syntax and example.
(ii) Differentiate do…while and while


Que 3
(a) What is an Array? How it is differ from an ordinary variable? Explain
 the procedure to initialize one-dimensional and two Dimensional Array.

(b) Explain following with syntax and example.
(i) strcat()  (ii) strcpy()  (iii) strcmp()  (iv) strlen()

(c) Explain following function with syntax and example.
(i) getch()  (ii) getche() (iii) getchar()

OR


Que 3
(a)Explain following concept with Example.
(i) Recursive Function and its application.
(ii) Command Line Arguments

(b)Explain following Concepts with Example.
(i) Array of Pointer                 (ii) Pointer to Array


Que 4
(a)Explain different Storage Classes in C with Example

(b)Define Structure. What are the difference between Structure and Union?
Explain the concept of Nested Structure with example.

(c)Differentiate Pass by Value and Pass by Reference.
OR
Que 4
(a)Explain the following file functions.
(i)fseek() (ii)ftell() (iii) feof() (iv) fread() (v) fwrite() (vi) sizeof()

(b)Explain following in brief.
(i)   Stream
(ii)  Preprocessor
(iii) Different File Opening Modes used with fopen()
(iv) Scope and Lifetime of Variable in C

Que 5
(a)Explain the following with suitable example.
(i) Enumerated Data Types   
(ii) Functions Used in Dynamic Memory Allocation 

(b)What is Link List? Differentiate Array Vs. Link List. Explain operations on Singly Linked List.

OR
Que 5
(a)Write a short note on following.
(i) Bit-wise Operator  (ii) Formatted I/O Statements

(b)Write a C program to Create and Print a Linked List. 


Tuesday, December 21, 2010

MCA FOP Assignment - 7

Subject    : Fundamentals of Programming
Subject Code    : 610001
Department    : MCA
Assignment Date    : 20th Dec, 2010
Submission Date    : 27th Dec, 2010


1.State use of bit-wise operators. Explain bit-wise shift operators.
2.List different categories of Preprocessor Statements. Explain with suitable example
3.What is Link List? How it is differ from an Array? List advantages of using Link List over Array.
4.What do you mean by Self-Referential Structure? Give Example of it.
5.List out the following
(a) Variant of Linked List and
(b) Primitive Operations that can be performed on Singly Link List.