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

MAKAUT Programming For Problem Solving 2010 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 2010 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]

A pointer is

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

RAM stands for

a) Read-Write Access Member
b) Random Access Memory
c) Read Access Memory
d) none of these.
1(iv)[1 Mark]

Number of bytes required for double in a 32 bit machine is

a) 64
b) 4
c) 8
d) 128.
1(v)[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(vi)[1 Mark]

What will be the correct output of the following code ? int x = 9; if(10) printf("%d", ++x); else printf("%d", x++);

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

Which is the range of unsigned short integer ?

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

Which of the following declarations is invalid ?

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

Members of a union use

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

Which among the following is a special operator ?

a) <<
b) ++
c) ?:
d) sizeof().

BGroup B — Short Answer Conceptual Questions

3 × 5 = 15 Marks
2[5 Marks]

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

3[5 Marks]

Write a C program to arrange a set of n numbers in ascending order.

4[5 Marks]

Using ternary operator write a macro to find out the absolute value of a number.

5[5 Marks]

Draw a flowchart to find the largest among three numbers taken as input.

6[5 Marks]

a) What are the differences between recursion and iterations? b) Write a recursive C-function to calculate factorial of a number.

CGroup C — Long Answer Analytical & Numerical Questions

3 × 15 = 45 Marks
7[15 Marks]

a) Differentiate between while and do-while statements with suitable example. b) Differentiate between break and continue statements with suitable example. c) Write a C program to check whether a given number is prime or not.

8[15 Marks]

a) i) Convert (1011010)₂ to Octal ii) Convert (35-453)₁₀ to Binary iii) Convert (3AC)₁₆ to Decimal iv) Convert (-496)₁₀ to Octal v) Convert (1001011)₂ to Hexadecimal. b) What are 2's complement numbers ? Using 2's complement system perform (55₁₀ - 34₁₀) in binary.

9[15 Marks]

a) What is an array ? What condition must be satisfied by the entire element of any given array ? What are subscripts ? b) Write a program in C to multiply two 2D matrices and display the resultant matrix. c) Explain the role of the C preprocessor. What is macro and how is it different from a C variable name ?

10[15 Marks]

a) What is a function ? What are the advantages of using functions ? What is the purpose of the return statement ? b) What are function prototypes ? When and where are the prototypes normally used ? c) Write a C program to find out the GCD of a number using recursion.

11[15 Marks]

a) Explain the "Call by Value" and "Call by Reference" mechanism for passing arguments into a function call in general with example. b) Write a program in C to find out the number of vowels in a string.

← 2009 Question Paper2011 Question Paper →