0% found this document useful (0 votes)
70 views4 pages

Pps External Lab Important Questions

Uploaded by

mettuvamshi76
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)
70 views4 pages

Pps External Lab Important Questions

Uploaded by

mettuvamshi76
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/ 4

BR-22 SRI INDU COLLEGE OF ENGINEERING & TECHNOLOGY D4

(An Autonomous Institution Under 2(f) and 12(B) of UGC Act 1956, New Delhi)

I B.Tech - I Semester – Lab External Examination January-2024

(R22CSE1128) Programming for Problem Solving

Date of exam :21/01/2025 AN

Computer Science and Engineering

Set 1:

a) Write a C program that uses non recursive function to search for a Key value in a given

sorted list of integers using binary search method.

b)Write a C program for electricity bill 200 units .

c) Write a program for finding the max and min from the three numbers.

Set 2:

a). Write the program for the simple, compound interest

b) Write a program to find the factorial of a given integer using functions

c) Write a C program to construct a pyramid of number as follows :

22

333

4444

Set 3:

a) Write a C program to count the number of words, lines, characters in a text file.

b) Write a program that finds if a given number is a prime number

c) Write a C program that implements the Bubble sort method to sort a given list of
integers in ascending order.

set 4:

a) Write a program that declares Class awarded for a given percentage of marks, where mark

<40%= Failed, 40% to <60% = Second class, 60% to <70%=First class, >= 70% = Distinction. Read percentage from sta
input.

b) Write a C program to construct a pyramid of numbers as follows

1 2

1 2 3

c) Write a C program that sorts the given array of integers using insertion sort in ascending order.

Set 5 :

a) . Write a simple program that converts one given data type to another using auto conversion and casting. Take th
values from standard input

b) Write a C program that performs addition of two matrices

c) Write a C program that sorts the given array of integers using selection sort in ascending order

Set 6:

a) write a program to insert a sub-string into a given main string from a given position

b) Write a C program to construct a pyramid of numbers as follows

1 2

1 2 3

c) Write a program that declares Class awarded for a given percentage of marks, where mark

<40%= Failed, 40% to <60% = Second class, 60% to <70%=First class, >= 70% = Distinction.

Read percentage from standard input.

Set 7:
a) Write a C program to find the roots of a Quadratic equation

b) Write a C program to Transpose of a matrix

c) Write a C program for checking a number palindrome or not .

Set 8:

a) Write a C program to find factorial using recursion

b) Write a C program to display the contents of a file to standard output device

c) Write a C program to construct a pyramid of numbers as follows

*
* *

* * *

set 9:

a)Write a program for reading elements using a pointer into an array and display the values using the array.

b)Write a simple program that prints the results of all the operators available in C (including pre/

post increment , bitwise and/or/not , etc.). Read required operand values from standard input.

c)write a program of insertion sort in ascending order.

Set 10:

a) Write a C program to generate the first n terms of the Fibonacci sequence.

b) Write a C program, which takes two integer operands and one operator from the user, performs the operati
then prints the result. (Consider the operators +,-,*, /, % and use Switch Statement

c) Write a C program to perform X^n using recursion

Set 11:

a) write a program to implement linear search using functions

b) write a program to convert decimal to roman number

c) Write C program for electricity bill for 200 units.

Set 12:

a) write a C program to compute GCD using recursion

b) Write a C program to multiply two matrices using arrays

c) Write a C program to merge two files into a third file

Set 13:
a)write a C program which copies one file to another, replacing all lowercase characters

with their uppercase equivalents.

b)Write a program for display values reverse order from an array using a pointer.

c)write a program to check whether the given string is palindrome or not

set 14:

a) Write a C program to merge two files into a third file

b) Write a program for reading elements using a pointer into an array and display the values using the array.

c) write a c program to perform linear search using functions

set 15:

a)Write a program that prints a multiplication table for a given number and the number of rows in
the table. For example, for a number 5 and rows = 3, the output should be:

5x1=5

5 x 2 = 10

5 x 3 = 15

b) Write a program through a pointer variable to sum of n elements from an array

c) Write a C program to construct a pyramid of numbers as follows

1 2

1 2 3

You might also like