Friday, August 24, 2012

LOOPs

Now that we have started with Loops..

_________________________________
Keywords used in loops

for, while, repeat...until
_________________________________
Examples are :_________________________________
for( int i =1; i<=10;i=i+1)
begin
        display "Hello world"
end
_________________________________
numeric i
i=1
while(i<=10)
begin
       display "Hello World"
       i=i+1
end
_________________________________

Tuesday, August 14, 2012

If Construct....

Solve all the questions we discussed in class.
Use if construct  OR
Use if else Construct OR
Use Nested if Construct.

Syntax of if Construct is

if <condition>
begin

                    Print messages or values if the condition is TRUE

end



Syntax of if...else Construct is

if <condition>
begin

                    Print messages or values if the condition is TRUE

end
else

begin

                    Print messages or values if the condition is FALSE

end

Syntax of Nested IF Construct is

if <condition>
begin
       if <condition>
       begin   
                    Print messages or values if the condition is TRUE
        end
        else
        begin
                    Print messages or values of the condition is FALSE
        end   
end
else

begin

                    Print messages or values if the condition is FALSE

end






Thursday, August 09, 2012

Operators

Write down all the questions using Operators that is (Arithmetic, Relational and Logical Operators).
Arithmetic Operators are:
* / % + -
Relational Operators are:
==,  >,  <,  !=,  >=,  <=.
Logical Operators are:
AND,  OR,  NOT

Solve all the previous exercises.

Best Of Luck.


Tuesday, August 07, 2012

How to recover hidden files and folders


Steps to Recover data from hidden folder, after virus attack.


1. Open command prompt.

2. Change to that drive where folders are hidden, using the following command.

       By Default you will be at :

       C:\Documents and Settings\Administrator> or C:\Documents and Settings\username>

       Type the following command(Suppose your drive is I)

       C:\Documents and Settings\Administrator>I: and press Enter

       You will see I:> 

3. Now type the following command:
   
    I:>Attrib -s -h /s /d *.*

Friday, August 03, 2012