0% found this document useful (0 votes)
0 views5 pages

PSP Question Bank Cie2

The document is a question bank for the subject 'Problem Solving Through Programming' for the academic year 2024-25 at SJCIT. It includes various modules with questions categorized by Bloom's taxonomy levels, covering topics such as C programming concepts, functions, arrays, strings, pointers, structures, and file handling. Each module contains questions aimed at assessing different cognitive levels and learning outcomes related to the course.

Uploaded by

kishanmkishan28
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)
0 views5 pages

PSP Question Bank Cie2

The document is a question bank for the subject 'Problem Solving Through Programming' for the academic year 2024-25 at SJCIT. It includes various modules with questions categorized by Bloom's taxonomy levels, covering topics such as C programming concepts, functions, arrays, strings, pointers, structures, and file handling. Each module contains questions aimed at assessing different cognitive levels and learning outcomes related to the course.

Uploaded by

kishanmkishan28
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/ 5

SJCIT Question Bank

Estd: 1986

Department of ISE and AIML


QUESTION BANK
SUBJECT TITLE PROBLEM SOLVING THROUGH PROGRAMMING
SUBJECT TYPE IC
SUBJECT CODE BPSPS203
ACADEMIC YEAR 2024-25 BATCH 2024
SCHEME 2024
SEMESTER II
FACULTY NAME Prof. Suma Manjunath N, Prof. HamsaLatha J, Prof Sudha J

Module -1
Q. Bloom
Questions COs
No. ’s
LL
1. Define and explain the significance for the following with L2 CO1
examples.
i. Variables ii. Datatypes.
Illustrate with suitable example the various types of
2. constants available in C. L2 CO1
3. List and describe three files used during the compilation L2 CO1
of a C program and their purpose.
Explain the key characteristics of the C programming
4. language. How do these features help in understanding its L2 CO1
usage in system and application development?
5. Develop a program to swap two numbers using a L3 CO1
temporary variable.
Write a sample program to demonstrate the components
6. in the structure of C program. L3 CO1
7 Develop a program to calculate the Area of a Triangle L3 CO1
Using Heron's Formula.
8 Generate a program to Calculate Distance Between Two L3 CO1
Points Using Distance Formula.
9 Develop a C program to calculate Simple Interest. L3 CO1

10 Construct a program to Read and Print Two 4-Digit L3 CO1


Numbers and Demonstrate Truncation.

Page | 1
SJCIT Question Bank

Module -2
Q. Bloom’s
Questions Cos
No. LL

1. Describe the different types of iterative statements in C, L2 CO2


along with their syntax and an example for each.
Explain type conversion and typecasting in C with
2. examples. L2 CO2
3. Interpret the purpose of three unconditional statements in L2 CO2
C with suitable code.
4. Explain the significance of arithmetic, relational, unary, L2 CO2
bitwise, comma operator and sizeof operator with suitable
example programs.
5. Formulate a program to convert degrees Fahrenheit into L3 CO2
degrees celsius.
6. Outline a program to find the largest/smallest of three L3 CO2
numbers using ternary operator.
7. Analyze and evaluate the expression ((a + b) > (c - d)) * d / L4 CO2
a using a C program. Break down the logic step-by-step and
explain how changes in input values affect the final result.
Support your explanation with appropriate reasoning.
Develop a C program to compute the final sales amount by
8. taking unit price, quantity, discount, and tax rate as inputs. L4 CO2
Analyze the role and impact of each input variable on the
final amount. Decompose the expression flow into parts and
justify how changes in one variable affect the others and the
final output.
9. Analyze the use of the if-else ladder construct in L4 CO2
determining the nature of roots in a quadratic equation of
the form ax² + bx + c = 0, where a ≠ 0. Develop a C
program to implement this logic and explain how changes in
the discriminant influence the outcome. Justify your
reasoning with examples.
10. Analyze the logic used in classifying a triangle based on L4 CO2
side lengths using a switch-case construct in C. Develop a
program that identifies whether a triangle is equilateral,
isosceles, or scalene. Discuss how the triangle inequality
and side comparisons influence the control flow. Also, justify
the necessity of checking for invalid inputs before
classification.
Module -3
Q. Bloom’s
Questions Cos
No. LL

1. Explain the different types of functions in C. How are user- L2 CO3


defined functions different from library functions? Discuss
the difference between function declaration, definition, and

Page | 2
SJCIT Question Bank

function call with proper syntax and examples.


Explain parameter passing in C with examples. Differentiate
2. between call by value and call by reference. L2 CO3
3. Develop a C Program to generate the Prime numbers L2 CO3
between the ranges m & n using functions. Also, print the
number of prime numbers generated.
4. Design a program in C to compute GCD and LCM of two L3 CO3
numbers with and without using recursion.
5. Explain different types of recursion in C with suitable L3 CO3
examples. Write a program to find the factorial of a number
using a recursive function.
6. What is a storage class in C? List and briefly explain the four L3 CO3
types of storage classes supported in C with respect to
memory location, lifetime, scope, and default initialization.
7. Explain the concept of one-dimensional and two- L3 CO3
dimensional arrays in C. How are arrays declared, initialized,
and accessed? Illustrate with appropriate examples and
explain how arrays are stored in memory.
Develop a C program to accept a matrix of order m x n.
8. Implement the following functions that will compute and L3 CO3
print the same.
a. Find the sum of each row
b. Find the sum of each column
c. Search an element in a matrix
9. Write a C program to read two matrices A (m×n) and B L4 CO3
(p×q) to perform multiplication of two matrices. Analyze and
explain why the number of columns in Matrix A must be
equal to the number of rows in Matrix B for multiplication to
be possible.
10. Develop a C program to read n characters and sort the L4 CO3
characters using Bubble sort technique and reverse the
sorted array and print the same. Analyze the role of
character encoding (like ASCII) in sorting. How does the
internal representation of characters affect the sorting
order?
Module -4
Q. Bloom’s
Questions Cos
No. LL

1. Define a string. Explain the process of reading and writing L2 CO4


strings using various functions.
Describe the Appending, Indexing, Reversing and Deleting
2. operations of strings. L2 CO4
3. Explain these various string manipulation functions available L2 CO4
in C, strlen, strcpy, strcmp, strcat. How do they operate
internally?
4. Write a program to print the following pattern. L2 CO4
H
HE

Page | 3
SJCIT Question Bank

HEL
HELL
HELLO
HELLO
HELL
HEL
HE
H
5. Write a program to read a string and count the number of L3 CO4
vowels in it.
6. What is a pointer? How do you declare a pointer to an L3 CO4
integer in C? Differentiate between Null Pointers and
Generic Pointers.
7. Develop a program to sort n number elements and pass L3 CO4
entire array as argument to a function using pointer
technology.
Develop a program using pointer to compute the sum, mean
8. and standard deviation of all element stored in array of N L3 CO4
real number.
9. Develop a C program to determine whether a given string is L4 CO4
a palindrome. Explain how your program handles case
sensitivity and analyze its memory usage and space
efficiency.
10. Develop a C program to find the sum of all elements in an L4 CO4
integer array using pointers. Analyze the time complexity of
your solution and explain why using pointers can be
advantageous.
Module -5
Q. Bloom’s
Questions Cos
No. LL

1. Explain the differences between structures and unions in C. L2 CO5


In which scenarios is it preferable to use a union instead of a
structure? Support your answer with examples.
Discuss how arrays of structures are declared and
2. accessed in C. How can structures be passed to and L2 CO5
returned from functions? Provide examples.
3. What are self-referential structures? Explain their use in L2 CO5
building linked data structures like linked lists with a
relevant example.
4. What are enumerated data types in C? How do they improve L2 CO5
code readability and maintainability? Explain with suitable
code.
5. Write a C program to define a structure Student with fields L3 CO5
name, roll number, and marks. Read and display details of 3
students.
6. Develop a C program to create a union with members int i, L3 CO5
float f, and char ch. Assign and print values to observe
memory sharing.

Page | 4
SJCIT Question Bank

7. Write a program to define an enum for days of the week L3 CO5


and display all days using a loop.
Develop a C program to open a file, write a few lines of text
8. into it, then read and display its content. L3 CO5
9. Analyze how nested structures work in C. Write a program L4 CO5
using a nested structure to store information about a
student and their address. Discuss how memory is managed
and accessed.
10. Analyze file handling using the feof() function. Write a L4 CO5
program that reads a file line-by-line and stops at the end of
the file using feof(). Explain how and when feof() returns
true.

Page | 5

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