Beruflich Dokumente
Kultur Dokumente
String:
Q1.WAP to count length of string without using string libray function.
Q2.WAP to count no of vowels in a string.
Q3.WAP to count no of spaces in a string.
Q4.WAP to convert each character of a string into next third characters.
Q5.WAP to sort the given string .
Q6.WAP to count no. of words in a string.
Q7.WAP to check whether a given string is palindrome or not.
Q8.WAP to count frequency of each character in a string.
Q9.WAP to count of any one character in a string.
Q10.WAP to remove extra spaces from a string.
Q11.WAP to print even and odd character in a string.
Q12.WAP to find out password in a string.
Q13.WAP to find substring in a string.
Q14.WAP to print any name and print first capital letter of this name like:
Input-Mohandas Karamchand Gandhi
Output-M.K.G.
Q15.WAP to compare two strings which are given as input and print the alphabetically greater.
File Handling
Q1.WAP to read contents of a file and to count capital letters from a file.
Q2.WAP to copy a file into other file.
Q3.WAP to copy capital letters only from a given file into a separate file.
Q4.WAP to handle mixed data types.
Q5.WAP to count no. of lines in a file using I/O string in a file.
Q6.WAP to count no of lines which have more than 5 vowels.
Q7.WAP to append one file at the end of another.
Q8.WAP to create a sequential file that could store details about five products.
Detail include product code,cost and number of items available and are provided through keyboard.
Q9.WAF to print MCQ (Multiple Choice Questions)including three students’ detail having rollno,name and marks in a file if we enter
1 then search a particular student’s detail by rollno,if we enter 2 then search a particular student by name and if 3 is entered,
then append a file at the end of another.
Q10.WAP which last character is ‘z ‘ in a file.
Q11.WAP to count no.of lines starting with ‘a’ in a file.