Back

CP (AC) 2023

2023BUTEX-AC

Two Computer Programming papers (MDM 101) from BUTEX affiliated colleges' 2023 Level-1 Term-I finals. Questions cover algorithms versus flowcharts, C functions and header files, switch statements, nested loops, and programs for odd-even checks.

Q1

BANGLADESH UNIVERSITY OF TEXTILES

B. Sc. in Textile Engineering (For Affiliated Colleges)

Level-1 Term-I, Final Exám-2023
Subject:
Computer Programming (Code: MDM 101)
Time: 3.0 Hrs. Full Marks: 72
(Use separate answer script for Part: A and Part: B)

(All parts of a question must be answered consecutively)


Part: A
(Answer any three questions)

1. ⁢(a) What do you mean by computer programming and computer programmers?

(b) What are the steps in problem analysis? Explain briefly.

(c) Define algorithm. What are the advantages and disadvantages of algorithm?

[3+5+4=12]

2. (a) Describe three aspects of the C function.

(b) Mention some importance of user-defined function. Write a sample program using user-defined function of the following categories:
(i) functions with arguments and one return value
(ii) functions with no arguments and with a return value.

(c) Write the description of the following header files used in C programming.
(i) stdio.h (ii) conio.h (iii) string.h (iv) math.h

Q2

BANGLADESH UNIVERSITY OF TEXTILES

B. Sc. in Textile Engineering (For Affiliated Colleges)

Level-1 Term-II, Final Exám-2023
Subject:
Computer Programming (Code: MDM 101)
Time: 3.0 Hrs. Full Marks: 72
(Use separate answer script for Part: A and Part: B)

(All parts of a question must be answered consecutively)


Part: A
(Answer any three questions)

1. ⁢(a) Explain nested if…else statement with diagram.

(b) Define dangling else problem with example.

(c) Write a C program to find out largest number among three numbers input given by the users using nested if…else statements.

[3+4+5 = 12]

2. (a) What is Array? How to declare one dimensional array?

(b) Why we need to allow one extra element space when declaring character arrays?

(c) Write a C program that will generate a Fibonacci series for a given number. The number will be given by user.

[4+3+5 = 12]

3. (a) Illustrate the different types of programming errors. How can you detect logical error?

(b) Give the syntax of simple if-else statement. Write a program to determine whether the year entered by the user is a leap year or not?

Sign in to see the full question paper

It's free.

Login
Share