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/2024
ES-CS201Sem 2 • 2024 Exam
Full Marks: 70 • Time: 3 Hours

MAKAUT Programming For Problem Solving 2024 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 2024 Question Paper PDFView All ES-CS201 Papers

AGroup A — Objective / Multiple Choice Questions

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

What will be the output of the following C code? #include <stdio.h> void main() { int a[2][3] = {1, 2, 3, 4, 5}; int i = 0, j = 0; for (i = 0; i < 2; i++) for (j = 0; j < 3; j++) printf("%d", a[i][j]); }

1(b)[1 Mark]

What is the worst case complexity of bubble sort?

1(c)[1 Mark]

What is the default return type of function definition?

1(d)[1 Mark]

What will be the output of the following C code? #include<stdio.h> main() { int n; n=f1(4); printf("%d",n); } int f1(int x) { int b; if(x==1) return 1; else b=x*f1(x-1); return b; }

1(e)[1 Mark]

What is the size of a C structure?

1(f)[1 Mark]

What will be the output? #include <stdio.h> int a=3, *b = &a; printf("%d",a*b);

1(g)[1 Mark]

Which language is written in binary codes only?

1(h)[1 Mark]

The C-preprocessors are specified with which symbol?

1(i)[1 Mark]

What will be the output of the following C code? (Assuming that we have entered the value 1 in the standard input) #include <stdio.h> void main() { double ch; printf("enter a value between 1 to 2:"); scanf("%lf", &ch); switch (ch) { case 1: printf("1"); break; case 2: printf("2"); break; } }

1(j)[1 Mark]

What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

1(k)[1 Mark]

What is the advantage of selection sort over other sorting techniques?

1(l)[1 Mark]

What is the limit for number of functions in a C Program?

BGroup B — Short Answer Conceptual Questions

3 × 5 = 15 Marks
2[5 Marks]

Write the differences between call by value and call by reference.

3[5 Marks]

Write a program to compute factorial of a number using recursion.

4[5 Marks]

What is the difference between break and continue statement?

5[5 Marks]

Differentiate between Compiler and interpreter?

6[5 Marks]

Write a C program to perform addition, subtraction, multiplication and division of two numbers by using switch case.

CGroup C — Long Answer Analytical & Numerical Questions

3 × 15 = 45 Marks
7[15 Marks]

Describe different types of asymptotic notation of complexity analysis of algorithms.

8[15 Marks]

(a) Write a C program to find the maximum and minimum of some values using a function that returns an array. (b) Write an algorithm to sort an array using the Merge sort algorithm.

9[15 Marks]

(a) Write a program in C language to print all palindrome numbers in a given range using a function. (b) Calculate the time complexity of Merge sort.

10[15 Marks]

(a) What are the different types of Computer? (b) Write a C program to print the Fibonacci series upto nth term.

← 2023 Question Paper2025 Question Paper →