PPC QB
PPC QB
orF
YBS
CITPPC
Un
it1
Ch
apt
er1
:
Q1
.Wh
ati
sal
gor
ith
m?Exp
lai
nwi
the
xamp
le.
Q2
.Wr
itea
nal
gor
ith
man
ddr
awaf
lowc
har
tfo
rsu
mof1t
o5n
umb
ers
.
Q3
.De
fin
ean
dexp
lai
nth
est
ruc
tur
eofCp
rog
rammi
ng.
Q4.
Wri
tea
nal
gor
ith
man
ddr
awaf
lowc
har
tfo
rar
eao
fCi
rcl
e.
Q5
.Wh
ati
sfl
owc
har
t?Exp
lai
nth
esy
mbo
lso
ffl
owc
har
t.
Q6
.Wr
itea
nal
gor
ith
man
ddr
awaf
lowc
har
tpr
intt
heg
ive
nnu
mbe
rise
veno
rod
d.
Ch
apt
er2
:
Q1
.Wr
iteas
hor
tno
teo
nst
ruc
tur
eofCp
rog
rammi
ng.
Q2
.Wh
ata
rei
den
tif
ier
s?Exp
lai
nth
eru
lest
oco
nst
ruc
tth
em.
Q3
.Wr
iteas
hor
tno
teo
nva
ria
blewi
tha
nexa
mpl
e.
Q4.
Wha
tisd
ata
typ
e?Exp
lai
nva
rio
usd
atat
ype
sav
ail
abl
einC
.
Q5
.Exp
lai
nth
efu
nct
ion
stoh
and
les
tri
ngswi
the
xamp
le.
Q6
.Wh
ati
sch
ara
cte
rse
t?Exp
lai
nva
rio
ust
ype
sofc
har
act
ers
et.
Un
it2
Ch
apt
er1
:
Q1
.Li
sta
ny5t
ype
sofo
per
ato
r?Exp
lai
nan
yon
ety
peo
fop
era
tor
.
Q2
.Exp
lai
nlo
gic
alo
per
ato
rswi
the
xamp
le.
Q3
.Wr
iteas
hor
tno
teo
nbl
ocks
tru
ctu
re.
Q4.
Exp
lai
nas
sig
nme
nto
per
ato
rswi
tht
heh
elpo
fsu
ita
blee
xamp
les
.
Q5
..
Exp
lai
nth
edi
ffe
ren
ceb
etwe
eni
ncr
eme
nta
ndd
ecr
eme
nto
per
ato
r.
Q6
.Exp
lai
n#i
f-#e
lse
-#e
ndi
fpr
epr
oce
sso
rdi
rec
tiv
ewi
ths
uit
abl
eexa
mpl
e.
Ch
apt
er2
:
Q1
.Wh
ata
ret
hev
ari
ousc
ond
iti
ona
lst
ate
men
tsa
vai
lab
lei
nC?Exp
lai
n.
Q2
.Wr
iteap
rog
ramt
ofi
ndt
hel
arg
esta
mon
gtwon
umb
ers
.
Q3
.Exp
lai
nwh
il
elo
opwi
the
xamp
le.
Q4.
Exp
lai
nswi
tchs
tat
eme
ntwi
the
xamp
le.
Q5
..
Exp
lai
nbr
eaka
ndc
ont
inu
est
ate
men
twi
the
xamp
le.
Q6
.Wr
iteap
rog
ramt
opr
intt
hemu
lti
pli
cat
iont
abl
efo
rag
ive
nnu
mbe
r.
Un
it3
Ch
apt
er1
:
Q1
.Wh
ata
ref
unc
tio
ns?Exp
lai
n./Wr
iteas
hor
tno
teo
nfu
nct
ion
s.
Q2
.Wr
iteap
rog
ramu
sin
gwh
il
elo
opt
ore
ver
set
hed
igi
tso
fan
umb
er.
Q3
.Wr
iteacp
rog
ramt
odi
spl
aye
nte
redc
har
act
eri
svo
wel
orn
ot.
Q4.
Wri
teap
rog
ramt
opr
intt
heF
ibo
nac
cis
eri
es.
Q5
.St
atet
hes
cop
eru
leso
ffu
nct
ion
s.
Q6
.Wr
iteap
rog
ramt
opr
intt
hef
act
ori
alo
fan
umb
er.
Ch
apt
er2
:
Q1
.Wr
iteas
hor
tno
teo
nfo
rma
tte
din
put-
sca
nf(
).
Q2
.Wr
iteas
hor
tno
teo
nfo
rma
tte
dou
tpu
t-p
rin
tf(
).
Q3
.Wh
ata
reh
ead
erf
ile
s?Exp
lai
n.
Q4.
Exp
lai
nge
ts(
)an
dpu
ts(
)fu
nct
ionwi
the
xamp
le.
Q5
.Exp
lai
nsq
rt(
),
abs
()
,ce
il(
)an
dpo
w()
wit
hon
eexa
mpl
e.
Q6
.Wr
iteap
rog
ramt
opr
intt
hes
umo
fnu
mbe
rsf
rom1t
o10
0.
Un
it4
Ch
apt
er1
:
Q1
.Wh
ata
rep
oin
ter
s?Exp
lai
nth
ebe
nef
itso
fpo
int
ers
.
Q2
.Wh
ati
sth
eus
eofs
ize
of(
)?Gi
vee
xamp
le.
Q3
.Wh
ati
spo
int
erc
omp
ari
son
s?Gi
veo
nee
xamp
le.
Q4.
Wha
tisp
oin
ter
?Exp
lai
nwi
tha
nexa
mpl
e.
Q5
.Wr
iteas
hor
tno
teo
nde
cla
rat
iona
ndi
nit
ial
iza
tio
nofp
oin
terv
ari
abl
e.
Q6
.Wr
iteas
hor
tno
teo
nde
cre
men
tin
gap
oin
ter
.
Ch
apt
er2
:
Q1
.Exp
lai
nar
rayc
onc
eptwi
the
xamp
le.
Q2
.Wr
ites
hor
tno
teo
nmu
lti
-di
men
sio
nal
arr
ay.
Q3
.Wr
iteap
rog
ramt
ope
rfo
rmma
tri
xad
dit
ion
.
Q4.
Wri
teap
rog
ramt
oar
ran
get
hee
leme
ntso
fth
ear
rayi
nas
cen
din
gor
der
.
Q5
.Wr
iteap
rog
ramt
ofi
ndt
hel
arg
estv
alu
est
ore
dint
hea
rra
y.
Q6
.Wr
iteap
rog
ramt
oar
ran
get
hee
leme
ntso
fth
ear
rayi
nde
sce
ndi
ngo
rde
r.
Un
it5
Ch
apt
er1
:
Q1
.Wr
iteas
hor
tno
teo
nst
ruc
tur
e.
Q2
.Wh
ata
ret
hev
ari
ouswa
yst
oin
iti
ali
zet
hes
tru
ctu
res
?
Q3
.Exp
lai
nar
rayo
fst
ruc
tur
es.
Q4.
Exp
lai
npa
sss
tru
ctu
reb
yva
lue
.
Q5
.Wr
ites
hor
tno
teo
nty
ped
ef.
Q6
.Wr
ites
hor
tno
teo
nUn
ioni
ncl
ang
uag
e.
Ch
apt
er2
:
Q1
.Wh
ata
ret
het
ype
soff
ile
sth
atc
anb
eus
edi
nCf
ileh
and
lin
gme
cha
nis
m.
Q2
.Wh
ata
ret
hed
iff
ere
ntf
ileo
per
ati
ons
?Exp
lai
n.
Q3
.Wr
iteas
hor
tno
teo
nop
eni
ngaf
ile.
Q4.
Exp
lai
nfp
utc
()a
ndf
pri
ntf
()f
unc
tio
n.
Q5
.Wr
iteas
hor
tno
teo
nco
mma
ndl
in
ear
gume
nts
.
Q6
.Wh
ati
sth
epu
rpo
seo
fft
ell
()
fun
cti
on?Exp
lai
n.