KEMBAR78
PPSC Lab Questions | PDF
0% found this document useful (0 votes)
1 views2 pages

PPSC Lab Questions

The document outlines a series of programming tasks in C, including file operations, array manipulations, string handling, and mathematical computations. It specifies various programs to implement functionalities such as searching, sorting, and using conditional operators. Additionally, it covers topics like recursion, pointers, and number properties, providing a comprehensive set of exercises for C programming practice.
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)
1 views2 pages

PPSC Lab Questions

The document outlines a series of programming tasks in C, including file operations, array manipulations, string handling, and mathematical computations. It specifies various programs to implement functionalities such as searching, sorting, and using conditional operators. Additionally, it covers topics like recursion, pointers, and number properties, providing a comprehensive set of exercises for C programming practice.
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

B)Write a C program to copy the contents of one file into another

file.

1. A)Write a C program to search for an element in an array.

2. A)Write a C program to multiply two matrices.

3. A)Write a C program to:


a) Find the length of a string
b) Concatenate two strings
c) Reverse a string
Use string handling functions.

B) Write a C program to find the maximum of three numbers using the


conditional (ternary) operator.

4. A)Write a C program to sort an array using the Bubble Sort


algorithm.

B) Write a recursive function to find the factorial of a number.

7. A)Write a C program to check whether a number is an Armstrong


number.

B) Write a C program to demonstrate the use of if else statements with


suitable conditions.

8.Write a C program to swap two numbers using:


a) Call by value
b) Call by reference using pointers

9.A)Write a C program to calculate the distance travelled using the


formula.

B) Wite a C program to declare, initialize pointer.

10.A)Write a C program to convert temperature from Fahrenheit to


Celsius and vice versa.

B) Write a C program to check whether a given number is a


palindrome.
11.A)Write a C program to determine whether a given number is prime or
not.

B)Write a C program to find the sum of digits of a number.

You might also like