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.

MCA FOP Assignment - 6

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


1.Explain following functions with syntax and Example.
(a) fopen()                                      
(b) fclose()                                 
(c) fcloseall()
(d) fseek()                                       
(e) ftell()                                    
(f) feof()
(g) fputs()                                       
(h) fgets()                                   
(i) fread()
(j) fwrite()                                       
(k) fprintf()                                
(l) fscanf()
(m) ferror()                                     
(n) remove()                              
(o) rename()
2.Explain different File Opening modes used with the fopen () function.
3.What is stream? What is the difference between a text-mode stream and a Binary mode stream?
4.What are the three general methods of File Access?
5.What is the difference between a Binary File and Text File in C.

MCA FOP Assignment - 5


Subject    : Fundamentals of Programming
Subject Code    : 610001
Department    : MCA
Assignment Date    : 29th Nov, 2010
Submission Date    : 11th Dec, 2010



1.What are the difference between Structure and Union? Explain the concept of Structure with syntax and Example.
2.Define Structure. How it is differ from an array? Explain Nested structure with example.
3.Write a short note on following
(a) Enumerated Data Type.
(b) Bit-Filed
(c) Union

MCA FOP Assignment - 4

Subject    : Fundamentals of Programming
Subject Code    : 610001
Department    : MCA
Assignment Date    : 22nd Nov, 2010
Submission Date    : 29th Nov, 2010

1.What is a pointer? Why are they important?
Explain NULL Pointer, Void Pointer,  and Dangling Pointer.
2.Differentiate : Array Vs. Pointer
3.Explain following Concepts with Example.
(a) Array of Pointer
(b) Pointer to Array
(c) Pointers to Pointers
(d) Pointer to Function
4.List Functions used in Dynamic Memory Allocation and Explain with Syntax and Example
5.Explain Scope and Lifetime of Variable in C Program.
6.Explain different Storage Class in C with example.

Thursday, November 18, 2010

Internal Exam Question Paper oct 2010

INTERNAL EXAM (Oct – 2010)
MCA Sem - I 
610001 - Fundamentals of Programming

1. What is an array? Explain the procedure to initialize one-dimensional
and two dimensional array.(Draw Figure) [6 Marks]


2(a). State what will be the output of following code  [3 Marks]
(a)
void main()
{
 int i= - 20;
printf(“%u”,i);
 }
(b)
void main()
{
 int i;
for( i=-32767; i++, i;)
       printf(“\n%d”,i);
}
(c)
void main()
{
int i= 5;
printf(“%d%d%d”,i++,i,--i);
}
2(b).Distinguish between while and do-while loop with suitable examples. [3 Marks]
OR
2(b).Explain Conditional Operator with example.

3.Write a C program to multiply two matrices. [6 Marks]
OR
3.What is Algorithm? List Different ways of stating Algorithm.
Draw a Flowchart To Check whether the given number is an Armstrong
Number or not.

4.What is the purpose of switch statements? Explain it with syntax and
Example.   [6 Marks]
OR
4.Explain the use of following with example.
(1) goto  (2) break  (3) continue  (4) getch()  (5) getche()  (6) getchar()

5.What are formatted I/O statements in C? Explain with Example. [6 Marks]
OR
5.Write a C program to check whether the entered number is Perfect or not. 

 

Saturday, October 30, 2010

MCA FOP Assignment - 3

Subject                 : Fundamentals of Programming
Subject Code         : 610001
Department           : MCA
Assignment Date    : 29th Oct, 2010
Submission Date    : 22nd Nov, 2010

1. What is an array? Explain the procedure to initialize one-dimensional and two Dimensional array.

2. In what way does an array differ from an ordinary variable? Explain internal representation of arrays in C.

3. What is a function? Explain with Syntax. List advantages of using functions.

4. Explain with syntax and Example.
strlen(), strcmp(), strcpy(), strcat(), strupr(), strlwr(), strrev(), strncat()

5. What is meant by Command Line Arguments? What are their Data Types?

6. What is recursion? Explain Recursion Function with example. List applications of it.

Monday, October 4, 2010

FOP Assignment - 2


Subject
: Fundamentals of Programming
Subject Code
: 610001
Department
: MCA
Assignment Date
: 04th Oct, 2010
Submission Date
: 11th Oct, 2010

Assignment - II

  1. What are formatted Input and Output statements in C? Explain with Example.
  2. Explain following Functions with Example.
(a) getch()   (b) getche()   (c) getchar()   (d) putchar()
      3.   What is the purpose of the switch statements? Explain Switch statements with
             Syntax and example.
4.    Explain if…else and nested if…else…if with syntax and example.
5.    Explain while, do…while and for loop with syntax and example
6.    Distinguish between the followings
        (a) do…while and while loop.
        (b) break and continue.

Monday, September 27, 2010

FOP Assignment - 1


Subject
: Fundamentals of Programming
Subject Code
: 610001
Department
: MCA
Assignment Date
: 27th Sep, 2010
Submission Date
: 04th Oct, 2010

 Assignment - 1

1
Briefly explain the Compilation and Execution of a program
written in High-level languages.
2
What is Flowchart? List Guidelines for drawing Flowchart.
3
What is Algorithm? List Different ways of stating Algorithm.
4
Explain the Basic Structure of a Program in C Language.
5
Name and Describe the basic Data Type in C Language.
6
What is an Escape Sequence? What is its purpose?
7
Describe different types of Operators that are included in C.
8
What is meant by Precedence? What is meant by Associativity?
Explain both with Example.
9
Explain Following with Example.
a. Bit-wise Operator
b. Unary Operator
c. Conditional Operator
10
Give Algorithm and Draw Flowchart for Following.
1. Find out largest number among three numbers.
2. Check whether a year given by the user is a Leap Year or not.
3. Compute the sum of the digits of any given number.
4. Print the Fibonacci Series up to N terms.
5. Check whether the given number is an Armstrong Number or not.