RAM stands for
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.
RAM stands for
Operating system is
ALU is a part of
The output of the following code is: for (i=1;i<=5;i++) { if (i%2) continue; printf ("%d", i); }
The output of int i=5; printf ("%d %d", i, i++, ++i); is
The output of #define SQ(x) x*x void main( ) { int a,b; a=5; b=SQ(a+2); printf("%d", b); } is
Which one of the following is a Bitwise operator ?
The output of fact=1; for (i=1;i<5;i++) fact=fact*i; printf("%d", fact); is
The output of void main( ) { int arr[6]={20, 25}; printf ("%d %d %d", arr[2], arr[3], arr[4]); }
The purpose of mode r+ is to
Pointer is
A function may contain
What are the basic features of an algorithm?
Write an algorithm to find largest among three numbers taken as input.
What are the disadvantages of machine language?
With a suitable block diagram, briefly explain the major components and their functions of any conventional computer system.
Write a function power (a,b) to calculate the value of a raised to b.
What will be the output? void fun(int*, int*); main( ) { int i=5, j=2; fun(&i,&j); printf ("\n%d %d", i, j); } fun (int*i, int*j) { *i=*i**i; *j=*j**j; }
What is dynamic memory allocation?
Write down the differences between malloc() and calloc().
Write down the differences between structure and union.
Write a recursive C function to calculate factorial of a number.
Write down the differences between compiler and interpreter.
What is an operating system? Write down the basic features and operations of an operating system.
Perform the following operations: (i) Convert (100110101)₂ to octal (ii) Convert (536)₈ to hexadecimal (iii) Convert (23.78)₁₀ to binary (iv) Subtract (7)₁₀ from (17)₁₀ in binary using 2's complement
Write a C program to find the largest and smallest among a list of n numbers taken as input.
Write a C program to check whether a string taken as input is a palindrome or not.
Write a C program to print the following pattern (all n rows, where n is taken as input). 1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4
Explain call by value and call by reference mechanism for passing arguments into a function. Write a C function to swap the values of two integer variables passed as arguments. Also write the main function.
Define a structure called cricket that will describe the following information: Player name team name batting average Using cricket, declare an array player with 50 elements and write a program to read the information about all the 50 players and print the name of the player having highest batting average.
Write a C program that will receive a filename and a line of text as command line arguments and write the text to the file.
Write down the differences between while and do-while.
What is type casting? What is automatic type conversion?
What is the difference between iterative function and recursive function?
Write a C program to find factorial of a number using iterative function as well a recursive function.