Which of the following is a bitwise operator ?
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.
Which of the following is a bitwise operator ?
A pointer is
RAM stands for
Number of bytes required for double in a 32 bit machine is
The purpose of mode r+ is to
What will be the correct output of the following code ? int x = 9; if(10) printf("%d", ++x); else printf("%d", x++);
Which is the range of unsigned short integer ?
Which of the following declarations is invalid ?
Members of a union use
Which among the following is a special operator ?
Briefly describe the functions of different components of a conventional digital computer with a suitable block diagram.
Write a C program to arrange a set of n numbers in ascending order.
Using ternary operator write a macro to find out the absolute value of a number.
Draw a flowchart to find the largest among three numbers taken as input.
a) What are the differences between recursion and iterations? b) Write a recursive C-function to calculate factorial of a number.
a) Differentiate between while and do-while statements with suitable example. b) Differentiate between break and continue statements with suitable example. c) Write a C program to check whether a given number is prime or not.
a) i) Convert (1011010)₂ to Octal ii) Convert (35-453)₁₀ to Binary iii) Convert (3AC)₁₆ to Decimal iv) Convert (-496)₁₀ to Octal v) Convert (1001011)₂ to Hexadecimal. b) What are 2's complement numbers ? Using 2's complement system perform (55₁₀ - 34₁₀) in binary.
a) What is an array ? What condition must be satisfied by the entire element of any given array ? What are subscripts ? b) Write a program in C to multiply two 2D matrices and display the resultant matrix. c) Explain the role of the C preprocessor. What is macro and how is it different from a C variable name ?
a) What is a function ? What are the advantages of using functions ? What is the purpose of the return statement ? b) What are function prototypes ? When and where are the prototypes normally used ? c) Write a C program to find out the GCD of a number using recursion.
a) Explain the "Call by Value" and "Call by Reference" mechanism for passing arguments into a function call in general with example. b) Write a program in C to find out the number of vowels in a string.