Which one of the following declaration is invalid?
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 one of the following declaration is invalid?
Which one is the right output? int x = 9; if (10) printf("%d", ++x); else printf("%d", x++);
Which one is the right output? char a[50] = "computer"; printf("%d", strlen(a));
Which one is the right output? #define int char main() { int i = 65; printf("sizeof(i)=%d",sizeof(i)); }
Which one is the right output? main() { int i = 5, j = 6, z; printf("%d", i + ++j); }
In Hexadecimal number system, E is equivalent to the number in decimal
What is the range of unsigned short int?
Operating system is
ALU is a part of
Member of a union uses
What will be the value of i and m after executing the following code? int i = 1, m; m = i++;
Convert (17·25)₁₀ to Binary.
What are 2's compliment numbers? How do you use this system to perform (51)₁₀ - (27)₁₀ in binary?
What are the main differences between RAM & ROM?
What is ternary operator? Explain with example.
Write down the difference between compiler and interpreter.
Write down the main characteristics of algorithm.
Write a flowchart to find the sum of the all integers ranging from 100 to 200 and divisible by both 2 and 3.
Briefly describe the function of different components of a conventional digital computer with a suitable block diagram.
Write a C program to find out the G.C.D of two numbers.
Differentiate between "do-while" and "while" statements with suitable examples.
Differentiate between "break" and "continue" statements with examples.
What is the difference between structure and union in C programming? Supplement with examples.
Explain recursion with an example.
Write a C program to check whether a given number is prime number or not.
Write a program to compute factorial of a number read from keyboard.
What are auto, external and static variables? Explain their uses with suitable examples.
What is array of pointers? Explain with example.
Explain call by value and call by reference with examples.
Write a program in C to find the real roots of a quadratic equation using user defined function Quad().
Explain two input Exclusive OR gate using truth table.
Why NAND gate is called universal gate?
Simplify: (A + B̅) . (A.C) + (A.B̅ + A̅ . C) . (A + D̅)
Convert: i) (2AD)₈ = ( )₂ ii) (11100111101)₂ = ( )₁₆ iii) (25·125)₁₀ = ( )₂.
Write short notes on any three of the following: a) Void pointer and null pointer
Write short notes on any three of the following: b) Dynamic memory allocation function
Write short notes on any three of the following: c) Function prototype
Write short notes on any three of the following: d) Bitwise operator
Write short notes on any three of the following: e) Macro.