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

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

AGroup A — Objective / Multiple Choice Questions

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

Which of the following is a bitwise operator?

a) <
b) >=
c) <<
d) &&
1(ii)[1 Mark]

Main() { int x = 2, y = 4; x = x++ + ++y; printf("\n%d %d", x, y); }

A) 3 5
B) 7 5
C) 8 5
D) none of these
1(iii)[1 Mark]

The function used to detect the end of file is

A) ferror()
B) feof()
C) fputs()
D) fgetch()
1(iv)[1 Mark]

Arithmetic Logic Unit (ALU) is a part of a

A) Output device
B) Memory
C) CPU
D) Input device
1(v)[1 Mark]

Void main() { int a = 4, b = 5; printf("\n%d",(a > b)? a : b); }

A) 4
B) 5
C) 4 5
D) none of these
1(vi)[1 Mark]

ASCII value of 'B' is

A) 65
B) 66
C) 97
D) none of these
1(vii)[1 Mark]

#define PROD(a,b) a * b Void main() { Int x = 2, y = 3; Printf("\n%d", PROD(x + 2, y - 10)); }

A) -28
B) 28
C) -2
D) none of these
1(viii)[1 Mark]

Members of a union use

A) different storage locations
B) same storage locations
C) no storage locations
D) none of these
1(ix)[1 Mark]

De Morgan's second theorem says that a NAND gate is equivalent to a bubbled ________ gate.

A) AND
B) OR
C) XOR
D) none of these
1(x)[1 Mark]

Main() { int n = 8; n = n >> 2; printf("\n%d",n); }

A) 2
B) 1
C) 4
D) none of these
1(xi)[1 Mark]

A pointer is

A) a value
B) a memory location
C) a variable containing the address of variable
D) none of these
1(xii)[1 Mark]

RAM Stands for

A) Read-write Access Member
B) Random Access Memory
C) Read Access Memory
D) none of these

BGroup B — Short Answer Conceptual Questions

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

What is recursion? Explain with an example.

2(b)[2 Marks]

What is ternary operator?

3(a)[3 Marks]

What is dynamic memory allocation?

3(b)[2 Marks]

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

4[5 Marks]

Describe the functions of various units of a digital computer using a neat block diagram.

5[5 Marks]

Write a flowchart to compute the sum of all perfect numbers within a given range taken as input from the user. A number is called a perfect number when it is equal to the sum of its positive divisors excluding the number itself.

6(a)[2 Marks]

Convert the following hexadecimal number to octal: (BEF2.09E)₁₆ = (?)₈

6(b)[3 Marks]

What is the disadvantage of 1's complement number representation? How is the problem overcome in 2's complement? Explain with an example.

CGroup C — Long Answer Analytical & Numerical Questions

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

Write a C program to generate the following pattern: G F E D C B A F E D C B A E D C B A D C B A C B A B A A

7(b)[4 Marks]

Differentiate between break and continue statements with an example. How does break differ from exit()?

7(c)[5 Marks]

How is a compiler different from an interpreter?

7(d)[5 Marks]

Which logic gates are called universal gates and why?

7(e)[5 Marks]

What is the difference between a character array and a string?

8(a)[5 Marks]

Simplify the following Boolean expression: $\overline{A}(A+B)+(B+A)(A+\overline{B})$

8(b)[5 Marks]

Write a function to sort an array. Display the sorted array inside the main() function.

8(c)[5 Marks]

How does call by value method differs from call by address method? Give examples.

9(a)[3 Marks]

Name two functions in C which can be used to create arrays dynamically. How are those two functions different from each other?

9(b)[5 Marks]

What are auto, extern and static variables? Explain their use with suitable examples.

9(c)[7 Marks]

Write a program to copy the contents of a file into another file.

10(a)[9 Marks]

Create a structure named books which has the following variables: Name, id, price, subject Write a program which will take details about 'n' books from the user. Write a function which will display the names of the books which fall within a given price range. Also write a function which will display the books for a certain given subject.

10(b)[5 Marks]

Write a program which will create an n × n matrix. Transpose the matrix by passing it to a function.

10(c)[1 Marks]

What should be the output of the following code fragment? #define SQ(x) x * x Printf("%d",sq(4+2));

11(a)[5 Marks]

Construct a circuit diagram for the following Boolean expression: $AB(\overline{A}+B)(\overline{B}+A)$

11(b)[4 Marks]

Explain the role of a C preprocessor. What is macro and how is it different from a C variable name?

11(c)[6 Marks]

Write a function which will split a string into two halves and return the result as an array of strings.

← 2014 Question Paper2017 Question Paper →