Answer
$1296$ and
360
Work Step by Step
How many 4-letter code words can
be made using the letters in the word "pencil"
if repetitions are permitted?
There are 6 difference letters in the word"pencil",
with repetition, the total number of code words is $6^4=1296$
If repetitions are not permitted?
Without repetition, use permutation, $_6P_4$=360