0% found this document useful (0 votes)
15 views3 pages

BMC-102 (Assignment-1)

This document outlines an assignment for the MCA program focusing on problem-solving using the C programming language. It includes various questions related to programming concepts, error identification in C statements, expression evaluation, and algorithm/flowchart creation. The assignment is structured for submission by October 11, 2024, and emphasizes understanding and applying programming fundamentals.

Uploaded by

Omega
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

BMC-102 (Assignment-1)

This document outlines an assignment for the MCA program focusing on problem-solving using the C programming language. It includes various questions related to programming concepts, error identification in C statements, expression evaluation, and algorithm/flowchart creation. The assignment is structured for submission by October 11, 2024, and emphasizes understanding and applying programming fundamentals.

Uploaded by

Omega
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

[Approved by AICTE, GOVT. of India & Affiliated to Dr.

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

Subject Name: Problem Solving using C Subject Code: BMC102

Date of Assignment: 07.10.2024 Date of Submission: 11.10.2024

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’;

Evaluate the following expression & show their hierarchy


(i) float g = big / 2 + big * 4 / big –big + abc / 3;
(abc=2.5, big=2 )
3 2 CO2 K2
(ii) int s = 1 / 3 * a / 4 – 6 / 2 + 2 / 3 * 6 / g;
(a=4, g=3)

Convert the following equations into corresponding C statements:


2
(i) X= -b + (b + 4ac) / 2a
4 2 CO2 K3
(ii) R=

What would be the output of the following programs:


(i) main()
{
char a = 0x0f;
a= a & ~ 0x02;
5 2 CO2 K2
printf(“ a= %d” , a);

}
(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)

Raghu aspires to join a Technology firm in the capacity of a Team Lead. He


has graduated from Delhi University in Commerce. Also he has basic
knowledge of programming as he completed O-Level from DOEACC. But for
achieving his goal, he needs to do MCA with distinction. Explain the process
of pursuing MCA to him using a flowchart/algorithm considering the
following factors **:
8 1. Eligibility Criteria 5 CO-2 K3
2. Admission time
3. Selecting University/College
4. Getting Admission
5. Appearing for Internal Exams
6. Appearing for External Exams
7. Getting the results
[Approved by AICTE, GOVT. of India & Affiliated to Dr. APJ
Abdul Kalam Technical University, Lucknow, U.P. India]

8. Looping through different Semesters


9. Applying for Jobs (College Placements/Own Efforts)
10. Preparing for Interview/Placement Exams
11. Getting Rejected/Selected

**You can make your assumptions and add/delete some of the above
mentioned steps.
**Your plan must be Innovative

Signature & Name of Faculty HOD Signature


Date: Date:

CO-Course Outcomes mapped with respective question KL-


Bloom's Knowledge Level (K1, K2, K3, K4, K5, and K6)

K1 – Remember K2 – Understand K3 – Apply K4 – Analyze K5 – Evaluate K6- Create

Note: Use A-4 size sheets to write their answer. Avoid copying assignments

You might also like