> For the complete documentation index, see [llms.txt](https://roxy-wong.gitbook.io/pcep-30-02-practice-test-compendium/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roxy-wong.gitbook.io/pcep-30-02-practice-test-compendium/part-2-or-study-pages-and-exam-section-questions/exam-block-2-control-flow-conditional-blocks-and-loops/module-01/1.1.1-pcep-30-02-practice-test-compendium-exam-block-2/pcep-30-02-practice-test-compendium-exam-block-2.md).

# PCEP-30-02 Practice Test Compendium – Exam Block #2

## Exam block #2: Control Flow – Conditional Blocks and Loops

### **Study Pages**

Objectives covered by the block:

### **PCEP 2.1 Make decisions and branch the flow with the&#x20;*****if*****&#x20;instruction**

* conditional statements: *if*, *if-else*, *if-elif*, *if-elif-else*,
* multiple conditional statements,
* nesting conditional statements.

### **PCEP 2.2 Perform different types of iterations**

* the pass instruction,
* building loops with *while*, *for*, *range()*, and *in*,
* iterating through sequences, expanding loops with *while-else* and *for-else*,
* nesting loops and conditional statements,
* controlling loop execution with *break* and *continue*.

![](https://725888047-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH4X2dd8bYf5jl9xnALDx%2Fuploads%2Fn6Bp0fARSKAEftMFMVgm%2FExam%20block%20%232%20Control%20Flow%20%E2%80%93%20Conditional%20Blocks%20and%20Loops.png?alt=media\&token=cda64c3f-0b90-4eb7-b2df-e6f2d8caafbd)

This exam block is the second section that appears in the exam. It constitutes a maximum of **28%** of the overall exam score. It contains **eight (8)** exam items, each graded a maximum of 20, 30, or 40 points.

### **Specifications**

* Section weight: 28%
* Max raw score: 280
* Questions drawn: 8
* Question types: single- and multiple-choice, drag & drop, sorting, code ordering
* Points per question: 4+4+4+4+4, 6+6+6+6+6, 7+6+7 (drag & drop, sorting, code ordering), 20, 30 (single-choice), 10+10, 20+20, 10+20, (multiple-choice)

![](https://725888047-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH4X2dd8bYf5jl9xnALDx%2Fuploads%2FIXhQ33NevB0Gat7K19mT%2FExam%20block%20%232%20Control%20Flow%20%E2%80%93%20Conditional%20Blocks%20and%20Loops%202.png?alt=media\&token=c34d7d15-5782-4e13-9be6-9b350b0eef15)
