0% found this document useful (0 votes)
19 views

MVJ21CS13 Assignment 2

Uploaded by

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

MVJ21CS13 Assignment 2

Uploaded by

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

MVJ College of Engineering, Bengaluru

(An Autonomous Institute)


Affiliated to VTU, Belagavi, Approved by AICTE, New Delhi, Recognized by UGC with 2(f) & 12 (B),
Accredited by NBA & NAAC

Department of Computer Science & Engineering


1st year
Assignment I
Odd Semester (2021-2022)
Sem 01 Problem solving
Subject Subject
MVJ21CS13 using C
Code Name
Date 20/1/2021 programming

Write the answers for each question in A4 sheet and submit before the deadline
CO Code Course Outcomes
CO1 · Familiarize with writing of algorithms, fundamentals of C and philosophy of problem

solving.

CO2  Understanding C program Constants, variables and data types

Revised Bloom’s Taxonomy Levels: L1 – Remembering, L2 – Understanding, L3 – Applying,


L4 –Analysing, L5 – Evaluating, and L6 – Creating

CO Learning
Code Level
CO1 L1
a. Define computer. What are the characteristics of computer?
1
b. Give its advantages and disadvantages

a. What are the basic components of computer explain briefly CO1 L2


2
b. Write a note of Pseudo code
a. What is an algorithm? what are the characteristics of algorithm CO1 L3
3
b. Define flowchart and explain flowchart symbols in detail
a. Explain the history of C and give its importance of C. CO1 L1
4 b. Explain the process of executing the C program in both Unix
and MS-DOS operating system
CO1 L2
a. Why do we need to use comments in programs?
5
b. Where are blank spaces permitted in a C program?
a. Describe the structure of C program CO1 L4
6 b. How to we implement multiple source program files?

7 Find errors, if any. In the following programs and write the error in CO1 L5
statements
a. int main()
{
/* Does nothing*/
}

b. #include(stdio.h)
void main(void)
{
Print(“hello C”);
}

c. Include <math.h>
Main{ }
(
FLOAT x;
X=2.5;
Y=exp(x);
print(x,y);
}
a. What are trigraph characters? How are they useful CO2 L2
8 b. Describe the four basic data types. How could we extend the
range of values they represent?
a. Describe the purpose of escape sequence characters CO2 L1,L2
9 b. What are variable and constants?
c. What is meant by the “value” of a variable?
a. What are enumeration variables? How are they declared? CO2 L2,L3,L5
b. When dealing with very small and very large numbers, what
steps would you take to improve accuracy of the calculations?
c. Which of the following are invalid constants and why?
i) 0.0001
ii) 5 x 1.5
10
iii) 99999
iv) +100
v) 75.45E-2
vi) “15.75”
vii) -1.79e+4
viii) 0.00001234

You might also like