IGNOU Latest Assignments
IGNOU BCA Assignments BCA 2009
IGNOU BCA Assignments BCA 2008
IGNOU BCA Assignments BCA 2007
IGNOU BCA Assignments BCA 2006
IGNOU Latest Assignments
IGNOU BCA Assignments IGNOU BCA Assignments
IGNOU BCA Assignments IGNOU MCA Assignments
IGNOU MBA Assignmants IGNOU MBA Assignments

IGNOU > IGNOU Assignments > BCA > BCA 2006 Assignments > Introduction to System Software

IGNOU BCA Assignments

Question 1:  Derive a regular grammar to describe the syntax of a conventional representation of floating point numbers in a programming language.

Ans:

<floating point number> : : = <signbit> <mantissa> <exponent>
<sign bit> : : = <positive> <negative>
                        : : = <0> <1>
<mantissa> : : = <single> <double>
<single> : : = <32 bit>
<double> : : = <64 bit>
<exponent> : : =<positive> <negative>
<Positive> : : = <Convert into binary no.>
<negative> : : = <Firstly find the 2’s complement>
            : : = <represent into exponent part>


Question 2:  Write a shell program to test whether the give year is a leap year or not.

Ans:

echo “Enter a year”
read     a
if ($a % 4-eq 0 – 0 $a%100 – eq 0 – 0 $a%400 – eq 0) then
echo “$a is a leap year”
else
echo “$a is not a leapyear”
fi

PREVIOUSINDEXNEXT