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

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

AGroup A — Objective / Multiple Choice Questions

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

Operating system is

a) Application software
b) System software
c) Both (a) and (b)
d) None of these.
1(ii)[1 Mark]

ALU is a part of

a) memory
b) CPU
c) output device
d) input device.
1(iii)[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(iv)[1 Mark]

Which will be the output ? void main () { int x = 7, y = 5; x = y++ + x++; y=++y + ++x; printf("%d%d", x, y); }

a) 12 14
b) 12 20
c) 97
d) 12 19.
1(v)[1 Mark]

A function may contain

a) one return statement
b) two return statements
c) more than two return statements
d) none of these.
1(vi)[1 Mark]

Which one of the following is a Bitwise operator ?

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

The output of int fact=1; for (i=0;i<fact;i++) { fact=fact*i; printf("%d", fact); }

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

Which one of the following declaration is invalid ?

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

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

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

In hexadecimal system D is equivalent to the number in decimal is

a) 10
b) 12
c) 13
d) 15.

BGroup B — Short Answer Conceptual Questions

3 × 5 = 15 Marks
2[5 Marks]

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

3[5 Marks]

Write a complete C program to generate Fibonacci series.

4[5 Marks]

a) Convert (45-5675) into hexadecimal. b) What are 2's complement numbers ? What is signed magnitude number representation ? What is its disadvantage ?

5[5 Marks]

Write a C program to check if a string taken as input is a palindrome or not without using string related functions supported by the compiler.

6[5 Marks]

Write C program to print the following : 1 1 2 2 3 4 3 4 5 6 4 5 6 7 8

CGroup C — Long Answer Analytical & Numerical Questions

3 × 15 = 45 Marks
7[15 Marks]

a) Write a comparative study between for, while and do-while loop. b) Write a complete C program to print the following pattern for n number of rows, where n is supplied externally. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * c) What is the difference between break and continue statement ? Explain with example.

8[15 Marks]

a) What is subscripted variable ? b) Explain "C doesn't support Bound Checking". c) Write a complete C program to convert a decimal number consisting of arbitrary number of digits into its binary form using 1-D array. d) Write a complete C program to find out the Trace of a square matrix [Trace means the sum of Principal Diagonal Elements].

9[15 Marks]

a) What is recursion ? b) What is the difference between recursion and iteration ? c) Write a function (Recursive/Non-Recursive) power (a, b) that can calculate a^b for any floating a and positive integer b. Invoke this function into main ( ) function to calculate x^n. d) Write a C function to find the length of a string and call the function from the main ( ) function. Do not use 'strlen' function in your program.

10[15 Marks]

a) Explain with suitable example, the difference between structure and union in a C program. b) Suppose you have to create and maintain a Record Book of your company. Record Book consists of the following fields : (a) Employee's Name (b) Id Number (c) Salary Amount (d) Designation. How do you create and maintain this Record Book for 150 Employees of your organization if your management asks to see the salary of any particular employee ? c) Explain Call-by-Value and Call-by-Address with examples.

11[15 Marks]

a) Write a C program that will receive a file name and a line of text as command line arguments and write the text to that file. b) Convert the following : (3FA)₁₆ to Octal (742)₈ to Binary (10110·0101)₂ to Decimal c) Represent the following expression using Logic Gates : S = (AX + BY) + (CD+EF)

12[15 Marks]

Write short notes on any three of the following : a) Dynamic allocation of the memory b) Bitwise Operator c) Pointer Arithmetic d) Functions of Memory Unit of a Digital Computer e) Array of Structure f) Pointer to function and Function returning a Pointer.

← 2011 Question Paper2013 Question Paper →