Tag Archives: input

Write an algorithm and program that accepts a Binary Tree as Input and Checks if the input Binary tree is Complete Binary Tree or a Full Binary Tree – IGNOU BCA Assignment 2017 – 18

BACHELOR OF COMPUTER APPLICATIONS Course Code : BCSL-033 Course Title : Data and File Structures Lab Assignment Number : BCA(3)/L-033/Assignment/17-18 Maximum Marks : 50 Weightage : 25% Write an algorithm and program that accepts a Binary Tree as Input and Checks if the input Binary tree is Complete Binary Tree or a Full Binary Tree… Read More »

Write an algorithm that accepts a Tree as input and prints the correspondingBinary Tree – IGNOU MCA Assignment 2017 – 18

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-021 Course Title : Data and File Structures Assignment Number : MCA(2)/021/Assignment/17-18 Maximum Marks : 100 Weightage : 25% Write an algorithm that accepts a Tree as input and prints the correspondingBinary Tree – IGNOU MCA Assignment 2017 – 18 CODE: #include <stdio.h> #include <stdlib.h> struct tnode {… Read More »

Draw logic circuit for a converter that converts 4 bit binary input to its equivalent BCD number. 8m Jun2008

Draw logic circuit for a converter that converts 4 bit binary input to its equivalent BCD number. 8m Jun2008 A four bit number can be any number value between 0 to 15  i.e.  0 to F in Hexadecimal. BCD is a number which is represented in binary as a decimal number hence it can have… Read More »

Write an Algorithm and a Program that accepts a Binary Tree as input and checks whether it is a Height Balanced Tree – IGNOU BCA Assignment 2015 – 16

BACHELOR OF COMPUTER APPLICATIONS Course Code : BCSL-033 Course Title : Data and File Structures Lab Assignment Number : BCA(III)/L-033/Assignment/2015 Maximum Marks : 50 Weightage : 25% Write an Algorithm and a Program that accepts a Binary Tree as input and checks whether it is a Height Balanced Tree. #include <stdio.h> #include <stdlib.h> struct tnode… Read More »

Draw a flow chart of a program that adds N odd numbers starting from 1. The value of N should be input by the user – IGNOU MCA Assignment 2015 – 16

BACHELOR OF COMPUTER APPLICATIONS Course Code : BCS-011 Course Title : Computer Basics and PC Software Assignment Number : BCA(I)/011/Assignment/ 2015 Maximum Marks : 100 Weightage : 25%   Draw a flow chart of a program that adds N odd numbers starting from 1. The value of N should be input by the user.  … Read More »

What will be the values of select inputs, carry-in input and result of operation if the following micro-operations are performed? – IGNOU MCA Assignment 2015 – 16

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA (2)/012/Assign /2014-15 Maximum Marks : 100 Weightage : 25%   Assume that you have a machine as shown in section 3.2.2 of Block 3 having the micro-operations as given in Figure 10 on page… Read More »

Explain how overlapped register window can be implemented for procedure calls. Explain the process of parameter passing for the subroutine call on this machine? – 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%   Assume that a RISC machine has 128 registers out of which 16 registers are reserved for the Global variables and 16 for Instruction related tasks. This… Read More »

Write a program in ‘C’ language that accepts the name of a file as input and prints those lines of the file which have the word ‘this’. 10m Dec2007

Write a program in ‘C’ language that accepts the name of a file as input and prints those lines of the file which have the word ‘this’. 10m Dec2007    #include<stdio.h> void main() { FILE *fp; int cnt=0; char str[80],lines[400]; clrscr(); if ((fp=fopen(“test.txt”,”r”))== NULL) { printf(“File does not exist\n”); exit(0); } while(!(feof(fp))) { fgets(str,80,fp); if(strcmp(“this”,str))… Read More »

A program in ‘C’ language which accepts enrollment number as input and prints the name of student. pairs of students in the form of a matrix. 10m Dec2007

Write a program in ‘C’ language which accepts the enrollment number of a student as input and prints the name of that student. The program should initially store information about the (name, enrollment number) pairs of students in the form of a matrix. 10m Dec2007   #include<stdio.h> struct student { unsigned long int ENROL; char… 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 »