CBSE Computer Science

How was it,everyone?
doubts:FSF full form,difference between virus and worm.
and plz giv outputs of the ones u remember.

7 Answers

39
Pritish Chakraborty ·

FSF = Free Software Foundation? Heard about it when I read about Linus Torvalds(creator of Linux).

A virus attaches itself to executable code and replicates itself when the code is executed, similar to a biological virus. It may or may not harm the computer, depending on its purpose.
A worm is a software/code entirely designed to harm the computer, and it will operate as soon as it breaks through its security. It also leeches bandwidth.

39
Pritish Chakraborty ·

BOARD OUTPUT PROGRAM I -:

struct POINT
{int X, Y, Z;};

void StepIn(POINT &P, int Step = 1)
{
P.X += Step;
P.Y -= Step;
P.Z += Step;
}

void StepOut(POINT &P, int Step = 1)
{
P.X -= Step;
P.Y += Step;
P.Z -= Step;
}

void main()
{
POINT P1 = {15, 25, 5}, P2 = {10, 30, 20};
StepIn(P1);
StepOut(P2,4);
cout << P1.X << "," << P1.Y << "," << P1.Z << endl;
cout << P2.X << "," << P2.Y << "," << P2.Z << endl;
StepIn(P2,12);
cout << P2.X << "," << P2.Y << "," << P2.Z << endl;
}

OUTPUT-:
16,24,6
6,34,16
18,22,28

39
Pritish Chakraborty ·

BOARD OUTPUT PROGRAM II -:

void ChangeIt(char Text[], char C)
{
for(int K = 0; Text[K] != '\0'; K++)
{
if(Text[K] >= 'F' && Text[K] <= 'L')
Text[K] = tolower(Text[K]);
else
if(Text[K] == 'E' || Text[K] == 'e')
Text[K] = C;
else
if(K%2 == 0)
Text[K] = toupper(Text[K]);
else
Text[K] = Text[K-1];
}
}

void main()
{
char OldText[] = "pOwERALone";
ChangeIt(OldText, '%');
cout << "New TEXT : " << OldText << endl;
}

OUTPUT-:
New TEXT : PPW%RRllN%

Note : Both outputs correct, verified just now by testing on C++ itself :).

1
rickde ·

FSF free software foundation

given in sumita arora open source concepts

1
Arka Halder ·

the values given to us were different it seems.
but me too verified on c++,got 1 2 mark output wrong[2],but rest of paper was okay(except FSF and data file which will always give me probs)

1
Ankur ·

Yeah Pritish is right. But here in Delhi, FSF was not asked. The full form asked were: GNU (GNU's Not UNIX) and XML. Rest was quite easy. My 1/2 marks will be deducted in SQL output query and probably 1 mark in File Handling; though I used different funda.. but I guess it should be right. .. will check it soon. BTW, how much you all will be scoring.. approximations.

39
Pritish Chakraborty ·

65-70 ke beech...I'm losing marks for GNU, typecasting and let's see what else more. Didn't check further.

Your Answer

Close [X]