SET-A
Q. WAP to find out the average marks of five subjects given by the user. Also find out the results based of the average marks obtained by the student based on the following conditions (10 marks)
“Fail” if average marks is less than 30
“Simple Pass” if average marks is less than 45 but greater than or equal to 30
“Second Division” if average marks is less than 65 but greater than or equal to 45
“First Division” if average marks is greater than or equal to 65.
Q. WAP to find out the factorial of a given integer number. The number should be given by the user on the run time. (10 marks)
SET-B
Q. WAP to provide the options for the addition, subtraction, multiplication and division of two user given integer numbers. (10 marks)
Addition
Subtraction
Multiplication
Division
If user reads any other choice then a message “Invalid Choice” should be displayed on the monitor.
Q. WAP to print the following pyramid (10 marks)
1
1 2 3
1 2 3 4 5
1 2 3 4 5 6 7
SET-C
Q. WAP to read 10 integer elements in an array and find out the sum of all the elements present in the given array. (10 marks)
Q. WAP to find out the sum of the digits of a given integer number. (10 marks)
SET-D
Q. WAP to find out reverse of a given integer number. (10 marks)
Q. WAP to print the following pyramid. (10 marks)
1
2 2 2
3 3 3 3 3
4 4 4 4 4 4 4
SET-E
Q. WAP to read 6 integer elements in an array and reverse the array. (10 marks)
Q. WAP to read two strings and compare whether they are equal or not. (10 marks)
SET-F
Q. WAP to find out the sum of two 2X2 matrices. (10 marks)
Q. WAP to find out whether a number is prime or not. (10 marks)
SET-G
Q. WAP to find out whether a number is Palindrome or not. (10 marks)
Q. WAP to find out greatest of three user given numbers. (10 marks)
SET-H
Q. WAP to find out whether a year is leap year or not. (10 marks)
Q. WAP to print the following pyramid. (10 marks)
1
1 2 1
1 2 3 2 1
SET-I
Q. WAP to read 10 integer elements in an array and find out the minimum of all the elements in the array. (10 marks)
Q. WAP to print the following triangle. (10 marks)
1
1 2
1 2 3
1 2 3 4
SET-J
Q. WAP to read 10 integer elements in an array and find out the minimum of all the elements in the array using function calls. (10 marks)
Q. WAP to read two strings and display the concatenation of the two strings. ( 10 marks)
SET-K
WAP to find out the average marks of five students read by the user. Also find out the results based of the average marks obtained by the students based on the following conditions (10 marks)
“Fail” if average marks is less than 30
“Simple Pass” if average marks is less than 45 but greater than or equal to 30
“Second Division” if average marks is less than 65 but greater than or equal to 45
“First Division” if average marks is greater than or equal to 65
Q. WAP to find out whether a number is prime or not. (10 marks)
No comments:
Post a Comment