B.Sc. CSIT Sixth Semester All Questions 2075

Here is a collection of all subjects of B.Sc.CSIT sixth semester questions 2075. Click the respective subject to view or download the question.

Compulsory Subjects

Software Engineering (CSc.351)
Compiler Design and Construction (CSc.352)
Web Technologies (CSc.353)
Real Time Systems (CSc.354)

Alternative Subjects

Fundamental of E-commerce (CSc.356)
Net Centric Computing (CSc.360)
Embedded System Programming (CSc.362)
Image Processing (CSc.363)

Continue reading »

C program to find the HCF of the two numbers

#include<stdio.h>
#include<conio.h>
int hcfactor(int x,int y)
{
	if(y==0)
	return x;
	else
	return hcfactor(y,x%y);
}
void main()
{
	int a,b,f;
	printf("Enter two numbers:\n");
	scanf("%d%d",&a,&b);
	f=hcfactor(a,b);
	printf("HCF of %d and %d is %d.",a,b,f);
	getch();
}
Continue reading »

C++ program of file handling to write a file in the disk and read from a file

#include<iostream.h>
#include<conio.h>
#include<fstream.h>
int main()
{
	int roll;
	char name[20];	
	ofstream outf("madhav.txt");	//creates a file madhav.txt
	cout<<"Enter name:";
	cin>>name;
	cout<<"Enter Roll No:";
	cin>>roll;
	outf<<"Name = "<<name;
	outf<<"\nRoll No. = "<<roll;
	outf<<endl;
	cout<<"\nData successfully written to disk.\n";
	outf.close();
	
	const int LEN = 80;
	char text[LEN];
	ifstream infile("madhav.txt");	//file is opened for read operation
	cout<<"\nThe data reading from file is:\n";
	while(infile)
	{
		infile.getline(text,LEN);
		cout<<endl<<text;
	}
	infile.close();
	
	getch();
	return 0;
}
Continue reading »
Top