Computer Programming exam (MDM 101) from the 2024 Level-1 Term-II finals, containing two full papers, set by BUTEX for affiliated colleges. Topics include C language features, translators and compilers, loops, control statements, and flowchart symbols.
Q1
Level-1 Term-II, Final Exám-2024
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 are the key features in the C programming language?
(b) Why and when do we use the #define directive?
(c) Area of triangle is given by the formula , where a, b and c are sides of the triangle and 2s = a + b + c. Write a program to compute the area of the triangle given the values of a, b and c.
[4+3+5=12]
2. (a) What do you understand by the term translator in the context of programming languages?
(b) Describe the various types of translators and explain their functions in program execution.
(c) Differentiate between a compiler and an interpreter with appropriate examples.
[2+5+5=12]
3. (a) What does the break statement do when used in a loop?
(b) What is the equivalent code of the following statement in WHILE loop format:
for(n=1; n<=100; n++)
Q2
Level-1 Term-I, Final Exám-2024
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) Define Computer program? Write the differences among Machine, Assembly and High-level languages?
(b) “C is the second-best language”- why not the first? Write the advantages of C as a structured programming Language.
(c) Define Algorithm. Differentiate algorithm and flowchart.
[4+4+4=12]
2. (a) Write about two ways of defining constants with programming example.
(b) State rules for writing variable names in C.
(c) Find out the correct and incorrect keywords of C language?
interrupt, typedef, public, static, auto, construct.
(d) What are the differences between compiler and interpreter?