0% found this document useful (0 votes)
13 views6 pages

PPS Assignments - 24-25

The document outlines a series of assignments for the course 'Programming for Problem Solving' (BCS101/201) for the academic session 2024-25. Each assignment consists of multiple questions that cover various topics such as computer components, memory systems, operating systems, algorithms, data structures, and file handling in C programming. The assignments are designed to assess students' understanding and application of programming concepts and techniques.

Uploaded by

sakshamnoida37
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)
13 views6 pages

PPS Assignments - 24-25

The document outlines a series of assignments for the course 'Programming for Problem Solving' (BCS101/201) for the academic session 2024-25. Each assignment consists of multiple questions that cover various topics such as computer components, memory systems, operating systems, algorithms, data structures, and file handling in C programming. The assignments are designed to assess students' understanding and application of programming concepts and techniques.

Uploaded by

sakshamnoida37
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/ 6

Assignment: 01

Subject Subject Code Course Outcomes Session


Programming for problem Solving BCS101/201 BCS101/201.1&2 2024-25
Issue Date: Submit Date:

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 Differentiate the following with suitable examples [K2]


(I) while & do–while [AKTU 2022-23] (II) break & continue [AKTU 2019-
20]
Q2 Write a C program to print the following pattern: [K3]
a) 1 b) 1
1 2 0 1
1 2 3 1 0 1
1 2 3 4 0 1 0 1
c) A d) **** [AKTU 2020-21]
B B ***
C C C **
D D D D *
Q3 Write a program in C find all Prime numbers between 1 to 100. [K3]
Q4 Write a program in C to find transpose of matrices. [AKTU 2021-22] [K3]
Q5 Create a suitable structure in C language for keeping the records of the employees [K3]
of organization about their id, name, designation, department, city of posting. Also
write a program in C to enter the record of 100 employees and display the name of
those who earn more than 20000.
Q6 Differentiate between with suitable example [AKTU 2022-23] [K2]
(I) Structure and array (II) Structure and union
Q7 Write a C program to print the Record of the Student Merit-wise. Here a structure [K3]
variable is defined which contains the record of n students. The attributes of
students are: roll no, name and score.

Q8 Consider the following segment of C code: [K3]


int main ()
int j, n;
j = 1;
while (j <= n)
j =j*2;
return 0;
}
Write the number of comparisons made in the execution of the loop for n=10

Q9 Write the output of the following code: . [K3]


int main ()
{
int i=0, j, count=0;
for(j= -3; j<=3; j++)
{
if((j >= 0)&&(i++))
count = count + j;
}
count = count + i;
printf(“%d”, count);
return 0;
}
Assignment: 04
Subject Subject Code Course Outcomes Session
Programming for problem Solving BCS101/201 BCS101/201.4 &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]

Q4 Explain the significance of End of File (EOF). [AKTU 2021-22] [K2]

Q5 What is the requirement of FREE ( ) function in Dynamic memory allocation [K2]


[AKTU 2021-22]
Q6 Define the structure of a node in linked List. [AKTU 2022-23] [K2]
Q7 Write a program to allocate the memory with dynamic memory allocation concept. [K4]
Take the input from the user and find the sum of all elements. [K4]
Q8 Discuss about the file handling concept and write a program to copy the content of
one file to another and print the count of these coping elements. [K3]
Q9 What do you mean by pointer arithmetic. [K2]

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy