Sunteți pe pagina 1din 6

Visit us at :http://mritsece.blogspot.

com
- ---
--- ---
--- ---
--- ---
--- ---
--- ---
-----------------------------------------------------
ECE-2
ECE-DEPARTMENT FIRST SUBJECTIVE EXAM- C&DS
ANSWER ANY THREE FROM THE FOLLOWING
EACH QUESTION CARRIES EQUAL MARKS
DATE- 12-07 TIME-10:00-11:30 MAXMARKS-30

1) a) Name and Describe basic data type qualifiers?


b) Explain floating point constants and character constants?
2) a) Explain the structure of a function?
b) Write a program to find the GCD of two numbers using
Recursion.
3) a) Write a program to check whether the entered number is Armstrong
or not.
b) Write a program to convert binary number to decimal number.
4) Explain the following
a) Logical operators b) Bitwise operators
b) Nested if statement d) do while loop
5) Do the following
a) i) Distinguish between break and continue?
ii) Write a program to display the consecutive numbers 0-9 with
one digit on each line by using while loop.
b) Write a program to demonstrate extern and static variables?
Explain your program?

-------------------------------------------------END--------------------------------------------------
Visit us at :http://mritsece.blogspot.com

---------------------------------------------------------------------------------------
ECE-1
ECE-DEPARTMENT FIRST SUBJECTIVE EXAM- C&DS
ANSWER ANY THREE FROM THE FOLLOWING
EACH QUESTION CARRIES EQUAL MARKS
DATE- 12-07 TIME-10:00-11:30 MAXMARKS-30

2) a) Name and Describe basic data types?


b) What are constants explain integer constants?
2) a) Explain pass by value and pass by reference ?
b) Write a program to find the factorial of a number using
Recursion.
4) a) Write a program to find a reverse of a number and check
whether the number is palindrome.
b) Write a program to convert decimal number to binary number.
4) Explain the following
a) Arithmetic operators b) Relational operators
b) else if ladder d) while loop
5) Do the following
a) i) Distinguish between actual arguments and formal
arguments?
ii) Write a program to display the consecutive numbers 0-9 with
one digit on each line by using do while loop.
b) Write a program to demonstrate local and global variables?
Explain your program?

-------------------------------------------------END--------------------------------------------------
Visit us at :http://mritsece.blogspot.com

ECE-A IInd Internal Question Paper

1) Implement the following


a) Transpose of a matrix and test for symmetry
b) Test for upper triangular matrix
2) a) What is a structure? How it is declared? How it is initialized? Explain the
Advantages of structure type over the array type variable.
b) Write a program to accept records of the different states using array of
Structures. The structure should contain char state, population, literature rate
and income display the state whose literacy rate is highest and whose income
is highest.
3) a) Demonstrate memory management functions.
b) Write a program to open a preexisting file and add information at the
end of file. Display the contents of the file before and after appending.
4) a) Explain the way of defining, opening and closing a file. Also explain the different
modes of operation.
b) Write a program to read last ‘n’ characters of the file using
Appropriate file function
5) Do the following
a) Write a program to demonstrate passing an array argument to a function. Consider
the problem of finding the largest of N numbers defined in an array.
(b) In what way array is different from an ordinary variable?
(c) What conditions must be satisfied by the entire elements of any given Array?
(d) What are subscripts? How are they written? What restrictions apply to the Values
that can be assigned to subscripts?
(e) What advantages is there in defining an array size in terms of a symbolic constant
rather than a fixed integer quantity
Visit us at :http://mritsece.blogspot.com

IInd Internal Examination ECE-B Max 30 marks

(Answer any Three Questions)

______________________________________________________________________

1 .Implement a program to find sum and product of two matrices using functions

2.Define Structure. Explain the array of structures and nested structures. Write a program to illustrate the

arrays of structures , arrays within structure and structure within structure.

3. a) Demonstrate command line arguments using a program copying the contents of one file to another.

And also display the contents of the file on standard output.

b)Write a program to compare the strings with using two pointers.

4. Explain the different file handling functions. Write a program to read a text from a file and to count

number of characters, words, sentences and write in an output file.

5.Do the following

a)what is a pointer ? How is a pointer initiated? Give an example


Visit us at :http://mritsece.blogspot.com

b) State whether each of the following statements is TRUE/FALSE. Give reasons

i.An integer can be added to a pointer

ii.A pointer can never be subtracted from a pointer

iii.When an array is passed as an argument to a function, a pointer is passed.

iv.Pointers cannot be used as formal parameters in headers to function definitions.

c) If m and n have been declared as integers and p1 and p2 as pointers to integers, then find out the

errors ,if any , in the following. Give reasons

i) p1=&m;

ii) p2=n;

iii) m=p2-p1;

iv) *p1=&m;

d)Explain the effect of following statements

i)int a,*b;

ii)int p,*p;

iii)char *s;

iv)a=(float*)&x

S-ar putea să vă placă și