Tag Archives: string


Write a program in assembly language for reversing a four byte string – IGNOU MCA Assignment 2016 – 17

MASTER OF COMPUTER APPLICATIONS Course Code : MCSL-017 Course Title : C and Assembly Language Programming (Lab Course) Assignment Number : MCA(1)/L-017/Assignment/16-17 Maximum Marks : 50 Weightage : 25%   Write a program in assembly language for reversing a four byte string - IGNOU MCA Assignment 2016 – 17 Code:-  DATA SEGMENT STR1 DB “RITU$” STR2… Read More »

Write a program in 8086 assembly Ianguage that converts each character of string to upper case and to the next character 7m Jun2008

Write a program in 8086 assembly Ianguage that accepts a character string, of maximum 10 characters, from the keyboard, converts each character of string to upper case and converts each character to the next character. i.e. A to B, B to C,and so on. Finally display the string on the screen. 7m Jun2008   DATA… Read More »

Convert string into “UTF 16” code – “You may assume that Hindi swar starts with अ”. – IGNOU MCA Assignment 2015 – 16

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA(I)/012/Assignment/15-16 Maximum Marks : 100 Weightage : 25%   Convert the following string into equivalent “UTF 16” code – “You may assume that Hindi swar starts with अ”Are these UTF 16 codes similar as that… Read More »

An Assembly language program that counts the occurrence of alphabet A (irrespective of case) in a string – IGNOU MCA Assignment 2015 – 16

BACHELOR OF COMPUTER APPLICATIONS   Course Code : BCSL-022 Course Title : Assembly Language Programming Lab Assignment Number : BCA(II)/L-022/Assignment/2015 Maximum Marks : 50 Weightage : 25%   Write and run an Assembly language program that counts the occurrence of alphabet A (irrespective of case) in a sting. For example, for the string AXabAYaf, the… Read More »

Write an algorithm and draw flowchart to find whether a given string S1 is substring of another string S2. 10m Dec2007

Write an algorithm and draw flowchart to find whether a given string S1 is substring of another string S2. 10m Dec2007   Algorithm Step 1: Input String and Substring (Note: Substring should be smaller than String) Step 2: Find Length of String (Len1) and Find Length of Substring (Len2) Step 3: flag <- 0 Step… Read More »

A program in 8086 assembly language that checks an input string against a password string stored in memory. 7m Jun2006

Write a program in 8086 assembly language that checks an input string against a password string stored in the memory and outputs an appropriate message if the strings are not equal.       7m Jun2006 DATA SEGMENT MSG1 DB 10,13,’ENTERED PASSWORD : $’ MSG2 DB 10,13,’YOU HAVE ENTERED WRONG PASSWORD !!! $’ MSG3 DB 10,13,’YOU HAVE ENTERED… Read More »

An Assembly language program to find substring in given string – IGNOU MCA Assignment 2014-15

BACHELOR OF COMPUTER APPLICATIONS Course Code : BCSL-022 Course Title : Assembly Language Programming Lab Assignment Number : BCA(II)/BCSL022/Assign/14-15 Maximum Marks : 50 Weightage : 25%   Write and run an Assembly language program that finds the occurrence of a given substring, for example, BCS in a given string, for example, AXYBCSDEF (please note that in… Read More »

A program in assembly language to print out the length of string – IGNOU MCA Assignment 2014 – 15

 MASTER OF COMPUTER APPLICATIONS Course Code : MCSL-017 Course Title : C and Assembly Language Programming Assignment Number : MCA(1)/L017/Assign/2014-15 Maximum Marks : 100 Weightage : 25%   Write a program in assembly language to print out the length of string.    DATA SEGMENT STR DB ‘GANGADHAR$’ MSG1 DB 10,13,’THE STRING IN THE MEMORY IS… Read More »

An Assembly program to convert lower case to upper case – IGNOU MCA Assignment 2014 – 15

 MASTER OF COMPUTER APPLICATIONS Course Code : MCSL-017 Course Title : C and Assembly Language Programming Assignment Number : MCA(1)/L017/Assign/2014-15 Maximum Marks : 100 Weightage : 25%   Write a program in assembly language for converting lower case to upper case in a given string of characters.   DATA SEGMENT MSG1 DB 10,13,’ENTER ANY STRING… Read More »

Using pointers, write a program in ‘C’ to count the occurrence of each character in a given string. 10m Dec2006

Using pointers, write a program in ‘C’ to count the occurrence of each character in a given string. 10m Dec2006   #include <stdio.h> #include <string.h> void main() { char string[100],*ptr; int c=0,count[26]={0}; clrscr(); printf(“Enter a string\n”); gets(string); ptr=string[0]; while (*ptr) { /* Consider characters from ‘a’ to ‘z’ only */ if ( ptr >= ‘a’… Read More »