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

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

AGroup A — Objective / Multiple Choice Questions

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

Which one of the following declaration is invalid?

a) int 2A
b) int A2A
c) int A2
d) int AA2.
1(ii)[1 Mark]

Which one is the right output? int x = 9; if (10) printf("%d", ++x); else printf("%d", x++);

a) 9
b) 10
c) 11
d) 12.
1(iii)[1 Mark]

Which one is the right output? char a[50] = "computer"; printf("%d", strlen(a));

a) 9
b) 10
c) 8
d) 11.
1(iv)[1 Mark]

Which one is the right output? #define int char main() { int i = 65; printf("sizeof(i)=%d",sizeof(i)); }

a) sizeof(i)=1
b) sizeof(i)=2
c) sizeof(i)=4
d) sizeof(i)=8.
1(v)[1 Mark]

Which one is the right output? main() { int i = 5, j = 6, z; printf("%d", i + ++j); }

a) 12
b) 10
c) 11
d) 13.
1(vi)[1 Mark]

In Hexadecimal number system, E is equivalent to the number in decimal

a) 10
b) 12
c) 14
d) 15.
1(vii)[1 Mark]

What is the range of unsigned short int?

a) 0 to 65535
b) 0 to 255
c) -128 to 127
d) none of these.
1(viii)[1 Mark]

Operating system is

a) Application Software
b) System Software
c) Firmware
d) None of these.
1(ix)[1 Mark]

ALU is a part of

a) Memory
b) CPU
c) Output device
d) Input device.
1(x)[1 Mark]

Member of a union uses

a) different storage location
b) same storage location
c) no storage location
d) none of these.
1(xi)[1 Mark]

What will be the value of i and m after executing the following code? int i = 1, m; m = i++;

a) 6, 5
b) 5, 5
c) 5, 6
d) 6, 6.

BGroup B — Short Answer Conceptual Questions

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

Convert (17·25)₁₀ to Binary.

2(b)[1 Marks]

What are 2's compliment numbers? How do you use this system to perform (51)₁₀ - (27)₁₀ in binary?

2(c)[1 Marks]

What are the main differences between RAM & ROM?

3(a)[2 Marks]

What is ternary operator? Explain with example.

3(b)[2 Marks]

Write down the difference between compiler and interpreter.

4(a)[2 Marks]

Write down the main characteristics of algorithm.

4(b)[3 Marks]

Write a flowchart to find the sum of the all integers ranging from 100 to 200 and divisible by both 2 and 3.

5[5 Marks]

Briefly describe the function of different components of a conventional digital computer with a suitable block diagram.

6[5 Marks]

Write a C program to find out the G.C.D of two numbers.

CGroup C — Long Answer Analytical & Numerical Questions

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

Differentiate between "do-while" and "while" statements with suitable examples.

7(b)[4 Marks]

Differentiate between "break" and "continue" statements with examples.

7(c)[4 Marks]

What is the difference between structure and union in C programming? Supplement with examples.

7(d)[3 Marks]

Explain recursion with an example.

8(a)[5 Marks]

Write a C program to check whether a given number is prime number or not.

8(b)[4 Marks]

Write a program to compute factorial of a number read from keyboard.

8(c)[6 Marks]

What are auto, external and static variables? Explain their uses with suitable examples.

9(a)[4 Marks]

What is array of pointers? Explain with example.

9(b)[4 Marks]

Explain call by value and call by reference with examples.

9(c)[7 Marks]

Write a program in C to find the real roots of a quadratic equation using user defined function Quad().

10(a)[2.5 Marks]

Explain two input Exclusive OR gate using truth table.

10(b)[2.5 Marks]

Why NAND gate is called universal gate?

10(c)[4 Marks]

Simplify: (A + B̅) . (A.C) + (A.B̅ + A̅ . C) . (A + D̅)

10(d)[6 Marks]

Convert: i) (2AD)₈ = ( )₂ ii) (11100111101)₂ = ( )₁₆ iii) (25·125)₁₀ = ( )₂.

11(a)[5 Marks]

Write short notes on any three of the following: a) Void pointer and null pointer

11(b)[5 Marks]

Write short notes on any three of the following: b) Dynamic memory allocation function

11(c)[5 Marks]

Write short notes on any three of the following: c) Function prototype

11(d)[5 Marks]

Write short notes on any three of the following: d) Bitwise operator

11(e)[5 Marks]

Write short notes on any three of the following: e) Macro.

← 2008 Question Paper2010 Question Paper →