0% found this document useful (0 votes)
33 views2 pages

Pps Lab Ex

Uploaded by

akhil27560
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)
33 views2 pages

Pps Lab Ex

Uploaded by

akhil27560
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/ 2

PPS LAB EXPERIMENTS:

1.A Write a C Program to Find Area of The Circle(AIM,ALGM,PGM,O/P & RESULT)

1.B Write a C program to convert input float into a double.

2.A Write a C Program to perform arithmetic operations.

2.B Write a C program to find the difference between the driving speed of two participants in a sinle
line.

3.A Write a C Program to find maximum of ‘N’ numbers using array.

3.B. You are given a task to rotate an array to the right by a specified number of positions.
Your program should be able to handle multiple test cases and print the results in a single line
for each test case.

Input Format

1. The first line contains a single integer TTT (1 ≤ TTT ≤ 100) denoting the number of
test cases.
2. For each test case:
o The first line contains two integers NNN (1 ≤ NNN ≤ 1000) and KKK (0 ≤
KKK ≤ 1000), where NNN is the number of elements in the array and KKK is
the number of positions to rotate the array.
o The second line contains NNN space-separated integers, representing the
elements of the array.

Output Format

For each test case, print the rotated array on a new line in a single line format.

4.A.Write a Cprogram to copy one into another

4.B You are given an array of integers. Your task is to find and print the maximum value
from all possible pairs of integers in the array.

Input Format

 The first line contains an integer NNN (2 ≤ NNN ≤ 1000), the number of elements in
the array.
 The second line contains NNN space-separated integers, representing the elements of
the array.

Output Format

 Print a single integer that represents the maximum of all pairs from the array.

5.A.Write a C program to perform arithmetic operations using function.

5.B. Write a C program that checks if the input string contains only lowercase letters (from 'a' to 'z').
If the input meets this condition, it prints "a program"; otherwise, it prints "not a program."
6.A.Write a Cprogram to create a Structure.

6.B. You are required to create a C program that manages student information using structures. The
program should store and display details for multiple students, including their department, name,
year of study, and CGPA.

7. A.To write a Python program to create a list.

7.B. To compute the area of a triangle using Python, you can use the formula:

Area=1/2×base×height

8.A To write a Python program to create a dictionary.

8.B.Write a python program to check even or odd currency

9.A To write a Python program to create a tuple.

9.B. You are tasked with creating a seating layout for a theater. The program should allow the
user to specify the number of rows and columns in the seating arrangement, and then display
the layout.

10.A To write a Python program to create a set.


10.B To write a Python Program to Change a String and Print It

You might also like