You are on page 1of 6

Take a character input from user and show its ASCII in both

decimal and binary number system

Take a character input from user and show its ASCII in both
decimal and octal number system

Take a character input from user and show its ASCII in


hexadecimal number system

Declare and initialize two arrays in data segment of same size


and show the sum of corresponding elements of the arrays.
Sample:
Arr1:
Arr2:
Output:

21, 32, 65, 76, 56, -11, 10, -34


0, 11, -3, 90, 43, 56, 66, 9
21, 43, 62, 166, 99, 45, 76, -25

Take a string input from user and reverse the string by two
different methods

Declare and initialize a positive integer (word) in data segment


and find out the sum of its digits.
Sample:
Declared Number: 1987
Output:

25

Write a program to print the table of 5. Your output should be in the form:
5*1=5
5 * 2 = 10
.
.
.
5 * 10 = 50
Declare an array of integers in data segment and find out how many are
even and odd.
Sample:
Array = 21,43,54,67,87,87,32,43,55,909,231,324,54
Output:
Total Numbers: 13
Total Odd Numbers: 9
Total Even Numbers: 4
Take a character input from user and find out whether the input is alphabet,
digit or any other character.
Sample1:
Sample2:
Sample3:
Input = 1
Input = e
Input = *
Output: Digit
Output: Alphabet
Output: Other
character
Declare an integer number in the data segment of your program and find
out whether it is divisible by 3 or 5 or both.
Sample1:
Sample2:
Sample3:
Declared Number: 12
Declared Number: 10
Declared
Number: 15
Output: Divisible by 3 Output: Divisible by 5
Output: Divisible by 3
Divisible by 5
Declare an array of integers in data segment and find the sum of odd
numbers and even numbers.
Sample:
Array = 21,43,54,67,87,87,32,43,55,909,231,324,54
Output:
Sum of Odd Numbers: 1921
Sum of Even Numbers: 464

Declare an integer array in data segment of your program and find out the
maximum value in the array.
Sample:
Array = 21,43,54,67,87,87,32,43,55,909,231,324,54
Output:
Maximum Value =909

Declare an integer array in data segment of your program and find out the
minimum value in the array.
Sample:
Array = 201,43,54,67,87,87,32,43,55,909,231,324,54
Output:
Minimum Value = 32
Declare a string in data segment of your program and then take a character
input from user and find out how many times the input characters occur in
the string.
Sample:
Declared String: assembly language programming
Input Character: m
Output:
Occurrence: 3
Declare a string in data segment of your program and then output the string
by removing the all the characters from string that are not alphabet.
Sample:
Declared String: Assembly Language - - Programming!!
Output:
AssemblyLanguageProgramming
Declare an integer array in data segment of your program and find out the
total negative and positive values in the array
Sample:
Array = 201,-43, 54,-67,-87, 87, 32,-43, 55,-909, 231, 324,-54
Output:
Total Negative Values: 6
Total Positive Values: 7
Declare an integer array in data segment of your program and output the
value by negating the value.
Sample:
Array = 201,-43, 54,-67,-87, 87, 32,-43, 55,-909, 231, 324,-54
Output:
-210, 43, -54, 67, 87, -87, -32, 43, -55, 909, -231, -324, 54
Write a program that generates a sequence of numbers in which each
number is equal to double the previous number. The range is 1 1000
Output:

1,2,4,8,16,32,64,128,256,512,1024,2048,4096

You might also like