Military Institute of Science and Technology Department of Computer Science and Engineering CSE-305 Array & String Practice Problems
Military Institute of Science and Technology Department of Computer Science and Engineering CSE-305 Array & String Practice Problems
Military Institute of Science and Technology Department of Computer Science and Engineering CSE-305 Array & String Practice Problems
1. Write an assembly language program to take an input n which is size of an array and take decimal input as
element of the array. Then print the even elements from the Array.
2. Write an assembly language program to take decimal input in two different arrays and print the Maximum
Number and Minimum Number from arrays. Also calculate the average of two array elements.
3. Write an assembly language program to take an input n which is size of an array and take digits (0-9) as
element of the array then print all the Repeated Numbers with Frequency in the Array
4. Take input in two arrays. Then Store the union & intersection of two input arrays in first array and second
array consecutively, then print both array.
Input: Input:
1st array: 23 31 22 12 45 36 1st array: 33 12 42 35
2nd 2nd array: 12 32 22 16 27 2nd array: 42 35 21 23
Output: Output:
Union: 23 31 22 12 45 36 32 16 27 Union: 33 12 42 35 21 23
Intersection: 12 31 22 Intersection: 42 33 35
5. Write an assembly language program to take 2 strings as input and concatenate the two strings and print
the concatenated string. Also check whether it is a palindrome or not.
6. Write an assembly language program to take a string as input and take another input as position. Delete
the char of input position to and print the entire string.
7. Write an assembly language program to take a string as input and reverse every word of the string.
8. Write an assembly language program to take a string as input and print the longest word and smallest
word.