The correct syntax to send an array "array" as a parameter to function "func" is
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.
The correct syntax to send an array "array" as a parameter to function "func" is
What is the output of the following 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
The Hexadecimal equivalent of the number (101101010010) 2 is
The value of EOF is
Which of the following are themselves a collection of different data types?
A 64 bit microprocessor has word length equal to
Which one of the following is a ternary conditional operator?
The 2's complement for (1001)2 is
Find out the output: main () { int i = 1; printf ("\n % d % d % d ", i, ++i, i ++); }
Write down the differences between While and Do-While loops in C? What are compile-time array initialization and run-time array initialization?
Draw the block diagram of showing all the functional units of a digital computer. Explain the function and role of each unit.
Add (-14) and 9 using 2's complement method. Convert (1010110.11010)2 to Octal and Hexadecimal and Decimal number system.
Write a program to check whether a number is prime or not.
What is array of pointers? Explain with the examples. What is the relation between array and pointers?
a) Write an algorithm to find the sum of the n even numbers, where n should be read from user. b) Write a program to print the following pattern. * * * * * * * * * * * * * * * * c) Differentiate between compiler and interpreter. d) What is dynamic memory allocation?
a) Write a program to find out the G.C.D. and L.C.M. of two numbers. b) Write a program to print the following pattern 1 2 3 4 5 6 7 8 9 10
a) What is ternary operator? Explain with example. b) Differentiate between the 'break' and 'continue' statement with example. c) What is the difference between structure and union in C? Explain with example. d) Write a program to check whether a string is palindrome or not.
a) What is recursion? Explain with a suitable example. b) Explain call by value and call by reference with example. c) Differentiate between recursion and iteration.
Write short notes on any three of the following: a) Distinction between RAM and ROM b) Macro c) Storage class d) Structure and union e) Array of pointers.