We note that $$q(x) = -|x| = \begin{cases}x &\text{if }x\le 0\\-x &\text{if }x>0\end{cases}.$$Therefore, $$q(p(x)) = -|p(x)| = \begin{cases}p(x) &\text{if }p(x)\le 0\\-p(x) &\text{if }p(x)>0\end{cases}.$$A graph of $y=q(p(x))$ looks like the graph of $y=p(x)$ with the parts above the $x$-axis reflected so that they lie below the $x$-axis: [asy]
size(150);
real ticklen=3;
real tickspace=2;

real ticklength=0.1cm;
real axisarrowsize=0.14cm;
pen axispen=black+1.3bp;
real vectorarrowsize=0.2cm;
real tickdown=-0.5;
real tickdownlength=-0.15inch;
real tickdownbase=0.3;
real wholetickdown=tickdown;
void rr_cartesian_axes(real xleft, real xright, real ybottom, real ytop, real xstep=1, real ystep=1, bool useticks=false, bool complexplane=false, bool usegrid=true) {

import graph;

real i;

if(complexplane) {

label("$\textnormal{Re}$",(xright,0),SE);

label("$\textnormal{Im}$",(0,ytop),NW);

} else {

label("$x$",(xright+0.4,-0.5));

label("$y$",(-0.5,ytop+0.2));

}

ylimits(ybottom,ytop);

xlimits( xleft, xright);

real[] TicksArrx,TicksArry;

for(i=xleft+xstep; i<xright; i+=xstep) {

if(abs(i) >0.1) {

TicksArrx.push(i);

}

}

for(i=ybottom+ystep; i<ytop; i+=ystep) {

if(abs(i) >0.1) {

TicksArry.push(i);

}

}

if(usegrid) {

xaxis(BottomTop(extend=false), Ticks("%", TicksArrx ,pTick=gray(0.22),extend=true),p=invisible);//,above=true);

yaxis(LeftRight(extend=false),Ticks("%", TicksArry ,pTick=gray(0.22),extend=true), p=invisible);//,Arrows);

}

if(useticks) {

xequals(0, ymin=ybottom, ymax=ytop, p=axispen, Ticks("%",TicksArry , pTick=black+0.8bp,Size=ticklength), above=true, Arrows(size=axisarrowsize));

yequals(0, xmin=xleft, xmax=xright, p=axispen, Ticks("%",TicksArrx , pTick=black+0.8bp,Size=ticklength), above=true, Arrows(size=axisarrowsize));

} else {

xequals(0, ymin=ybottom, ymax=ytop, p=axispen, above=true, Arrows(size=axisarrowsize));

yequals(0, xmin=xleft, xmax=xright, p=axispen, above=true, Arrows(size=axisarrowsize));

}
};
rr_cartesian_axes(-4,4,-4,4);
real h(real x) {return -abs(abs(x)-2);}
draw(graph(h,-4,4,operator ..), brown+1.25);
draw((-4,2)--(-2,0),blue+0.75+dashed);
draw((4,2)--(2,0),blue+0.75+dashed);
draw((-3,-5)--(-1,-5),blue+0.75+dashed); label("$y=p(x)$",(-1,-5),E);
draw((-3,-6)--(-1,-6),brown+1.25); label("$y=q(p(x))$",(-1,-6),E);
[/asy] The graph readily shows us that the values of $q(p(x))$ at $x=-4,$ $-3,$ $-2,$ $-1,$ $0,$ $1,$ $2,$ $3,$ $4$ are respectively $-2,$ $-1,$ $0,$ $-1,$ $-2,$ $-1,$ $0,$ $-1,$ $-2.$ The sum of these values is $-10.$
q(x) = -|x| = \begin{cases}x &\text{if }x\le 0\\-x &\text{if }x>0\end{cases}.$$따라서 $$q(p(x)) = -|p(x)| = \begin{cases}p(x) &\text{if }p(x)\le 0\\-p(x) &\text {if }p(x)>0\end{cases}입니다.$$y=q(p(x))$의 그래프는 $x$축 위의 부분이 반사되어 $x$축 아래에 위치하도록 한 $y=p(x)$의 그래프처럼 보입니다: [asy]
size(150);
real ticklen=3;
실제 틱스페이스=2;

실제 간지럼 길이=0.1cm;
실축화살=0.14cm;
펜축펜=검정+1.3bp;
실제 벡터 화살표 크기=0.2cm;
실제 틱다운=-0.5;
실제 틱다운 길이=-0.15인치;
실제 틱다운베이스=0.3;
실수 전체 틱다운=틱다운;
void rr_cartesian_axes(real xleft, real xright, real ybottom, real ytop, real xstep=1, real ystep=1, bool useticks=false, bool complexplane=false, bool usegrid=true) {

그래프를 가져옵니다;

real i;

if(complexplane) {

label("$\textnormal{Re}$",(xright,0),SE);

label("$\textnormal{Im}$",(0,ytop),NW);

} else {

label("$x$",(xright+0.4,-0.5));

label("$y$",(-0.5,ytop+0.2));

}

YLIMITS(YBOTTOM,YTOP);

xlimits( xleft, xright);

real[] TicksArrx,TicksArry;

for(i=xleft+xstep; i<xright; i+=xstep) {

if(abs(i)>0.1) {

TicksArrx.push(i);

}

}

for(i=ybottom+ystep; i<ytop; i+=ystep) {

if(abs(i)>0.1) {

TicksArry.push(i);

}

}

if(usegrid) {

x축(BottomTop(extend=false), Ticks("%", TicksArrx ,pTick=gray(0.22),extend=true),p=invisible);//,above=true);

yaxis(LeftRight(extend=false),Ticks("%", TicksArry ,pTick=gray(0.22),extend=true), p=invisible);//,Arrows);

}

if(useticks) {

xequals(0, ymin=ybottom, ymax=ytop, p=축스펜, Ticks("%",TicksArry , pTick=black+0.8bp,크기=틱길이), above=true, Arrows(크기=축애로우사이즈));

yequals(0, xmin=xleft, xmax=xright, p=axispen, Ticks("%",TicksArrx , pTick=black+0.8bp,Size=ticklength), above=true, Arrows(size=axisarrowsize));

} else {

xequals(0, ymin=ybottom, ymax=ytop, p=axispen, above=true, Arrows(size=축 화살표 크기));

yequals(0, xmin=xleft, xmax=xright, p=축스펜, 위=참, 화살표(크기=축애로우사이즈));

}
};
rr_cartesian_axes(-4,4,-4,4);
real h(real x) {return -abs(abs(x)-2);}
draw(graph(h,-4,4,operator ..), brown+1.25);
draw((-4,2)--(-2,0),blue+0.75+dashed);
draw((4,2)--(2,0),blue+0.75+dashed);
draw((-3,-5)--(-1,-5),blue+0.75+dashed); label("$y=p(x)$",(-1,-5),E);
draw((-3,-6)--(-1,-6),brown+1.25); label("$y=q(p(x))$",(-1,-6),E);
[그래프는 $x=-4,$ $-3,$ $-2,$ $-1,$ $0,$ $1,$ $2,$ $3,$ $4$에서 $q(p(x))$의 값이 각각 $-2,$ $-1,$ $0,$ $-1,$ $-2,$ $-1,$ $0,$ $-1,$ $-2.$ 이 값의 합은 $-10.$임을 쉽게 알 수 있습니다.