BMC-102 (Assignment-1)
BMC-102 (Assignment-1)
APJ
Abdul Kalam Technical University, Lucknow, U.P. India]
Department of MCA
MCA Sem: Ist Sec: B-1, B-2 & B-3
Session 2024-25 (Odd Semester)
Assignment-1
UNIT -1
Basics of programming: Approaches to problem solving, Use of high level programming language for systematic
development of programs, Concept of algorithm and flowchart, Concept and role of structured programming.
Basics of C: History of C, Salient features of C, Structure of C Program, Compiling C Program, Link and Run C
Program, Character set, Tokens, Keywords, Identifiers, Constants, Variables, Instructions, Data types, Standard
Input/Output, Operators and expressions.
Q.
Questions Marks CO KL
No.
Why translator is necessary for programming language? Differentiate the
1 5 CO1 K2
functionalities of Compiler, Interpreter & Assembler.
Find the errors, if any, in the following in C statements and describes
2 (i) int = 314.25 * 50;
2 CO2 K2
(ii) char name = ’XYZ’;
}
(ii) main()
{ float a = 5, b= 2;
[Approved by AICTE, GOVT. of India & Affiliated to Dr. APJ
Abdul Kalam Technical University, Lucknow, U.P. India]
int c=;
c= a % b;
printf(“ %d ”, c);
}
Calculate the value at each step of the given flow chart and find the number placed in
whch of the following boxes remain unchanged.
6 8 CO2 K3
(i) Mr. XY’s basic salary is input through the keyboard. His dearness allowance is
45% of the basic salary, & house rent allowance is 20% of basic salary. Write an
algorithm and draw a flow chart to calculate and display his dearness allowance,
house rent allowance and gross salary.
7 4 CO2 K3
(ii) If a five – digit number is input through keyboard, write a program to calculate
the sum of its digits without any loop.
(eg. Num=12345, sum=1 + 2 + 3 + 4 + 5 = 15)
**You can make your assumptions and add/delete some of the above
mentioned steps.
**Your plan must be Innovative
Note: Use A-4 size sheets to write their answer. Avoid copying assignments