You are on page 1of 2

DON BOSCO INSTITUTE OF TECHNOLOGY

Kumbalagodu, Mysore Road, Bengaluru – 560074


Department of Computer Science & Engineering
Academic Year:-2023-24(Even Sem)
Assignment -3

Course Name: Principles of Programming using C Course Code: BPOPS203


Date of Given: 04/04/2024 Semester: II sem Physics Cycle
Date Of Submission: 15/04/2024 Max Marks: 10

Q Group-A CO RBTL Marks


NO
1 What is Computer? Explain all the characteristics of computers. CO1 L2 10
CO1 L2 10
2 Classify the Computer based on their speed, amount of data and price. CO1 L2 10
3 Explain Basic Organization of a Computer. CO1 L2 10
4 Demonstrate input devices. CO1 L2
10
5 Explain briefly output devices.
6. Explain Arithmetic operator, unary operator and Conditional Operators with CO2 L2 10
example Programs
CO2 L2 10
7. Explain type conversion and typecasting with example program.
8a. Write a program to find weather the given number is small using Conditional CO2 L2
operator.
CO2 L2
8b. Write a program to perform addition subtraction, division, integer division, 10
multiplication and modulo division on two integer numbers.

Group-B
1. Demonstrate types of errors, testing and debugging approaches. CO1 L2 10
2. Who invented C? Discuss characteristics and applications of C.
3. Explain Structure of C program also write an example program and explain the CO1 L2 10
same.
CO1 L2
4. Explain files used in the C program and using comments in C Program CO1 L2 10
5. Explain compiling and executing C Program with a neat block diagram. CO1 L2 10
10
6. Explain relational operator, logical operator and bitwise operators with example CO2 L2 10
Programs.
7. Differentiate between Type casting and Type Conversion. CO2 L2 10
CO2 L2
8a Write a program to display the sizeof every data type. CO2 L2
8b Write a program to find the area of circle. 10
Group-C
1. Define programming paradigm. Explain classification with block diagrams. CO1 L2 10
CO1 L2
2. Explain example of a structured program with a block diagram. CO1 10
3 Explain the generations of computer. CO1 L2
4. Define algorithm and flowchart. Write algorithm and flowchart to find sum of n 10
L2
numbers. CO1 L2 10
5. Define pseudocode. Write pseudocode to read the marks of 10 students. If the L2 10
marks are greater than 50 the student passes, else the student fails. Count the
number of students passing and failing.

6. Explain comma operator , sizeof operator, equality operator and assignment


CO2
operators with example 10
L2
7a Write a program to calculate area of a circle. CO2
L2
CO2 10
7b Write a program to calculate the area of a triangle using Hero’s formula L2
8a Write a program to swap two numbers using a temporary variable. CO2 10
L2
8b Write a program to swamp two numbers without using a temporary variable. CO2 10
L2

Group-D
1. Explain Basic datatypes in C. CO1 L2 10
2. What are Identifiers? Give rules for forming identifiers. CO1 L2 10
3. What are variables? Give types and explain declaration and initialization of
variables. CO1 L2
CO1 L2
10
4. What are Constants? Explain types and declaration of constants. 10
5. Explain input and output statements in C. CO1 L2 10
6. Write a program to convert floating point number into the corresponding integer.
7. Find the output of following codes. CO2 L2 10
#include<stdio.h> CO2 L2
int main()
{
int a =4;
printf(“%d”,10 + a++);
printf(“%d”,10 + ++a);
return 0;
}

8a Explain rules of Scanf() function. CO2 L2 10


8b Write a program to find largest of three numbers using ternary operator. CO2 L2
10

Course Outcomes:
CO1: Euclidate the basic architecture and functionalities of a computer and also recognize the hardware parts.
CO2: Apply programming constructs of C language to solve the real world problem.
.

Name and Signature of Course Instructor HOD SIGNATURE

You might also like