What is the output of this C code? #include <stdio.h> void main () { double k = 0; for (k = 0.0; k<3.0; k++); printf ("%f", k); }
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.
What is the output of this C code? #include <stdio.h> void main () { double k = 0; for (k = 0.0; k<3.0; k++); printf ("%f", k); }
Number of bytes required to store a float variable is
Find out the output: main () { int i = 1; printf ("\n%d%d%d", ++i, i++); }
The brain of any computer system is
Operating system is
ALU is a part of
In hexadecimal number system, D is equivalent to the number in decimal
The purpose of mode r+ is to
Which is the range of unsigned short integer?
What will be the correct output of the following code? int x = 9; if (10) printf ("%d", ++x); else printf ("%d", x++);
A 64-bit microprocessor has the word length equal to
Find the right output: #define CAL(x) x*x*x void main () { int i = 3, j; j = CAL (i+2); printf ("%d", j); }
Describe the functions of various units of a digital computer using a neat block diagram.
What is logical operator?
What are the advantages of 2's complement over 1's complement?
Perform the subtraction with the following binary numbers using 2's complement and 1's complement respectively: i) 11010 - 1101 ii) 10010 - 10011.
What is the difference between Calloc() and Malloc() functions?
What is void pointer? Give one example.
What is call by value and call by reference? Explain with examples.
Input two strings and pass them to a user defined function to compare them.
Write a program to input a n x n matrix and print the maximum element of the matrix.
Differentiate between Compiler and Interpreter.
Convert the following numbers as indicated: i) Decimal 225.225 to binary ii) Binary 11010111.110 to octal iii) Hexadecimal 2AC5.D to binary.
Why is NAND gate called Universal gate? Explain with example.
What is bit-wise operator?
What is a function? What are the advantages of using functions? What is the purpose of return statement?
Differentiate between while and do-while statements with suitable example.
Write a C function to find the square of a number and use this function in main() function to evaluate $x^2 + y^2 + z^2$, where x, y, z are read through standard input device.
What are auto, external and static variables? Explain their uses with suitable examples.
What is the difference between structure and union in C programming? Supplement with example.
What is an array of pointers? Explain with example.
Write short notes on any three of the following: a) Dynamic allocation of the memory b) Bitwise Operator c) Pointer Arithmetic d) Functions of Memory unit of a Digital Computer e) Array of Structure f) Pointer to function and Function returning a Pointer.