Thanks to visit codestin.com
Credit goes to www.scribd.com

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

PDF&Rendition 1

The document outlines the examination details for the Technical Skill Practices – I course at Panimalar Engineering College, including a list of programming tasks in C for students to complete. Each task focuses on different programming concepts such as loops, functions, structures, and file handling, with specific input and output requirements. The allocation of marks for each task is also provided, totaling 100 marks.
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)
9 views5 pages

PDF&Rendition 1

The document outlines the examination details for the Technical Skill Practices – I course at Panimalar Engineering College, including a list of programming tasks in C for students to complete. Each task focuses on different programming concepts such as loops, functions, structures, and file handling, with specific input and output requirements. The allocation of marks for each task is also provided, totaling 100 marks.
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/ 5

OFFICE OF THE CONTROLLER OF EXAMINATIONS

PANIMALAR ENGINEERING COLLEGE


An Autonomous Institution, Affiliated to Anna University, Chennai
CHENNAI -600 123

B.E. / B.Tech. / M.E. / M.B.A DEGREE END SEMESTER EXAMINATIONS


II Semester
23ES1212 – Technical Skill Practices – I
(Common To All Branches)
(Regulations R2023)
Time : Three hours Maximum : 100 Marks

LIST OF QUESTIONS
1. Write a C program to check the occurrence of a digit in a given number using a while
loop. Read both the number and digit you want to find from user and display the
number of occurrence as output.
Sample input and output is given below:
Input:
Enter any number :443454
Enter the digit :: 4
Output:
Total number of occurrences : 3
2. Write a C program to define a function to determine whether a given number is even
or odd If input is floating point number then ignore fractional part and find whether
whole part is even or odd
3. Write a C program to single character from user, and perform the following:
i) Find whether the given character is alphabet then print message whether it is
vowel or consonant
ii) otherwise, print message “the given character is not an alphabet”
4. Write a C program to find the maximum of 3 given numbers using nested if condition

5. Write a C program to read a string from user and print the middle three characters of
the given string, if the length of the string is odd. Otherwise, if length of the string
even then print the middle two characters of the given string as output
6. Write a C program to determine whether a given number is a power of two or not. If
the number is a power of two then print 'Yes'; otherwise, print 'No'
Sample input and output is given below:
Input:
Enter the number to find whether it is power of 2:
16
Output:
Yes
7. Write a C program to read ‘N’students details such as student name, roll number, and
marks and store it in the structure variables and display information stored in the
structure variable as result. Note: read at least two or more records
Sample Input and Output is given below:

Input:
Enter name, rollno and marks for student 1 : GANESH 101 99
Enter name, rollno and marks for student 2 : ARYA 203 87

Output:
GANESH 101 99
ARYA 203 87
8. Write a C program to read two numbers and find sum of the given two numbers using
pointers
9. Write a C program to print the first n natural numbers in reverse order using recursive
function
Sample Input and Output is given below:

Input:
Enter the number: 5
Output:
54321
10. Write a C program to read 'N' numbers from user and store it in an array, and print
total count of even number and odd numbers in an array. If size of the array count is
negative or zero then print message saying that “array size must be greater then zero”
Sample Input and Output is given below:
Input:
Enter size of the array: 5
Enter 5 elements in array :: 12 34 89 77 66

Output:
Total count of even numbers: 3
Total count of odd numbers: 2
11. Write a C program to read name of the file from user and then count and print the total
number of characters in a file
12. Write a C program to read starting and ending year from user and print all leap years
between the given starting and ending year.
13. Write a C program to print the following N lines of pattern after reading value of N from
user. (Note that in boundary always print 1, and in internal area always print 0)
For N=2 the pattern is given below: For N=3 the pattern is given below:
1 1
11 11
111
For N=4 the pattern is given below: For N=6 the pattern is given below:
1 1
11 11
101 101
1111 1001
10001
111111
.
14. Write a C program to define a structure for storing voter ID, voter name, age and native
using the typedef keyword. Create a structure variable without using struct keyword.
Read voter details from user and store it in the structure variable you created and print the
same as result
Sample Input and Output is given below:
Input:
Enter voter ID, Voter Name, age and native :
101 krishna 24 saidapet
Output:
Voter ID: 101
Name:krishna
Age:24
Native: saidapet
15. Write a C program to read row-size and column-size of the matrix, and read the source
matrix from user then print the transpose of a given matrix:
Sample Input and Output is given below:
Input:
Enter row size : 2
Enter column size: 3
Enter 2X3 matrix:
1 2 3
4 5 6
Output:
Transpose of the given matrix:
1 4
2 5
3 6
16. Write a C program to read two strings and concatenate two strings using pointers

17. Write a C program to read the string from user and print count the total number of
alphabets, digits, and special characters in the given string
18. Write a C program to calculate the sum of squares of individual digits of given number
using a do-while loop. For example sum of square of individual digits of 234 is
22+32+42=29
Sample Input and Output is given below:
Input:
Enter any positive number: 234
Output:
Sum of the squares of it individual digits is: 29
19. Write a C program to perform matrix multiplication of two given matrices, after reading
row-size, column-size and values of both the matrix from user
20. Write a C program to display the sum of series 1 + 1/2 + 1/3 + ………. + 1/N up to N
terms, after reading value of N from user
21. Define a user-defined data-type called Student with member-fields for storing register-
number, student-name, and GPA. From user-defined data-type Student create array
variable for storing 5 student records. Sort the records in ascending order based on
value of GPA. Display all records in ascending order based on value of GPA
22. Write a C program to sort numbers stored in an array using user-defined function using
pass by reference.
23. Write a C Program to merge elements of two given arrays into third array and display the
value of third array
24. Write a C program to remove duplicate elements from a sorted array and display the
elements of an array after deleting duplicates
25. Write a C program to read N marks from user and display frequency histograms for given
marks based on different range of marks. Different range of marks is given below:
Range marks
Range 1 0 to 9
Range 2 10 to 19
Range 3 20 to 29
Range 4 30 to 39
Range 5 40 to 49
Range 6 50 to 59
Range 7 60 to 69
Range 8 70 to 79
Range 9 80 to 99
Range 10 90 to 100

Sample Input and output is given below:


Input:
Enter size of array:
10
Enter 10 marks:
98 80 99 78 92 93 45 88 80 76
Output:
FREQUENCY HISTOGRAM
Range 1 :
Range 2 :
Range 3 :
Range 4 :
Range 5 :*
Range 6 :
Range 7 :
Range 8 : * *
Range 9 : * * *
Range 10 : * * * *

26. Write a program in C to calculate and print the electricity bill of a given
customer. Read previous reading and current reading, and then compute number
of unit consumed. Compute the total amount to be paid to the customer, based
on following conditions:

If number of Units Rate per


consumed is Unit
<200 1.20
Between 200 and 399 1.50
Between 400 and 599 1.80
>599 2.00
The additional condition bill amount includes the following:
● If bill amount exceeds Rs.400 then a surcharge of 15% of amount to be
added to the bill amont
● The minimum bill should be of Rs.100
27. Write program to Count the number of ones in the binary representation of the given
number N using bitwise operators?
Sample Input and output is given below:
Input:
Enter the value of N: 53
Output:
Total number of 1's in binary representation of 53 is 4
(Note:The binary representation of 53 is 110101)
28. Write a C program to check whether two given numbers are equal or not using bitwise
operators, but without using arithmetic operators or relational operators
29. Write a C program to read elements array from user and rotate the array elements by
one position in clock-wise directions and display the result
Initial position of elements in an array:
10 20 30 40 50 60
position of elements in an array, after one position clockwise rotation:
20 30 40 50 60 10
30. Assume that the given string S consisting of alphabets and digits,write a C program to
print the frequency of each digit in the given string
Sample Input and output is given below:
Input:
Enter the String:
Mobile:9788025153, pin code:600115
Output:
Frequency of each digits are:
0=>3
1=>3
2=>1
3=>1
4=>0
5=>3
6=>1
7=>1
8=>2
9=>1
Allocation of Marks
(Shall be common for all Questions or may vary accordinlgy)
Topic Marks
Aim & Algorithm 10
Program 60
Output 10
Record 10
Viva voce 10
Total Marks 100
**********

You might also like