Method 1:
$5^1 \ mod \ 7 = 5 \ mod \ 7 = 5$
$5^2 \ mod \ 7 = 25 \ mod \ 7 = 4$
$5^3 \ mod \ 7 = 125 \ mod \ 7 = 6$
$5^4 \ mod \ 7 = 625 \ mod \ 7 = 2$
$5^5 \ mod \ 7 = 3125 \ mod \ 7 = 3$
$5^6 \ mod \ 7 = 15625 \ mod \ 7 = 1$
$5^7 \ mod \ 7 = 78125\ mod \ 7 = 5$
$5^1 \ mod \ 7 = 390625 \ mod \ 7 = 4$
$.$
$.$
As we can see that remainder pattern repeats after every six numbers
On dividing 100 by 6 ( as the pattern repeats after every six numbers) we get 1 as remainder
$5^{100} \ mod \ 7 = ( (5^6)^{16} . 5^4 ) \ mod \ 7$
$(A . B) \ mod \ m = ((A \ mod \ m ). (B \ mod \ m )) \ mod \ m$
$(5^6)^{16} \ mod \ 7 \ gives \ remainder \ 1$
$5^4 \ mod \ 7 \ gives \ remainder \ 2$
$(1.2) \ mod \ 7 = 2 \ mod \ 7 = 2$
Method 2:
Fermat's Little Theorem
$Let \ p \ be \ a \ prime \ which \ does \ not \ divide \ the \ integer \ a, \ then \ a^{p-1} = 1 \ (mod \ p).$
$5^{7-1} \ mod \ 7 = 5^6 \ mod \ 7 = 1$
$100 / 6 \ gives \ 16 \ as \ quotient \ and \ 4 \ as \ remainder$
$5^6 \ is \ repeated \ 16 \ times, \ it \ will \ give \ remainder \ as \ 1$
$5^4 \ give \ remainder \ as \ 2$
$(1.2) \ mod \ 7 = 2 \ mod \ 7 = 2$