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

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

AGroup A — Objective / Multiple Choice Questions

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

What is the output of this C code? #include <stdio.h> void main () { double k = 0; for (k = 0.0; k<3.0; k++); printf ("%f", k); }

a) 2.000000
b) 4.000000
c) 3.000000
d) None of these.
1(ii)[1 Mark]

Number of bytes required to store a float variable is

a) 8 bytes
b) 4 bytes
c) 2 bytes
d) 6 bytes.
1(iii)[1 Mark]

Find out the output: main () { int i = 1; printf ("\n%d%d%d", ++i, i++); }

a) 331
b) 133
c) 314
d) 111.
1(iv)[1 Mark]

The brain of any computer system is

a) ALU
b) Memory
c) CPU
d) none of these.
1(v)[1 Mark]

Operating system is

a) Application software
b) System software
c) both (a) and (b)
d) none of these.
1(vi)[1 Mark]

ALU is a part of

a) memory
b) CPU
c) output device
d) input device.
1(vii)[1 Mark]

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

a) 13
b) 15
c) 14
d) 12.
1(viii)[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(ix)[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(x)[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(xi)[1 Mark]

A 64-bit microprocessor has the word length equal to

a) 2 bytes
b) 4 bytes
c) 6 bytes
d) 8 bytes.
1(xii)[1 Mark]

Find the right output: #define CAL(x) x*x*x void main () { int i = 3, j; j = CAL (i+2); printf ("%d", j); }

a) 125
b) 17
c) 27
d) none of these.

BGroup B — Short Answer Conceptual Questions

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

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

2(b)[5 Marks]

What is logical operator?

3(a)[5 Marks]

What are the advantages of 2's complement over 1's complement?

3(b)[5 Marks]

Perform the subtraction with the following binary numbers using 2's complement and 1's complement respectively: i) 11010 - 1101 ii) 10010 - 10011.

4(a)[5 Marks]

What is the difference between Calloc() and Malloc() functions?

4(b)[5 Marks]

What is void pointer? Give one example.

5(a)[5 Marks]

What is call by value and call by reference? Explain with examples.

CGroup C — Long Answer Analytical & Numerical Questions

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

Input two strings and pass them to a user defined function to compare them.

6(b)[15 Marks]

Write a program to input a n x n matrix and print the maximum element of the matrix.

7(a)[15 Marks]

Differentiate between Compiler and Interpreter.

7(b)[15 Marks]

Convert the following numbers as indicated: i) Decimal 225.225 to binary ii) Binary 11010111.110 to octal iii) Hexadecimal 2AC5.D to binary.

7(c)[15 Marks]

Why is NAND gate called Universal gate? Explain with example.

7(d)[15 Marks]

What is bit-wise operator?

8(a)[15 Marks]

What is a function? What are the advantages of using functions? What is the purpose of return statement?

8(b)[15 Marks]

Differentiate between while and do-while statements with suitable example.

8(c)[15 Marks]

Write a C function to find the square of a number and use this function in main() function to evaluate $x^2 + y^2 + z^2$, where x, y, z are read through standard input device.

9(a)[15 Marks]

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

9(b)[15 Marks]

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

9(c)[15 Marks]

What is an array of pointers? Explain with example.

10(a)[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.

← 2018 Question Paper2023 Question Paper →