Computer Programming exam (MDM 101), two complete sets, from BUTEX affiliated colleges' 2022 Level-1 Term-I finals. Includes data types, variable declarations, compiler-interpreter differences, loop comparisons, and program output error identification.
Q1
Level-1 Term-I, Final Exám-2022
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 data. Describe different types of data with related example.
(b) What is variable? How can declare variables for different types of data in programme.
(c) What is contorl statement? Mention different types of control statement with example.
[4+4+4 = 12]
2. (a) Define computer programming? Write the name of factors these are considered in a problem analysis checklist.
(b) What is the difference between an algorithm and a flowchart? Illustrate with an example.
(c) Why proper documentation is necessary? Briefly describe programmer error.
[4+4+4 = 12]
3. (a) Write about two ways of defining constants with programming example.
(b) Explain Operator of ‘C’ with example.
(c) Identify the correct and incorrect variables: auto, Second_tag, volatile, int_type, group_1, (area).
Q2
Level-1 Term-II, Final Exám-2022
Subject: Computer Programming (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 flowchart? Draw a flowchart that can take an integer number as an input and find is it odd or even number. (b) Write the responsibilities of a complier. (c) What is debugging? Why is debugging necessary? | [5+3+4=12] |
2. (a) What do you mean by keywords and identifiers? Write down the rules for naming identifiers. (b) Differentiate between unary and binary operators. (c) If a[] = {1,2,3,4,5,6} then i) a[3] = ? ii) a[4] = ? | [6+2+4=12] |
3. (a) Compare the use of if-else statement with the use of ? : operator. In particular, in what way can the ? : operator be used in place of an if-else statement. (b) Write a program with c programming language which can take a string and print it reverse. |