0% found this document useful (0 votes)
84 views6 pages

PS Questions - Sheet1

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)
84 views6 pages

PS Questions - Sheet1

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/ 6

S No Roll No.

Student Name Level 1 Level 2


1 7376212IT102 ABDUL AHAMED B
2 7376212IT103 ABIRAMI V
3 7376212IT104 ADHIL HAMEED K H
1. To find the average of 5 marks if calculate grade for that marks
4 7376212IT105 AGALYA N 2.To find whether the given input is vowel or consonant(if letter) or invalid input(if numbers)
1.given with the stock price value and and no of stocks to purchase and current stock
5 7376212IT106
AKSHAYA SURUTHI A R K price value,display the profiit and loss (formula was given)
https://drive.google.com/file/d/1hERD4bhxwhFpR9V6rACIBEtSoFAWSloh/view?
6 7376212IT107 APARNA D K usp=sharing
7 7376212IT108 https://drive.google.com/file/d/1hAHHP_5VFo4q0VTo5Hmo3aLqnQ11cMGJ/view?usp=sharing
8 7376212IT109 ARUN NIHIL KUMAR S
9 7376212IT110 ASHWIN S
10 7376212IT111 ASWIN M
11 7376212IT112 BARATH P
12 7376212IT113 BHAVATHARINI G
13 7376212IT114 BRINDHA R
14 7376212IT115 CHARANKUMAR S K
15 7376212IT116 DANUSSHKUMAR M
16 7376212IT117 DARSHAN L PS level 1
17 7376212IT118 DEEKSHA G
18 7376212IT119 DEEPAN S S
19 7376212IT120 DEEPASRI S
1.To count the number of digits of a number without using loops and print whether
the given number is a 5 digit number or not.
Sample testcases:
34567
34567 is a 5 digit number
-13789
-13789 is a 5 digit number
123
123 is not a 5 digit number

2.To find the cost of a movie ticket. There is different cost for each persons like
children it cost $5, for adult $7 and for old age $5.
Get the user input for each person separately. Calculate the total no of persons and
total cost based on the condition. If the total persons is more than 5 then there is a
20 7376212IT121 DEEPIKA S discount of 10% in the movie ticket, if not print the original ticket cost.
21 7376212IT122 DEEPITHA D K
22 7376212IT123 DEVA PRASATH R
23 7376212IT124 DHANUSH KARTHIK K R
1.odd or even program
24 7376212IT125 DHANUSHKUMAR D 2.find the given input is consonant,vowel or special characters. fibbonacci series, narcisstic number.
25 7376212IT126 DHANVANTH S B
26 7376212IT127 DHARANITHARAN M
27 7376212IT128 DHARINEESH Y
28 7376212IT129 DHARSHINI R
29 7376212IT130 DHARSHINI V
1. Find the shipping cost of the product by multiplying the given cost value according 1. To find number of digits in the given input - integer number.
30 7376212IT131 DHARSHINI V S to the range. 2. To find the sum of the given number recursively untill the sum is single digit i.e., lies between
2. To print whether the given two inputs are even, odd or neither even or odd. 1 to 9.
1) Write a program to input month number and print month Name.
31 7376212IT132 DHARUN S 2) If the given two input numbers are equal print 0 else print its difference.
32 7376212IT133 DHIVIN VARSHAN K
33 7376212IT134 DINESH KUMAR S
34 7376212IT135 DINESH M
35 7376212IT136 DIVITH S
S No Roll No. Student Name Level 1 Level 2
36 7376212IT137 GOKUL K
37 7376212IT138 GOKUL KANNAN R
38 7376212IT139 GOKUL R
39 7376212IT140 GOKUL V
40 7376212IT141 GOWTHAM M P
41 7376212IT142 GOWTHAM S
42 7376212IT143 HARDEEP M
43 7376212IT144 HAREHARAN P K
44 7376212IT145 HARINI D
1.Swapping of first and last digits(1234 -> 4231)
2.pattern printing - no of rows and column - 3
5
5 10
5 10 15
3.next three cube of given no , n = 1
1.Eligible for voting(if else) 2.Movie ticket booking based on even and odd(nested if output :
45 7376212IT146 HARIPRASAD S else) 1 8 27
46 7376212IT147 HARIROHITH T
47 7376212IT148 HARISH V
48 7376212IT149 HARSHA R
49 7376212IT150 HARSHINI S
50 7376212IT151 HAYMON R S
51 7376212IT152 INDHUJA L V
52 7376212IT153 INDIRA A 1. to find the length of a number without using loop. 2. eligible for voting
53 7376212IT154 IRFAN BASHA I
54 7376212IT155 JASIM AHAMED A
55 7376212IT156 JASMINE HEPZIBA S
56 7376212IT157 JAYANTH M
57 7376212IT158 JAYAPRAKASH T
58 7376212IT159 JAYAPRASHAD M
59 7376212IT160 JAYASURIYA J
1. Given an integer and check whether the integer is odd or even, if odd print all odd numbers
1. Print the sum of odd and even number upto to the given range of integer. 2. upto that the given number and if it is even print all even number upto that number. 2.
Given three sides of triangle, first check if it is valid triangle or not then classify based Given an integer, print the sum of geometric progression series upto to the given integer range (
60 7376212IT161 KANISHKA J on the given conditions whether it is isosceles,scalene or equilateral triangle 1/2+1/4+1/8+.....)
1.To identify the profit or loss based on cost price and selling price and identify the
profit and loss amount 1.1-x^2/2!+x^4/4!-x^6/6!........ find the sum of the series no of terms and x values will be given
61 7376212IT162 KAREESHMA S K 2.The attendance percentage calculation 2.The number of leap year in decades
62 7376212IT163 KARTHIKA S
63 7376212IT164 KAVIYA K
64 7376212IT165 KAWYAA S
1. conversion of farenheit to celcius 2. using logical operator and arthimetic
65 7376212IT166 KIRANN KRISHNA R operator to find the petrol cost 1. Rectangle pattern printing, 2. To find the LCM and GCD of the given two numbers
1.To find compound interest .the formula is given 2.To find odd or Even for both 2.To find geometric progression for given integer. 2. 2.Get two numbers ,check if both numbers
66 7376212IT167 KIRUTHIKA S poisitive and negative numbers are even and return next even number
67 7376212IT168 KOUSICK C K
S No Roll No. Student Name Level 1 Level 2
1. A company decides to give bonus to all its employees on new year. A 5% bonus
on salary is given to male workers and 10% bonus on salary is given to female
workers. write a C program to enter the salary and gender of the employees. If the
salary of the employee is less than 10000, then the employee gets an extra 2%
bonus on salary. Calculate the bonus that has to be given to the employee and
display the salary that the employee will get?
Solution : https://www.cprograms4future.com/p/company-bonus.html?m=1
2. Write a C program to input marks of five subjects Physics, Chemistry, Biology, 1. Program To Increment By 1 To All The Digits Of A Given Integer
Mathematics and Computer, calculate percentage and grade according to given Input : 203
conditions: Output: 314
If percentage >= 90% : Grade A
If percentage >= 80% : Grade B 2. Get input row from user and print the following pattern.
If percentage >= 70% : Grade C Input : 5
If percentage >= 60% : Grade D Output: 5
If percentage >= 40% : Grade E 5 10
If percentage < 40% : Grade F 5 10 15
Solution : https://codeforwin.org/c-programming/c-program-to-enter-student-marks- 5 10 15 20
68 7376212IT169 KRISHNAKUMAR S and-calculate-percentage-and-grade 5 10 15 20 25
69 7376212IT170 LALITHKUMAR K
70 7376212IT171 LOGESHWARAN P
71 7376212IT172 MADHANKUMAR R
72 7376212IT173 MADHUMITHA K
73 7376212IT174 MADHUMITHA S
74 7376212IT175 MAHALAKSHMI T
75 7376212IT176 MALARKODI M
76 7376212IT177 MANIKANDAN K
77 7376212IT178 MANOBALAN M

1.Find whether it is 5 digit number or not it includes negative number also: Input:
12345 output:It is 5 digit number Input2:-23456 output :It is five digit number Input 3:
123 output:It is not a five digit number.

2.Get 3 inputs from the user First get the selling price per unit.Next the quantity sold
.Then The input Of middlemen used.Choose from these middlemen A, B and C who
deducts 10%, 20% and 30% respectively
Find the total revenue after deduction by the middlemen
Display "Invalid middleman" if the middlemen entered is nt A, B, C and print the
original amount without deduction any deduction
Input 1:
500(selling price per unit)
1 (quantity sold)
A (middleman)
Output1: 1.Find Whether the number is abundant number or not I/P:12 Output : Abundant number
450 00 (total revenue generated after deductions by middlemen) explanation:1+2+3+4+6=16 which is 16>12 so it is abundant number https://prepinsta.com/c-
Input 2: program/abundant-number-or-not 2. Get input row from user and print the following pattern.
200(selling price per unit) Input : 3
2 (quantity sold) Output: A
D (middleman) BB
Output2: CCC
78 7376212IT179 MEENAASHI S 400 00 https://www.programiz.com/c-programming/examples/pyramid-pattern
79 7376212IT180 MIRUDHUN KUMAR S
80 7376212IT181 MOHANAPRABHU D
81 7376212IT182 MONICA B
82 7376212IT183 MOULISH T
83 7376212IT184 MOULISWARAN A
84 7376212IT185 MOULY VINAYAKA T N
85 7376212IT186 MOUNA SUNMATHI S
86 7376212IT187 MYTHILI E
87 7376212IT188 NARESHKUMAR G
88 7376212IT189 NATHISH M
S No Roll No. Student Name Level 1 Level 2
89 7376212IT190 NAVEEN BHARATHI S
90 7376212IT191 NAVEEN PRAKASH S
91 7376212IT192 NAVEEN RAJ B
1) To print even numbers in the Fibonacci series of n numbers. 2)Integer to Roman for first 40
92 7376212IT193 NISHAANTH R 1) To print how many days in a given month numbers
93 7376212IT194 NITHISH K P
94 7376212IT195 NIVEDHITHA M
95 7376212IT196 NIVETHA M
96 7376212IT197 NIVETHINI R
97 7376212IT198 PAVITHRA M R
98 7376212IT199 POOJA SHREE R
99 7376212IT200 PRAVEEN KUMAR D
100 7376212IT201 PRAVEEN R
101 7376212IT202 PRAVIN B
102 7376212IT203 PRAVIN KRISHNA K
103 7376212IT204 PRAVIN RAJ A R
104 7376212IT205 PRITHIK MITHUN G P
105 7376212IT206 RAHAMATH S
106 7376212IT207 RAJGOKUL R M
107 7376212IT208 RAKESH M
1.Input the month number as input and if the input is 2 ,then get year as the input and
display the number of days in the month along with the month name and if it is
108 7376212IT209 RAKSHANA A February print month name, number of days and also print it is leap year or not.
109 7376212IT210 RAMANAKHRISHNAN K A
110 7376212IT211 RAMYHA SHREE R
111 7376212IT212 RANJITHKUMAR P
112 7376212IT213 REVATHIPRIYA S
113 7376212IT214 RISHEVANTH V S
114 7376212IT215 ROGANTH P
115 7376212IT216 ROHIN S
116 7376212IT217 SAKTHI SUNDARESAN P
117 7376212IT218 SAMYUKTHA M S
118 7376212IT219 SANJAY V N
119 7376212IT220 SANTHOSH A M
120 7376212IT221 SANTHOSH K
121 7376212IT222 SARANPRADEEP R
122 7376212IT223 SARATH KUMAR P M

1. check whether it is alphabet or not (if else) 2. check whether there are eligible
123 7376212IT224 SARMATHA M for higher post or not (if else)
1. calculate bonus and final salary from input gender and salary (if gender is male(M),
bonus-5% if gender is female (F)bonus is 10%, additionally if the salary is below
10000, bonus is 2%) 2. Get character input from user and check if it is a vowel or 1. Fibonacci series
124 7376212IT225 SATHYA M consonant or not an alphabet 2. Integer to roman
1.Print next 5 palindrome number if the given input is 500 print 505,515,525,535,545 like this 2.
1.Movie ticket booking - if the ticket is more than 5 (discount 5% or anything else) 2. In a conference hall has 6 members how many time they will give handshake to each other not
125 7376212IT226 SELVA S If the coffee is more than the heat level print "Coffe is hot" else print "low" more than once
S No Roll No. Student Name Level 1 Level 2
1. Write a C program that reads the dimensions (width and height) of a shape and if both sides 1. Print the sum of all palindrome numbers from 0 to n
are same its square , else its rectangle. Print the shape name and its area. 2. Print all even numbers in the Fibonacci sequence that are less than n.
2.
Write a program that reads XY coordinates from the user and categorizes each point into one
of the following regions:
Origin: If the coordinates are (0,0).
Quadrant 1 (First Quadrant): If x > 0 and y > 0.
Quadrant 2 (Second Quadrant): If x < 0 and y > 0.
Quadrant 3 (Third Quadrant): If x < 0 and y < 0.
Quadrant 4 (Fourth Quadrant): If x > 0 and y < 0.
X-axis: If x > 0 and y = 0.
Y-axis: If x = 0 and y > 0.

Input:
12

Output
First Quadrant
126 7376212IT227 SENTHILKUMAR P
1. Program to find if a number is Abundant or not.
2.Square Pattern
Input: 4
Output:
1. Check wheather the given number is odd or even. If the number is odd multiply by
####
three.If the given number is even divided by three(12(input)4(output)).
####
2.To find whether the given input is vowel or consonant(if letter) or invalid input(if
####
127 7376212IT228 SENTOOR T N numbers).
####
128 7376212IT229 SHARATH B
129 7376212IT230 SHASHTHIGA R
130 7376212IT231 SHOBIGA S C
1.Find the given number is prime number or composite number 2.swap the first and last digit in
131 7376212IT232 SHRIPATHI S P given number
1.Buy tickets based on age.(if greater than 12 print adult ticket if less than print
eligible for child discount)
2. To find the fine amount in library ,2 types of book is given for each type certain
amount of fine also there , you should get days and type of the book and calculate 1.Get number and upto that number print starts for prime numbers 2.Get two numbers ,check if
132 7376212IT233 SHUBANU S the fine by multiplying. both numbers are even and return next even number
133 7376212IT234 SHYAM SUNDAR S
134 7376212IT235 SNEGA N J
135 7376212IT236 SONEEYA S S
136 7376212IT237 SRI GUHAN PRASANNA T
137 7376212IT238 SRI RASSWANTH K C
138 7376212IT239 SRI SOUNDARYAA R S

1. Input a number and Print the cube number of the next three consecutive numbers.
2.Input a number and find the numbers divisible by it and numbers' sum. If sum is equal to input
139 7376212IT240 SRI YAZHINI N 1. If the given two input numbers are equal print 0 else print its difference. number print equal or print unequal
140 7376212IT241 SRIDHARAN M
141 7376212IT242 SRIRAM S
142 7376212IT243 SRI VARDHINI S
143 7376212IT244 SRUTHI M
144 7376212IT245 SUBHARANJANI L 1.simple compound interest 2.greatest of three numbers
145 7376212IT246 SUDHARSAN S R
146 7376212IT247 SUDHARSHINI S
147 7376212IT248 SUHAS T B
148 7376212IT249 SUJITH KUMAR B
149 7376212IT250 SUJITH P
150 7376212IT251 SUJITHA N M
151 7376212IT252 SUJITHRA S
152 7376212IT253 SURESHKUMAR G
S No Roll No. Student Name Level 1 Level 2
153 7376212IT254 SURYA V
154 7376212IT255 SWATHI S

1. To find the given input is alphabet or not . 2.To find whether the given input is 1.Amstrong number. 2. To find the sum of digits recursively and stop till when the sum becomes
155 7376212IT256 SWETHA B vowel or consonant or invalid input a single digit.
1) To find odd and even sum of a given number without using loops Eg 1234 is the 1) Count number of digits of a given number.
given digit, evensum=6(2+4) oddsum=4(1+3)only 4digit numbers will be given. 2)Pattern printing : Input 6
**
2) To input a number between 1 to 7 and print the corresponding day of the week.(1- ***
156 7376212IT257 SWETHA S Monday, 2-Tuesday etc) * * * * * (Only the rows with prime numbers should be printed)
1) To find the index of a given target element in the array and print all the elements except the
target.
2) Pattern Printing: Input: 4
4321
321
1) To Find the average of the given marks and print the grade for the average. 21
2) To find the sum of given two numbers and find odd or even of the sum 1
157 7376212IT258 THANAPRANESH KUMAR K
158 7376212IT259 THARANESH P 1.The year and date are give.To find the seasons like Summer winter monsoon
159 7376212IT260 VAISHNA SURYA S
160 7376212IT261 VANI J R
161 7376212IT262 VANISHRI N M
162 7376212IT263 VARGHESE SHRINOJ S 1 Find the sgpa and print. 2find the grade of the student according to the mark 1 Abudant number 2 .sum of prime no
163 7376212IT264 VARUN M 1. Input basic salary of an employee and calculate its gross salary -
1. Print the next greatest palindrome 2. Find leap year and no of leap year and non-leap year in
163 7376212IT265 VASANTH S next decade.
165 7376212IT266 VIKAS S G
166 7376212IT267 VIKRAM K M
167 7376212IT268 VINOTHA P
168 7376212IT269 VISHAL KUMAR M G
169 7376212IT270 VISHALAN S
170 7376212IT271 VISHNU PRIYA R
171 7376212IT272 VISHNU PRIYAN M
172 7376212IT273 VISHWANTH V
173 7376212IT274 YASIKA A 1. student attendance percentage 1. harmonic progression 2. Geometric progression 3. printing 1 2 3 4 pattern in reverse order
174 7376222IT501 ABDUL MUKSITH S 2
175 7376222IT502 ARUN KUMAR U B
176 7376222IT503 BALAVIKNESH S
177 7376222IT504 DEEPAK S R
178 7376222IT505 GOKULSARVESH S K
179 7376222IT506 JANARTHANAN N
180 7376222IT507 KAMALESHWARAN S
1.lowercase and uppercase characters into two separate strings.
181 7376222IT508 KAVIARASU VENKATESAN 2. .Movie ticket booking - if the ticket is more than 5 (discount 5% or anything else)
182 7376222IT509 KAVIPRIYAN M
183 7376222IT510 KEERTHIVASAN K
184 7376222IT511 MATHAVAN K
185 7376222IT512 MOUNIKA P
186 7376222IT513 RAGAVENDRAN G
187 7376222IT514 SANTHOSH S
188 7376222IT515 SUDHARSHAN B
189 7376222IT516 VENKATESAN D
190 7376222IT517 VINOTH KUMAR B

You might also like