'C' is often called a
Official theoretical question paper for Programming For Problem Solving (ES-CS201) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
'C' is often called a
ALU is a part of
Which will be the output? void main() { int x = 7, y=5; X = y++ + x++; y = ++y + ++x; printf("%d%d", x, y); }
The << operator is used for
Which one of the following is a Bitwise operator?
The output of int fact = 1; for(i = 0; i < fact; i++) { fact = fact *i; printf("%d", fact); } is
which one is the correct output? char a[] = "computer"; printf("%d", strlen(a));
'C' allows a three-way transfer of control with the help of
The size of a printer to a float array of size 10 is:
The union holds
Explain precedence and associativity of operators with suitable examples.
Discuss about basic data types used in C.
Distinguish between structure and union.
What is recursion? Explain with an example.
Differentiate : (i) Compiler and Interpreter. (ii) Post increment and Pre increment operator.
a) What is ternary operator? Explain with an example. b) Explain "Call by Value" and "Call by Reference" with example. c) Write a C function to swap two integer data and call the function from the main() function.
a) Write a C program to generate n Fibonacci numbers using recursion function. b) Write a C program to complete the Trace of a user inputted matrix. c) What do you mean by algorithm? Explain with an example.
a) Convert i) (427)₁₀ to octal ii) (110010.1011)₂ to hexadecimal iii) (12.32)₁₀ to Binary iv) (234)₈ to ( ? )₁₀ b) Subtract 10111 from 110011 using 2's complement method. c) Draw the logic diagram and truth table of NAND and XOR gate.
a) Distinguish between Static Array and Dynamic array. b) Write a C program to copy the content of a text file "file1.txt" into another "file2.txt". c) Write a C program to find the GCD of two numbers.
Write short notes on any three of the following: a) Dynamic memory allocation b) Pointer c) Storage Class d) Macro e) Two Dimensional Dynamic Array