PPS Assignments - 24-25
PPS Assignments - 24-25
Q1 Explain the components of digital computer with the help of block diagram in [K2]
detail.[AKTU 2019-20,2021-22]
Q2 Draw the hierarchical structure of memory system in computer system. [AKTU [K2]
2022-23]
Q3 Explain the operating system and also explain its types and functions. [AKTU [K2]
2022-23]
Q4 Write an algorithm to find the factorial value of input number. [K2]
Q5 Draw the flowchart for writing the Fibonacci series upto n terms. N is input by [K2]
user.
Q6 Explain the compilation and execution process of C Program. [K2]
Q7 Differentiate between: [AKTU 2019-20] [K2]
(a) Compiler and Interpreter
(b) Linker and Loader
(c) Syntax and Logical Error
Q8 Write the range, format specifiers and required memory of C fundamental data [K2]
types.
Q9 Write the syntax of I/O function printf() and scanf(). Also explain the use of both [K2]
with examples.
Assignment: 02
Subject Subject Code Course Outcome Session
Programming for problem Solving BCS101/201 BCS101/201.2 & 3 2024-25
Q1 Explain unary, logical and bitwise operators in C language along with C examples. [K2]
[AKTU-2022-23]
Q2 Write a program to find the smallest number among four numbers using ternary [K2]
operator.
Q3 Solve the following expressions (Show each step). [K2]
(a) X=5 * 6 / 7 + 2 / 14% 4
(b) Y=5 & 13 && 6 || Y = 3
(c) c = a >>b; (If a =10, b = 2)
Q4 Differentiate type conversion and type casting with suitable example. [AKTU [K2]
2022-23]
Q5 Understand the following program and mentioned its result with explanations: [K2]
int main ()
{
int x=50,y=45;
x=y++ + x++ + ++y - y++;
y= x++ + ++y + y++ - --y ;
printf(“x=%d ,y=%d\n”,y,x);
return 0;
}
Q6 Write a program in C that print roots of quadratic equation using switch case and [K3]
also draw its flow chart.
Q7 If three sides of triangle are input through keyboard, draw a flow chart to check [K3]
whether a triangle is isosceles, equilateral, scalene or right-angled. Also write a C
program for the same. [AKTU-2022-23]
Q8 Write the value of a, b and c after the execution of the following code: [K2]
int a = 5, b = 7, c = 111;
c/= ++a*b--;
Q9 Write the output of following program: [K2]
int main ()
{
int i=0, j =1;
printf(“\n%d”, i++&&++j);
printf(“\n%d %d”, i,j);
return 0;
}
Assignment: 03
Subject Subject Code Course Outcomes Session
Programming for problem Solving BCS101/201 BCS101/201.3&5 2024-25
Q1 Explain the difference between call by value and call by reference. Write a [K3]
program in C that computes the area and circumference of a circle with radius
taken as input using call by reference in function. [AKTU 2019-20,2021-22]
Q2 Discuss various storage classes used in C including the details of storage place, [K2]
default value, scope and lifetime. [AKTU 2020-21,2021-22,2022-23]
Q3 Write importance of sorting in problem solving. Write a program in C using [K3]
Bubble sort technique to sort 10 numbers entered by the user. [AKTU 2019-
20,2022-23]
Q4 Write a C program to implement the concept of insertion sort using passing array [K3]
to function.
Q5 Compare linear and binary search in terms of complexity and also write a program [K3]
in C to find whether 23 exists in the given list or not: 11, 1, 3, 21, 13, 23, 65, 76,
55. [AKTU 2021-22]
Q6 Differentiate in between void pointer and null pointer with suitable example. [K2]
Q7 Write the output of the following code: [K3]
int counter=0;
int calc (int a, int b)
{
int c;
counter ++;
if (b = = 3)
return (a*a*a);
else
{
c = calc (a, b/3);
return (c*c*c);
}
}
int main () {
calc (4, 81);
printf(“%d”, counter);
}
Q8 Construct a structure to “CUSTOMER” specify data of customers in a bank. The [K3]
data to be stored is account no., name, balance in account. Assume maximal of 200
customers in the bank. Write a program in C to find and fill all details of customers
(i.e. account no., name, balance) having balance less than rupees 100. [AKTU
2022-23]
Assignment: 05
Subject Subject Code Course Outcome Session
Programming for problem Solving BCS101/201 BCS101/201.5 2024-25
Q1 Explain static memory allocation and dynamic memory allocation with suitable [K2]
examples. [AKTU 2022-23]
Q2 Discuss various file operations. Write a program in C to read the contents of an [K3]
existing file and display the number of words and lines in that file. [AKTU 2022-
23]
Q3 List out various file opening modes. [AKTU 2022-23] [K2]