It depends on what you consider an internal parameter. For many of them, the behavior is to respect grouping. But there are a few subtleties.
For instance, hyphenation assignments are always global, so you can't say
{\hyphenation{some-long-word}<text of a paragraph containing somelongword>\par}
and expect that TeX forgets the given hyphenation exception when the group ends.
Similarly font assignments are always global, by which the TeXbook means
\fontdimen<number><font>=<dimen>
\hyphenchar<font>=<number>
\skewchar<font>=<number>
where <font>
is a font selector (see the relevant part in the TeXbook).
Box size assignments are a bit weird in this respect. Consider
This is TeX, Version 3.141592653 (TeX Live 2023) (preloaded format=tex)
**\relax
*\newbox\test
*\setbox\test=\hbox{test}
*\showthe\wd\test
> 16.16669pt.
<*> \showthe\wd\test
?
*\begingroup\wd\test=100pt\endgroup
*\showthe\wd\test
> 100.0pt.
<*> \showthe\wd\test
but the seemingly similar session
This is TeX, Version 3.141592653 (TeX Live 2023) (preloaded format=tex)
**\relax
*\newbox\test
*\setbox\test=\hbox{test}
*\showthe\wd\test
> 16.16669pt.
<*> \showthe\wd\test
?
*\begingroup\setbox\test=\hbox{different test}\wd\test=100pt\showthe\wd\test
> 100.0pt.
<*> ...fferent test}\wd\test=100pt\showthe\wd\test
?
*\endgroup
*\showthe\wd\test
> 16.16669pt.
<*> \showthe\wd\test
has a different result. The assignment of a width to the box register globally affects the last incarnation of the box. So in the first session the assignment \wd\test=100pt
affects the box at the upper level, but in the second session it doesn't.
Also assignments to \spacefactor
are inherently global. The same for \prevgraf
, \deadcycles
and \insertpenalties
. There are also dimension parameter that are unaffected by grouping, namely
\prevdepth \pagegoal \pagetotal \pagestretch \pagefilstretch
\pagefillstretch \pagefilllstretch \pageshrink \pagedepth
that are related to page making.