Saturday, April 26, 2014

Pactical Exam Question Bank



1.      Write a program to accept basic salary from the keyboard. Calculate the gross salary that includes basic salary, 50% DA and 40% HRA.


2.      Write a program to accept a number and display it in reversed form.


3.            Write a program to find the factorial of a number.



4.            Write a program to display the multiplication table of a user entered number. The table must be upto 10.


5.            Write a program to calculate the value of the following series.

1+1/2+1/3+1/4+1/n





 6.            Write a program to display the following for the users specified number of lines.
*
**
*** 
****
*****
|
 n lines



7.            Write a program to display the following for the user specified number of lines.
       *
      **
     ***     
    ****
   *****
  ******  
    |
   n lines
8.            Write  a program to display the following asking the user for the number of lines
1
12
123
1234
12345
123456


9.            Write a program to display the following asking the user for the number of lines.
A
ABA
ABCBA
ABCDCBA
ABCDEDCBA
ABCDEFEDCBA

   
10.        Write a program to calculate the value of


11.        Write a program to display first 10 numbers divisible by 5 and 8.


12.        Write a program to check if the entered number is prime number or not.


13.        Write a program to check if the entered number is Armstrong or not.


14.        Write a program to check if the year entered is leap year or not.


15.        Write a program to display the user entered number in words.

16.        Write a menu driven program to perform add / subtract / multiply / divide / modulus based on the users choice.
17.        Write a program to find GCD and LCM of two numbers.


18.        Write a program to find the factorial of a number using a function.


19.        Write a program to find n Fibonacci elements, using a recursive function.


20.        Write a program to find value of y using recursive function, where y=xn.


21.        Write a program to accept ‘n’ integers from user into an array and display the average of these numbers.


22.        Write a program to accept ‘n’ integers from user into an array and display the count of even and odd numbers of these.


23.        Write a program to find an element in an array and display the index of the element using a function. OR Write a program to implement sequential search algorithm.


24.        Write a program to sort numbers in ascending order.  Write a program to implement bubble sorting algorithm for sorting numbers in ascending order.


25.        Write a program to add two matrices of size m x n.


26.        Write a program to accept a string, copy it into another string and display this new string without using string.h header file.


27.        Write a program to accept two strings, join them and display the result without using string.h header file.


28.        Write a program to accept a string and find its length without using the string header file.


29.        Write a program to reverse a user entered string without using string.h header file.


30.        Write a program to check whether the entered string is palindrome or not (Do not use the string header file).


31.        Write a program to count blank spaces, digits, vowels and consonants in the string.


32.        Write a program to swap two numbers using a function. Pass the values to be swapped to this function using call-by-value method.


33.        Write a program to swap two numbers using a function. Pass the values to be swapped to this function using call-by-reference method.


34.        Write a program to store and display the name, roll number and fees of a student using structure.

No comments:

Post a Comment

Lecture PPTs of MIS , Module 4 to Module 6

 Module 4 Social Computing (SC): Web 3.0 , SC in business-shopping, Marketing, Operational and Analytic CRM, E-business and E-commerce B2B B...