Retrieving academic index assets...
Makaut
HomePYQsTests
Pricing
Sign Up
Makaut

The premier academic archive for MAKAUT students, providing curated previous year questions, solutions, and official syllabus resources.

Get the Mobile App
GET IT ONGoogle Play
Download on theApp Store
Download from Indus App Store
Platform
  • Home
  • PYQs
  • Question Papers
  • Viva Questions
  • Important Questions
  • Syllabus
  • Academic Tools
  • Pricing
  • Blog
Guidelines
  • Disclaimer
  • Community Guidelines
Company
  • About
  • Contact
  • FAQ
Legal
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Cookie Policy
  • Subscription Policy
© 2026 MAKAUT Study Dev Hub. All rights reserved.
Platform version: v1.0.0
Home/PYQs/Sem 2/Programming For Problem Solving/2008
ES-CS201Sem 2 • 2008 Exam
Full Marks: 70 • Time: 3 Hours

MAKAUT Programming For Problem Solving 2008 Question Paper

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.

Download MAKAUT Programming For Problem Solving 2008 Question Paper PDFView All ES-CS201 Papers

AGroup A — Objective / Multiple Choice Questions

10 × 1 = 10 Marks
1(i)[1 Mark]

RAM stands for

a) Read-write Access Memory
b) Read Access Memory
c) Random Access Memory
d) None of these.
1(ii)[1 Mark]

Operating system is

a) application software
b) system software
c) both of these
d) none of these.
1(iii)[1 Mark]

ALU is a part of

a) memory
b) CPU
c) input device
d) output device.
1(iv)[1 Mark]

The output of the following code is: for (i=1;i<=5;i++) { if (i%2) continue; printf ("%d", i); }

a) 1 2 3 4 5
b) 1 3 5
c) 2 4
d) none of these.
1(v)[1 Mark]

The output of int i=5; printf ("%d %d", i, i++, ++i); is

a) 5 5 7
b) 6 7
c) 7 6 5
d) 7 6 6.
1(vi)[1 Mark]

The output of #define SQ(x) x*x void main( ) { int a,b; a=5; b=SQ(a+2); printf("%d", b); } is

a) -49
b) -17
c) 7
d) none of these.
1(vii)[1 Mark]

Which one of the following is a Bitwise operator ?

a) <
b) >=
c) <<
d) &lt;
1(viii)[1 Mark]

The output of fact=1; for (i=1;i<5;i++) fact=fact*i; printf("%d", fact); is

a) 24
b) 5
c) infinite loop
d) none of these
1(ix)[1 Mark]

The output of void main( ) { int arr[6]={20, 25}; printf ("%d %d %d", arr[2], arr[3], arr[4]); }

a) 0 0 0
b) 20 25 0
c) 25 0 0
d) none of these.
1(x)[1 Mark]

The purpose of mode r+ is to

a) open for only reading
b) open for only writing
c) open for both reading and writing
d) none of these.
1(xi)[1 Mark]

Pointer is

a) a variable containing the address of a variable
b) a value
c) a memory location
d) none of these.
1(xii)[1 Mark]

A function may contain

a) one return statement
b) two return statements
c) more than two return statements
d) none of these.

BGroup B — Short Answer Conceptual Questions

3 × 5 = 15 Marks
2(a)[1 Marks]

What are the basic features of an algorithm?

2(b)[2 Marks]

Write an algorithm to find largest among three numbers taken as input.

2(c)[2 Marks]

What are the disadvantages of machine language?

3(a)[2 Marks]

With a suitable block diagram, briefly explain the major components and their functions of any conventional computer system.

3(b)[3 Marks]

Write a function power (a,b) to calculate the value of a raised to b.

4(a)[1 Marks]

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; }

4(b)[2 Marks]

What is dynamic memory allocation?

4(c)[2 Marks]

Write down the differences between malloc() and calloc().

5(a)[2 Marks]

Write down the differences between structure and union.

5(b)[3 Marks]

Write a recursive C function to calculate factorial of a number.

CGroup C — Long Answer Analytical & Numerical Questions

3 × 15 = 45 Marks
7(a)[2 Marks]

Write down the differences between compiler and interpreter.

7(b)[5 Marks]

What is an operating system? Write down the basic features and operations of an operating system.

7(c)[5 Marks]

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

8(a)[5 Marks]

Write a C program to find the largest and smallest among a list of n numbers taken as input.

8(b)[5 Marks]

Write a C program to check whether a string taken as input is a palindrome or not.

8(c)[5 Marks]

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

9(a)[6 Marks]

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.

9(b)[3 Marks]

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.

10(a)[3 Marks]

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.

10(b)[3 Marks]

Write down the differences between while and do-while.

10(c)[3 Marks]

What is type casting? What is automatic type conversion?

11(a)[3 Marks]

What is the difference between iterative function and recursive function?

11(b)[6 Marks]

Write a C program to find factorial of a number using iterative function as well a recursive function.

2009 Question Paper →