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

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

AGroup A — Objective / Multiple Choice Questions

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

The correct syntax to send an array "array" as a parameter to function "func" is

a) func (&array);
b) func (array);
c) func (*array);
d) 1 func (array [size]);
1(ii)[1 Mark]

What is the output of the following 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(iii)[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(iv)[1 Mark]

The Hexadecimal equivalent of the number (101101010010) 2 is

a) A53
b) A52
c) B52
d) C62.
1(v)[1 Mark]

The value of EOF is

a) -1
b) 0
c) 1
d) 10.
1(vi)[1 Mark]

Which of the following are themselves a collection of different data types?

a) String
b) Structure
c) Char
d) All of these.
1(vii)[1 Mark]

A 64 bit microprocessor has word length equal to

a) 1 byte
b) 8 bytes
c) 2 bytes
d) 4 bytes.
1(viii)[1 Mark]

Which one of the following is a ternary conditional operator?

a) &&
b) if
c) <=
d) ?
1(ix)[1 Mark]

The 2's complement for (1001)2 is

a) 1000
b) 1011
c) 1001
d) 1111.
1(x)[1 Mark]

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

a) 331
b) 133
c) 314
d) 111.

BGroup B — Short Answer Conceptual Questions

3 × 5 = 15 Marks
2[5 Marks]

Write down the differences between While and Do-While loops in C? What are compile-time array initialization and run-time array initialization?

3[5 Marks]

Draw the block diagram of showing all the functional units of a digital computer. Explain the function and role of each unit.

4[5 Marks]

Add (-14) and 9 using 2's complement method. Convert (1010110.11010)2 to Octal and Hexadecimal and Decimal number system.

5[5 Marks]

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

6[5 Marks]

What is array of pointers? Explain with the examples. What is the relation between array and pointers?

CGroup C — Long Answer Analytical & Numerical Questions

3 × 15 = 45 Marks
7[15 Marks]

a) Write an algorithm to find the sum of the n even numbers, where n should be read from user. b) Write a program to print the following pattern. * * * * * * * * * * * * * * * * c) Differentiate between compiler and interpreter. d) What is dynamic memory allocation?

8[15 Marks]

a) Write a program to find out the G.C.D. and L.C.M. of two numbers. b) Write a program to print the following pattern 1 2 3 4 5 6 7 8 9 10

9[15 Marks]

a) What is ternary operator? Explain with example. b) Differentiate between the 'break' and 'continue' statement with example. c) What is the difference between structure and union in C? Explain with example. d) Write a program to check whether a string is palindrome or not.

10[15 Marks]

a) What is recursion? Explain with a suitable example. b) Explain call by value and call by reference with example. c) Differentiate between recursion and iteration.

11[15 Marks]

Write short notes on any three of the following: a) Distinction between RAM and ROM b) Macro c) Storage class d) Structure and union e) Array of pointers.

← 2015 Question Paper2018 Question Paper →