|
Choose the correct answer. |
| 1. |
___________ is a compile time operator. |
|
(a) . |
(b) ? |
|
(c) Sizeof |
(d) *. |
| 2. |
___________ format code is used to read a string |
|
(a) % c |
(b) % f |
|
(c) % s |
(d) % d. |
| 3. |
___________ is a entry controlled loop statement |
|
(a) while |
(b) do-while |
|
(c) for-while |
(d) repeat. |
| 4. |
The output of following statement is ___________ for (i=10; i>0; i=i-); |
|
(a) 10 times |
(b) compiler raises the error message |
|
(c) invalid |
(d) valid. |
| 5. |
___________ operator returns the address of the variable. |
|
(a) . |
(b) , |
|
(c) ? |
(d) &. |
| 6. |
___________ function joints two strings together |
|
(a) strmer () |
(b) merge () |
|
(c) strcat () |
(d) strcpy (). |
| 7. |
C functions can be classified into two categories namely ___________ functions and user-defined functions. |
|
(a) Any-user defined |
(b) Non-user defined |
|
(c) Library |
(d) More-user defined. |
| 8. |
In ___________ data type all the members use the same memory location. |
|
(a) float |
(b) int |
|
(b) union |
(d) structure. |
| 9. |
Indirection operator is used to access a variable through its ___________ |
|
(a) function |
(b) pointer |
|
(c) structure |
(d) none. |
| 10. |
___________ function can be used to test for an end of file condition. |
| SECTION B - (5 x 5 = 25 marks) |
| Answer ALL questions choosing either (a) or (b). |
| 11. |
(a) Write a notes on constants in C. |
| or |
| |
(b) Briefly discuss the bitwise operators. |
| 12. |
(a) Write a C program for finding the greatest number among 5 numbers. |
| or |
| |
(b) Discuss: (i) Break Statement (ii) Continue Statement. |
| 13. |
(a) Discuss on multidimensional array in C. |
| or |
| |
(b) Write the usage of strcat () and strcmp () functions through a program example. |
| 14. |
(a) What is recursion? Write a C Program for finding factorial of given number using recursive function. |
| or |
| |
(b) Discuss the features of structure. |
| 15. |
(a) Discuss the file modes. |
| or |
| |
(b) What is pointer? Discuss about array of pointers with program example. |
SECTION C – (5 x 8 = 40 marks) Answer ALL questions, choosing either (a) or (b). |
| 16. |
(a) Discuss the C-tokens is detail. |
| or |
| |
(b) Explain the various format specifiers in details with example. |
| 17. |
(a) Briefly describe the various branching statements used in C. |
| or |
| |
(b) Discuss the following: (i) while (ii) do-while (iii) for. |
| 18. |
(a) Define array. Explain. (i) Its features (ii) Write a C program to evaluate the following expression.
|
| or |
| |
(b) Give a write-up on String handling functions. |
| 19. |
(a) What is user-defined function? Explain the different types of functions in detail. |
| or |
| |
(b) Explain: (i) Structure (ii) Union. |
| 20. |
(a) Discuss about (i) Pointers and Arrays (ii) Pointers and structures (iii) Pointers and function. |
| or |
| |
(b) Explain the following: (i) Error Handling (ii) Command Line Arguments. |
|
Choose the correct answer. |
| 1. |
The 9's complement of 546700 is ___________ |
|
(a) 453299 |
(b) 987061 |
|
(c) 012398 |
(d) None. |
| 2. |
x + x' = ___________ |
|
(a) 1 |
(b) 0 |
|
(c) x |
(d) xx'. |
| 3. |
___________ is the number of inputs available in a gate |
|
(a) Fan-in |
(b) Fan-out |
|
(c) Binary value |
(d) None. |
| 4. |
Functions that have unspecified outputs for some input combinations is ___________ |
|
(a) Incomplete Function |
(b) Incompletely Specified Function |
|
(c) Don't Care Function |
(d) Boolean Function. |
| 5. |
Exclusive - OR Gate is denoted by symbol ___________ |
|
(a) & |
(b) % |
|
(c) |
(d) |
| 6. |
The higher significance bit of the result is ____________ |
|
(a) solution |
(b) addend |
|
(c) augend |
(d) carry. |
| 7. |
A _________ is a combinational circuit that selects binary information from one to many i/p lines and directs it to a single output line |
|
(a) Multiplexer |
(b) Demultiplexer |
|
(c) Binary Adder |
(d) Binary Subtractor. |
| 8. |
A Register capable of shifting the binary information held in each cell to its neighbouring cell in a selected direction is ____________ |
|
(a) Shift Register |
(b) Swift Register |
|
(c) Base Register |
(d) Destination Register. |
| 9. |
_________ counter follows the binary number sequence |
|
(a) Binary |
(b) Ring |
|
(c) Star |
(d) Sequential. |
| 10. |
_________ is a memory device in which permanent binary information is stored |
|
(a) RAM |
(b) ROM |
|
(c) PROM |
(d) EPROM. |
PART B - (5 x 5 = 25 marks) Answer ALL questions, choosing either (a) or (b). |
| 11. |
(a) (i) Convert (65536)10 to its Octal equivalent. (ii) Convert (0.001101)2 to its decimal equivalent. |
| or |
| |
(b) Define the common postulates used to Formulate Various Algebraic Structures. |
| 12. |
(a) Express the Boolean Function F = xy + x'z as a product of Max terms. |
| or |
| |
(b) Simplify the Boolean function F (w,x,y,z) = ?(0, 1, 2, 4, 5, 6, 8, 9, 12, 13, 14) using four-variable map. |
| 13. |
(a) Explain parity generation and checking process. |
| or |
| |
((b) Explain Half Adder circuit with diagram. |
| 14. |
(a) Define sequential circuits. |
| or |
| |
(b) Explain D Latch with circuit. |
| 15. |
(a) Explain Binary Counter. |
| or |
| |
(b) Discuss on Read only Memory. |
PART C – (5 x 8 = 40 marks) Answer ALL questions choosing either (a) or (b). |
| 16. |
(a) Do the following conversions: (i) Convert (4310)5 to decimal (ii) Convert (16.5)16 to decimal (iii) Convert (27.315)10 to binary (iv) Convert B2FA to binary. |
| or |
| |
(b) Explain Basic theorems and properties of Boolean Algebra. |
| 17. |
a) Simplify the following Boolean expressions to a minimum number of literals. (i) ABC + A'B + ABC' (ii) A'C' + ABC + AC' (iii) x'yz + xz. |
| or |
| |
(b) Simplify the Boolean function: F (A, B, C, D) = ? (4,5,7,12,13,14) and don't care condition d (A,B,C,D) = ? (1,9,11,15). |
| 18. |
(a) Describe the Implementation of NAND and NOR Gate. |
| or |
| |
(b) Explain Binary Adder and Subtractor with neat circuit. |
| 19. |
(a) Explain Decoders in detail. |
| or |
| |
(b) Brief out state equations, state table and state diagrams. |
| 20. |
(a) Explain Synchronous counters. |
| or |
| |
(b) Describe Random Access Memory in detail. |