Documente Academic
Documente Profesional
Documente Cultură
Unit 1
1 Distinguish between latch and flip-flop. Discuss the working of JK flip flop using circuit
diagram and truth table. How is it better than the RS flip-flop?
[8]
2
(a) Implement the following using AND, OR and NOT logic gates:
(i) Y = A.B.C + A.B.C + A.B.C + A.B.C
(ii) Z = A.B + A.(B+C) + B.(B+C) + A.B.C
(b) Find the complement of the following expression:
Y = A.B.C + A.B.C + A.B.C + A.B.C
Unit 2
3 (a) Discuss the working of binary full adder.
(b) Simplify the following Boolean Expression:
Y = A.B.C + A.B.C + A.B.C + A.B.C
4
[2]
[2]
[4]
[4]
[4]
[4]
[4]
Unit 3
5 (a) Describe the basic data types in C language.
[4]
(b) Explain variable declaration, initialization and assignment operations in C language
with a suitable example.
[4]
6
Unit 4
7 (a) Write a program in C language to find the highest and second highest element in a
given integer array. The length of the array and array elements must be taken as input
from the user.
(b) Write a program to sort an array using selection sort algorithm.
[4 + 4]
8
(a) What are multi-dimensional arrays and how are they useful?
(b) Write a program to sort an array using selection sort algorithm.
[3 + 5]
Unit 5
9 (a) What is a pointer? What are the advantages of using pointers?
[4]
(b) Write a program in C language using pointer to calculate the area and circumference
of a circle whose radius is provided by the user at run-time.
[4]
10 (a) Differentiate between a union and a structure.
(b) Illustrate the use of enumerated data types with the help of an example in C language.
[4 + 4]
________________________________________________________________________