Part- A (25 Marks)
====================================================================
Q NUM 1:
A)What is an algorithm? explain with an example?(3m)
B)Write history of c?(2m)
C)Difference between client server and distributed environment?(3m)
D)What is function? Write format of a function?(2m)
E)Write about IO functions?(3m)
F)Write different type qualifiers?(2m)
G)What is recursion? explain with example?(3m)
H)What is pointer ? Differentiate pointer and variable?(2m)
I)What are differences between while and do-while?(3m)
J)What is data type? write its types?(2m)
Part-B (50 Marks)(5*10=50)
Q. No. 1 a)Write about creating and running of a program?
b)Write structure of c with example?
c)Draw the flowchart for roots of quadratic equation?
OR
Q. No. 2 a)Write program development steps?
b)Define flow chart? Explain with example?
c)Write the c-program to Calculate the distance traveled by the vehicle for the given velocity, acceleration, and time? (s=ut+1/2at2 )
Q. No. 3 Define operator? write its types with example programs?
OR
Q. No. 4.a)Write a c program for prime number between 1 to n?
b)Write c program for finding sum of individual digits?
c) Write a c program to check whether the given number is palindrome or not?
Q. No. 5 Write iterative control statements with examples?
OR
Q. No. 6a)Write conditional(non-iterative) control statements with examples?
Q. No. 7 a)Write about different categories of functions with example programs?
b)Write about storage classes with examples
OR
Q. No. 8 a)Write about different types of arrays with example programs?
b)Write c program for matrix multiplication?
Q. No. 9 a)Write about DMA(Dynamic memory Allocation functions) in
detail with example programs?
b)Write about pointer to pointer with examples?
OR
Q. No. 10 a)Write how to use pointers as arguments in a function explain with
an example?
b)Explain Array of pointers with examples?
=======================================================================
COMPUTER PROGRAMMING
ANSWER ALL QUESTIONS
PART- A (25 MARKS)
A) What is a String? Write Syntax & semantic of String?(3m)
B) Explain Sting I/O functions(gets()&puts())? (2m)
C) Write about enumerated datatype?(3m)
D) Write about typedef datatype? (2m)
E) What is a File?Give types of files (3m)
F) What is a bit filed? (2m)
G) What is a searching technique?What is a sorting technique? (3m)
H) Give the names of linear data structures? (2m)
I) What is a pointer?Give its advantages (3m)
J) What a c program using pointer? (2m)
PART-B (50 MARKS) (5 X10=50)
1 a) Write about DMA(dynamic memory allocation)?
b) Explain pointer arithmetic?
OR
2 Write about string manipulation functions with example programs?
3. Whatis a structure?Explain declaration,initialization,accessing member variables of a structure,with example program?
OR
4.a) What is union?Explain with example program?
b)What is the differences between structure and union?
5. Write about different modes of accessing a file with examples?
OR
6 Explain about binary search technique with example?
7 What is stack?Explain push and pop operations with example?
OR
8 What is queue? Explain insertion and deletion operations with example?
9 Explain about Bubble sort technique with example?
OR
10 Explain about Selection sort technique with example?
========================================================================
COMPUTER PROGRAMMING
ANSWER ALL QUESTIONS
PART- A (25 MARKS)
A) Difference between client server and distributed environment?(3m)
B) What are differences between while and do-while? (2m)
C) What is recursion? Explain with example?(3m)
D) Define array? Write its advantages?(2m)
E) What is pointer? Diffrentiate pointer and variable?(3m)
F) Define string? Write its I/O statements (gets (), puts ())? (2m)
G) Explain the concept of BIT FIELDS? (3m)
H) Write different type qualifiers? (2m)
I) What Is Data structure? Explain ADT? (3m)
J) Write About Command Line Arguments In C? (2m)
PART-B (50 MARKS) (5 X10=50)
A ) i) Write Program Development Steps? (4M)
ii) Write Structure Of C With Example?(3M)
iii) What Is An Algorithm? Write Its Properties? (3M)
OR
B) i) Define An Operator? Explain Various Operators Available In C? (5M)
ii) Explain Non-Iterative Control Statements? (5M)
3 A )i) Define a Function? Explain Various Categories Of Function?(3m)
ii) Define Parameter Passing Mechanism? Explain Its Types? (3m)
iii) Define a Storage Class? Explain Types Of Storage Classes In C? (4m)
OR
B) i) Define an Array? Explain Array Types?(4M)
ii)Define Recursion? Write a C program to Determine & print GCD of
two Numbers?(3M)
iii) Write a C Program to Perform Matrix Multiplication?(3M)
4. A ) i) Write a short note on
1. malloc( ) 2.calloc( ) 3.realloc( ) 4.free( )
Write a C-program to demonstrate malloc ( ) function in C.(6M)
ii) Explain Various Arithmetic Operations that can be Performed on Pointers?(4M)
OR
B) i) Write About String Manipulation Functions With Example Programs?(7M)
ii) Explain Self-Referential Structures with an example? (3M)
5.. A ) i) What is A Structure? Explain Declaration, Initialization, Accessing Member
Variables Of A Structure, With Example Program?(3M)
ii)Explain the Concept of Nested Structures?(4M)
iii) Differences b/w Structure & Union?(3M)
OR
B) i) Write About Different Modes of Accessing A File With Examples?(5M)
ii) Explain Various Random Access File Functions?(5M)
6 A ) i) What Is Queue? Explain Enqueue and Dequeue Operations With
Examples?(5M)
ii) Write a C program to demonstrate Selection Sort Techniques?(3M)
iii) What are Applications of Queue?(2M)
OR
B) i) Define a Stack? Explain PUSH & POP Operations in Brief?(5M)
ii)Write a C program to demonstrate Binary Search Techniques?(3M)
iii) What are Applications of Stack?(2M)